Skip to content

Instantly share code, notes, and snippets.

@xu1718191411
Last active February 3, 2018 14:58
Show Gist options
  • Save xu1718191411/242dc8542ee420cf0cc5fe4df2e42ba0 to your computer and use it in GitHub Desktop.
Save xu1718191411/242dc8542ee420cf0cc5fe4df2e42ba0 to your computer and use it in GitHub Desktop.
纪念我的第四个CCNA实验 RIP2路由协议 ref: https://qiita.com/xu1718191411/items/3b4805ce1e50ce1ff91b
Router3(config)#router rip
Router3(config-router)#network 192.168.12.0
Router3(config-router)#network 192.168.8.0
Router3(config-router)#network 192.168.9.0
Router3(config-router)#network 192.168.7.0
Router3(config-router)#version 2
Router3#show running-config | begin rip
router rip
version 2
network 192.168.7.0
network 192.168.8.0
network 192.168.9.0
network 192.168.12.0
!
ip classless
Router4(config)#router rip
Router4(config-router)#network 192.168.11.0
Router4(config-router)#network 192.168.10.0
Router4(config-router)#network 192.168.9.0
Router4(config-router)#network 192.168.3.0
Router4(config-router)#version 2
Router4(config-router)#exit
Router4(config)#
Router4#show running-config | begin rip
router rip
network 192.168.3.0
network 192.168.9.0
network 192.168.10.0
network 192.168.11.0
!
ip classless
Router1(config)#router rip
Router1(config-router)#network 192.168.3.0
Router1(config-router)#network 192.168.6.0
Router1(config-router)#network 192.168.2.0
Router1(config-router)#network 192.168.1.0
Router1(config-router)#version 2
Router1(config-router)#exit
Router1(config)#
Router1#show running-config | begin rip
router rip
version 2
network 192.168.1.0
network 192.168.2.0
network 192.168.3.0
network 192.168.6.0
!
ip classless
Router2(config)#router rip
Router2(config-router)#version 2
Router2(config-router)#network 192.168.7.0
Router2(config-router)#network 192.168.6.0
Router2(config-router)#network 192.168.4.0
Router2(config-router)#network 192.168.5.0
Router2(config-router)#exit
Router2(config)#
Router2#show running-config | begin rip
router rip
version 2
network 192.168.4.0
network 192.168.5.0
network 192.168.6.0
network 192.168.7.0
!
ip classless
Router4(config)#do show ip route
Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP
i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area
* - candidate default, U - per-user static route, o - ODR
P - periodic downloaded static route
Gateway of last resort is not set
R 192.168.1.0/24 [120/1] via 192.168.3.1, 00:00:26, Serial2/0
R 192.168.2.0/24 [120/1] via 192.168.3.1, 00:00:26, Serial2/0
C 192.168.3.0/24 is directly connected, Serial2/0
R 192.168.4.0/24 [120/2] via 192.168.9.3, 00:00:01, Serial3/0
[120/2] via 192.168.3.1, 00:00:26, Serial2/0
R 192.168.5.0/24 [120/2] via 192.168.3.1, 00:00:26, Serial2/0
[120/2] via 192.168.9.3, 00:00:01, Serial3/0
R 192.168.6.0/24 [120/1] via 192.168.3.1, 00:00:26, Serial2/0
R 192.168.7.0/24 [120/1] via 192.168.9.3, 00:00:01, Serial3/0
R 192.168.8.0/24 [120/1] via 192.168.9.3, 00:00:01, Serial3/0
C 192.168.9.0/24 is directly connected, Serial3/0
C 192.168.10.0/24 is directly connected, FastEthernet1/0
C 192.168.11.0/24 is directly connected, FastEthernet0/0
R 192.168.12.0/24 [120/1] via 192.168.9.3, 00:00:01, Serial3/0
Router4#ping 192.168.5.2
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.5.2, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 2/2/3 ms
Router4#ping 192.168.7.2
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.7.2, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 2/2/3 ms
Router4#ping 192.168.6.2
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.6.2, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 2/6/12 ms
Router4#
Router4#ping 192.168.8.3
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.8.3, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 1/3/12 ms
Router4#ping 192.168.12.3
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.12.3, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 1/1/3 ms
Router4#ping 192.168.6.1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.6.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 1/2/9 ms
Router4#ping 192.168.1.1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.1.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 1/6/17 ms
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment