cisco路由器怎么在虛擬環(huán)境下配置三層交換(2)
R1的配置信息:
Router(config)#inter f0/0
Router(config-if)#no shut
Router(config-if)#ip address 10.0.0.2 255.0.0.0
Router(config-if)#exit
Router(config)#inter f1/0
Router(config-if)#
Router(config-if)#no shut
Router(config-if)#ip address 192.168.5.1 255.255.255.0
Router(config-if)#exit
Router(config)#ip route 0.0.0.0 0.0.0.0 f0/0
Router(config)#router rip
Router(config-router)#network 192.168.5.0
Router(config-router)#network 10.0.0.0
Router(config-router)#
查看命令運行情況在PC機上測試
VPCS 1 >
VPCS 1 >ip 192.168.1.3 192.168.1.1 24
PC1 : 192.168.1.3 255.255.255.0 gateway
VPCS 1 >2
VPCS 2 >ip 192.168.2.3 192.168.2.1 24
PC2 : 192.168.2.3 255.255.255.0 gateway
VPCS 2 >3
VPCS 3 >ip 192.168.3.3 192.168.3.1 24
PC3 : 192.168.3.3 255.255.255.0 gateway
VPCS 3 >4
VPCS 4 >ip 192.168.4.3 192.168.3.1 24
not same subnet
VPCS 4 >ip 192.168.4.3 192.168.4.1 24
PC4 : 192.168.4.3 255.255.255.0 gateway
VPCS 4 >ping 192.168.1.1
192.168.1.1 icmp_seq=1 time=688.000 ms
192.168.1.1 icmp_seq=2 time=688.000 ms
192.168.1.1 icmp_seq=3 time=516.000 ms
192.168.1.1 icmp_seq=4 time=250.000 ms
192.168.1.1 icmp_seq=5 time=547.000 ms
VPCS 4 >ping 192.168.1.2
192.168.1.2 icmp_seq=1 timeout
192.168.1.2 icmp_seq=2 timeout
192.168.1.2 icmp_seq=3 time=922.000 ms
192.168.1.2 icmp_seq=4 time=593.000 ms
192.168.1.2 icmp_seq=5 time=547.000 ms
VPCS 4 >ping 192.168.2.1
192.168.2.1 icmp_seq=1 time=625.000 ms
192.168.2.1 icmp_seq=2 time=485.000 ms
192.168.2.1 icmp_seq=3 time=406.000 ms
192.168.2.1 icmp_seq=4 time=453.000 ms
192.168.2.1 icmp_seq=5 time=547.000 ms
VPCS 4 >ping 192.168.2.2
192.168.2.2 icmp_seq=1 timeout
192.168.2.2 icmp_seq=2 timeout
192.168.2.2 icmp_seq=3 time=703.249 ms
192.168.2.2 icmp_seq=4 time=859.000 ms
192.168.2.2 icmp_seq=5 time=718.000 ms
VPCS 4 >ping 192.168.3.1
192.168.3.1 icmp_seq=1 time=625.000 ms
192.168.3.1 icmp_seq=2 time=500.000 ms
192.168.3.1 icmp_seq=3 time=266.000 ms
192.168.3.1 icmp_seq=4 time=531.000 ms
192.168.3.1 icmp_seq=5 time=687.000 ms
VPCS 4 >ping 192.168.3.2
192.168.3.2 icmp_seq=1 timeout
192.168.3.2 icmp_seq=2 timeout
192.168.3.2 icmp_seq=3 time=734.249 ms
192.168.3.2 icmp_seq=4 time=703.000 ms
192.168.3.2 icmp_seq=5 time=640.000 ms
VPCS 4 >5
VPCS 5 >ip 192.168.5.2 192.168.5.1 24
PC5 : 192.168.5.2 255.255.255.0 gateway
VPCS 5 >4
VPCS 4 >ping 192.168.3.3
192.168.3.3 icmp_seq=1 timeout
192.168.3.3 icmp_seq=2 time=703.000 ms
192.168.3.3 icmp_seq=3 time=765.000 ms
192.168.3.3 icmp_seq=4 time=328.000 ms
192.168.3.3 icmp_seq=5 time=359.000 ms
VPCS 4 >5
VPCS 5 >ping 192.168.5.1
192.168.5.1 icmp_seq=1 time=94.000 ms
192.168.5.1 icmp_seq=2 time=94.000 ms
192.168.5.1 icmp_seq=3 time=172.000 ms
192.168.5.1 icmp_seq=4 time=125.000 ms
192.168.5.1 icmp_seq=5 time=188.000 ms
VPCS 5 >ping 10.0.0.2
10.0.0.2 icmp_seq=1 time=187.000 ms
10.0.0.2 icmp_seq=2 time=218.000 ms
10.0.0.2 icmp_seq=3 time=140.000 ms
10.0.0.2 icmp_seq=4 time=266.000 ms
10.0.0.2 icmp_seq=5 time=156.000 ms
VPCS 5 >ping 10.0.0.1
10.0.0.1 icmp_seq=1 time=406.000 ms
10.0.0.1 icmp_seq=2 time=297.000 ms
10.0.0.1 icmp_seq=3 time=609.000 ms
10.0.0.1 icmp_seq=4 time=438.000 ms
10.0.0.1 icmp_seq=5 time=641.000 ms
VPCS 5 >ping 192.168.4.1
192.168.4.1 icmp_seq=1 time=671.000 ms
192.168.4.1 icmp_seq=2 time=0.001 ms
192.168.4.1 icmp_seq=3 time=844.000 ms
192.168.4.1 icmp_seq=4 time=875.000 ms
192.168.4.1 icmp_seq=5 time=781.000 ms
VPCS 5 >ping 192.168.4.2
192.168.4.2 icmp_seq=1 time=375.000 ms
192.168.4.2 icmp_seq=2 time=609.000 ms
192.168.4.2 icmp_seq=3 time=407.000 ms
192.168.4.2 icmp_seq=4 time=500.000 ms
192.168.4.2 icmp_seq=5 time=250.000 ms
VPCS 5 >ping 192.168.4.3
192.168.4.3 icmp_seq=1 time=515.250 ms
192.168.4.3 icmp_seq=2 time=359.000 ms
192.168.4.3 icmp_seq=3 time=625.000 ms
192.168.4.3 icmp_seq=4 time=484.000 ms
192.168.4.3 icmp_seq=5 time=407.000 ms
VPCS 5 >ping 192.168.3.1
192.168.3.1 icmp_seq=1 time=813.000 ms
192.168.3.1 icmp_seq=2 time=797.000 ms
192.168.3.1 icmp_seq=3 time=969.000 ms
192.168.3.1 icmp_seq=4 time=562.000 ms
192.168.3.1 icmp_seq=5 time=937.000 ms
VPCS 5 >ping 192.168.3.2
192.168.3.2 icmp_seq=1 time=469.000 ms
192.168.3.2 icmp_seq=2 time=532.000 ms
192.168.3.2 icmp_seq=3 time=344.000 ms
192.168.3.2 icmp_seq=4 time=360.000 ms
192.168.3.2 icmp_seq=5 time=375.000 ms
VPCS 5 >ping 192.168.3.3
192.168.3.3 icmp_seq=1 timeout
192.168.3.3 icmp_seq=2 time=656.000 ms
192.168.3.3 icmp_seq=3 time=579.000 ms
192.168.3.3 icmp_seq=4 time=609.000 ms
192.168.3.3 icmp_seq=5 time=625.000 ms
VPCS 5 >ping 192.168.2.1
192.168.2.1 icmp_seq=1 time=812.000 ms
192.168.2.1 icmp_seq=2 time=890.000 ms
192.168.2.1 icmp_seq=3 time=984.000 ms
192.168.2.1 icmp_seq=4 time=625.000 ms
192.168.2.1 icmp_seq=5 time=500.000 ms
VPCS 5 >ping 192.168.2.2
192.168.2.2 icmp_seq=1 time=578.000 ms
192.168.2.2 icmp_seq=2 time=281.000 ms
192.168.2.2 icmp_seq=3 time=578.000 ms
192.168.2.2 icmp_seq=4 time=484.000 ms
192.168.2.2 icmp_seq=5 time=344.000 ms
VPCS 5 >ping 192.168.2.3
192.168.2.3 icmp_seq=1 timeout
192.168.2.3 icmp_seq=2 time=672.000 ms
192.168.2.3 icmp_seq=3 time=641.000 ms
192.168.2.3 icmp_seq=4 time=640.000 ms
192.168.2.3 icmp_seq=5 time=594.000 ms
VPCS 5 >ping 192.168.1.1
192.168.1.1 icmp_seq=1 time=969.000 ms
192.168.1.1 icmp_seq=2 timeout
192.168.1.1 icmp_seq=3 time=547.250 ms
192.168.1.1 icmp_seq=4 timeout
192.168.1.1 icmp_seq=5 time=391.250 ms
VPCS 5 >ping 192.168.1.2
192.168.1.2 icmp_seq=1 time=391.000 ms
192.168.1.2 icmp_seq=2 time=391.000 ms
192.168.1.2 icmp_seq=3 time=531.000 ms
192.168.1.2 icmp_seq=4 time=453.000 ms
192.168.1.2 icmp_seq=5 time=532.000 ms
VPCS 5 >ping 192.168.1.3
192.168.1.3 icmp_seq=1 timeout
192.168.1.3 icmp_seq=2 timeout
192.168.1.3 icmp_seq=3 time=672.250 ms
192.168.1.3 icmp_seq=4 time=969.000 ms
192.168.1.3 icmp_seq=5 time=750.000 ms
測試結(jié)果全部聯(lián)通。
看過文章“cisco路由器怎么在虛擬環(huán)境下配置三層交換”的人還看了: