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