Cisco(思科)远程登陆交换机

Cisco(思科)远程登陆交换机

1、拓扑图spa

2、实验步骤code

1.先配置好交换机,配置以下:blog

先进入配置电脑的终端进行配置操做接口

Switch>enable                  //进入特权模式
Switch>enable 
Switch#                 
Switch#conf t                  //进入配置模式        
Enter configuration commands, one per line.  End with CNTL/Z.
Switch(config)#
Switch(config)#enble password aaa     //进入配置模式设置密码
Switch(config)#interface vlan1        //进入VLAN1
Switch(config-if)#ip address 192.168.1.1 255.255.255.0     //给VLAN1配置ip
Switch(config-if)#no shutdown                              //激活接口

Switch(config-if)#
%LINK-5-CHANGED: Interface Vlan1, changed state to up
Switch(config-if)#exit
Switch(config)#                               
Switch(config)#line vty 0 15                         //设置接口能够远程登陆      
Switch(config-line)#password 123                     //为远程登陆设置密码
Switch(config-line)#login                            //激活可远程登陆

 2.使用一台电脑(事先配置好ip)利用命令提示符远程登陆交换机,具体以下:ip

Packet Tracer PC Command Line 1.0
PC>ping 192.168.1.1

Pinging 192.168.1.1 with 32 bytes of data:

Request timed out.
Reply from 192.168.1.1: bytes=32 time=6ms TTL=255
Reply from 192.168.1.1: bytes=32 time=7ms TTL=255
Reply from 192.168.1.1: bytes=32 time=7ms TTL=255

Ping statistics for 192.168.1.1:
    Packets: Sent = 4, Received = 3, Lost = 1 (25% loss),
Approximate round trip times in milli-seconds:
    Minimum = 6ms, Maximum = 7ms, Average = 6ms

PC>telnet 192.168.1.1             //远程登陆交换机telnet
Trying 192.168.1.1 ...Open


User Access Verification

Password: 
Switch>enable
Password: 
Switch#
Switch#
Switch#

喜欢的小可爱能够点赞关注哦,谢谢啦! it

相关文章
相关标签/搜索