先运行RIP版本1: R1#show run int lo0 Building configuration... Current configuration : 61 bytes ! interface Loopback0 ipaddress 1.1.1.1 255.255.255.0 end R1#show run int R1#show run int R1#show run int s2/2 Building configuration... Current configuration : 214 bytes ! interface Serial2/2 ipaddress 192.168.137.1 255.255.255.0 encapsulation frame-relay serial restart-delay 0 noarp frame-relay frame-relay map ip 192.168.137.7 107 broadcast noframe-relay inverse-arp end R1#show run | s r r router rip network 1.0.0.0 network 192.168.137.0 R3#show run int lo0 Building configuration... Current configuration : 61 bytes ! interface Loopback0 ipaddress 3.3.3.3 255.255.255.0 end R3#show run int s2/3 Building configuration... Current configuration : 214 bytes ! interface Serial2/3 ipaddress 192.168.137.3 255.255.255.0 encapsulation frame-relay serial restart-delay 0 noarp frame-relay frame-relay map ip 192.168.137.7 307 broadcast noframe-relay inverse-arp end R3#show run | s r r router rip network 3.0.0.0 network 192.168.137.0 R7#show run int lo0 Building configuration... Current configuration : 61 bytes ! interface Loopback0 ipaddress 7.7.7.7 255.255.255.0 end R7#show run int s2/0 Building configuration... Current configuration : 277 bytes ! interface Serial2/0 ipaddress 192.168.137.7 255.255.255.0 encapsulation frame-relay nofair-queue serial restart-delay 0 noarp frame-relay frame-relay map ip 192.168.137.3 703 broadcast frame-relay map ip 192.168.137.1 701 broadcast noframe-relay inverse-arp end R7#show run | s r r router rip network 7.0.0.0 network 192.168.137.0 各路由器RIP路由条目如下:
疑问:为什么R1和R3上学到的RIP路由条目的下一跳会是192.168.137.7,而不是始发路由器出接口的IP地址?RIPv1的实验现象和RIPv2的实验现象不同。
接下来是运行RIPv2的实验现象: R7#show run | s r r router rip version 2 network 7.0.0.0 network 192.168.137.0 noauto-summary R1#show run | s r r router rip version 2 network 1.0.0.0 network 192.168.137.0 noauto-summary R3#show run | s r r router rip version 2 network 3.0.0.0 network 192.168.137.0 noauto-summary
|