配置ip
配置缺省路由
[R1]ip route-static 0.0.0.0 0 10.0.0.2
[R1]ip route-static 0.0.0.0 0 12.0.0.2
[R2]ip route-static 0.0.0.0 0 23.0.0.2
[R3]ip route-static 0.0.0.0 0 34.0.0.2
[R4]ip route-static 0.0.0.0 0 45.0.0.2
[R5]ip route-static 0.0.0.0 0 56.0.0.2
R1/4/5为全连的MGRE结构
R1/2/3为星型的拓扑结构
所有私有网段可以互相通讯,私有网段使用OSPF完成
更改网络类型
[R1] interface Tunnel 0/0/0
[R1-Tunnel0/0/0] ospf network-type p2mp
[R1] interface Tunnel 0/0/1
[R1-Tunnel0/0/1] ospf network-type broadcast
[R2] interface Tunnel 0/0/0
[R2-Tunnel0/0/0] ospf network-type p2mp
[R3] interface Tunnel 0/0/0
[R3-Tunnel0/0/0] ospf network-type p2mp
[R4] interface Tunnel 0/0/0
[R4-Tunnel0/0/0] ospf network-type broadcast
[R5] interface Tunnel 0/0/0
[R5-Tunnel0/0/0] ospf network-type broadcast