Cisco simulator build topology makes the PC remotely connect switch

Experimental procedure:
1. IP is equipped to the PC "10.0.0.1" subnet mask "255.0.0.0" gateway "10.0.0.254" FIG: Cisco build topology emulator so that the PC can be connected to the remote switch

2. Give switch0 configuration management IP to 10.0.0.2, configure the remote password "haha", the password in the configuration privileged mode "hehe" as follows:
Switch> EN
Switch # conf t
the Enter the Configuration Commands, One per Line End with CNTL. / the Z.
Switch (config) #interface VLAN. 1
Switch (config-IF) #ip address 255.0.0.0 10.0.0.2
Switch (config-IF) the shutdown #no

Switch#conf t
Switch(config)#line vty 0 4
Switch(config-line)#password haha

Switch#conf t
Switch(config)#enable password hehe
Switch(config)#end
Switch#w

3.给路由器配置IP下:
Continue with configuration dialog? [yes/no]: no
Router>en
Router#conf t
Router(config)#interface f0/0
Router(config-if)#ip address 10.0.0.254 255.0.0.0
Router(config-if)#no shutdown
Router(config-if)#interface f0/1
Router(config-if)#ip address 20.0.0.254 255.0.0.0
Router(config-if)#no shutdown

4. switch1 configured to manage IP is "20.0.0.1" Configuration gateway "20.0.0.254" configure the remote password: password 456 to the privileged mode configuration: 123 as follows
Switch> EN
Switch the conf # T
Switch (config) # VLAN. 1 interface
Switch (config-IF) #ip address 20.0.0.1 255.0.0.0
Switch (config-IF) the shutdown #no

Switch(config)#ip default-gateway 20.0.0.254
Switch(config)#end

Switch#conf t
Switch(config)#line vty 0 4
Switch(config-line)#password 456
Switch(config-line)#end

Switch#conf t
Switch(config)#enable password 123
Switch(config)#end
Switch#w

打开PC机先ping通switch1和switch0如下:
PC>ping 10.0.0.2
Pinging 10.0.0.2 with 32 bytes of data:
Reply from 10.0.0.2: bytes=32 time=1ms TTL=255
Reply from 10.0.0.2: bytes=32 time=0ms TTL=255
Reply from 10.0.0.2: bytes=32 time=0ms TTL=255
Reply from 10.0.0.2: bytes=32 time=0ms TTL=255
Ping statistics for 10.0.0.2:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 0ms, Maximum = 1ms, Average = 0ms

PC>ping 20.0.0.1
Pinging 20.0.0.1 with 32 bytes of data:
Request timed out.
Request timed out.
Reply from 20.0.0.1: bytes=32 time=0ms TTL=254
Reply from 20.0.0.1: bytes=32 time=0ms TTL=254
Ping statistics for 20.0.0.1:
Packets: Sent = 4, Received = 2, Lost = 2 (50% loss),
Approximate round trip times in milli-seconds:
Minimum = 0ms, Maximum = 0ms, Average = 0ms

After Ping the remote connected switch0 and switch1 as follows:
PC> the Telnet 10.0.0.2
Trying 10.0.0.2 ... Open

User Access Verification

Password:
Switch>en
Password:
Switch#

PC>telnet 20.0.0.1
Trying 20.0.0.1 ...Open

User Access Verification

Password:
Switch> EN
Password:
Switch #
two switches can be connected to the remote, the task is completed.

Reproduced in: https: //blog.51cto.com/14373424/2403785

Guess you like

Origin blog.csdn.net/weixin_34380781/article/details/91697179