区域0–area 0
骨干区域
172.16.1.0 24
172.16.2.0 24
172.16.3.0 24
172.16.4.0 24
172.16.5.0 24–R4环回
172.16.6.0 24–R5环回
172.16.7.0 24–R6环回
172.16.8.0 24–R7环回
172.16.9.0 24–tunnel
区域1–area 1
骨干区域
172.16.10.0 24
172.16.11.0 24–R1环回
172.16.12.0 24–R2环回
172.16.13.0 24–R3环回
区域2–area 2
骨干区域
172.16.14.0 24
172.16.15.0 24
172.16.16.0 24–R11环回
区域3–area 3
骨干区域
172.16.17.0 24
172.16.18.0 24
172.16.19.0 24–R8环回
区域4–area 4
骨干区域
172.16.20.0 24
172.16.21.0 24–R9环回
172.16.22.0 24–R10环回
运行rip的区域
10.1.1.1 24
10.1.1.2 24
interface Tunnel0/0/0 ip address 10.1.1.1 255.255.255.0 tunnel-protocol gre p2mp source 15.1.1.1 nhrp entry multicast dynamic nhrp network-id 100 nhrp entry 10.1.1.1 15.1.1.1 register
ip route-static 0.0.0.0 0 下一跳地址(做的路由器的下一跳) R5: ip route-static 0.0.0.0 0 172.16.48.1 R3: ip route-static 0.0.0.0 0 172.16.32.2 R6: ip route-static 0.0.0.0 0 172.16.64.1 R7: ip route-static 0.0.0.0 0 172.16.80.2
interface Tunnel 0/0/0 ospf network-type broadcast undo network 172.16.112.1 0.0.0.0 ospf 1 import-route ospf 2 q ospf 2 import-route ospf 1 ospf 1 area 1 authentication-mode md5 1 cipher 123456
[R6]ping 1.1.1.1 PING 1.1.1.1: 56 data bytes, press CTRL_C to break Reply from 1.1.1.1: bytes=56 Sequence=1 ttl=255 time=30 ms Reply from 1.1.1.1: bytes=56 Sequence=2 ttl=255 time=30 ms Reply from 1.1.1.1: bytes=56 Sequence=3 ttl=255 time=20 ms Reply from 1.1.1.1: bytes=56 Sequence=4 ttl=255 time=30 ms Reply from 1.1.1.1: bytes=56 Sequence=5 ttl=255 time=40 ms