Interface IP Address/Mask Physical Protocol
GigabitEthernet0/0/0 172.16.1.1/24 up up
GigabitEthernet0/0/1 unassigned down down
GigabitEthernet0/0/2 unassigned down down
LoopBack0 172.16.2.1/24 up up(s)
NULL0 unassigned up up(s)
给除R4的路由写缺省
0.0.0.0/0 Static 60 0 RD 172.16.1.3
给R3配置MGRE
interface Tunnel0/0/0
ip address 172.16.33.1 255.255.255.0
tunnel-protocol gre p2mp
source 1.1.1.1
ospf network-type p2mp
nhrp entry multicast dynamic
给其他几个分支路由配置MGRE
interface Tunnel0/0/0
ip address 172.16.33.6 255.255.255.0
tunnel-protocol gre p2mp
source GigabitEthernet0/0/0
ospf network-type p2mp
nhrp entry 172.16.33.1 1.1.1.1 register
配置OSPF
ospf 1 router-id 6.6.6.6
area 0.0.0.0
network 172.16.33.6 0.0.0.0
network 172.16.38.1 0.0.0.0
area 0.0.0.1
area 0.0.0.2
abr-summary 172.16.64.0 255.255.224.0
network 172.16.65.1 0.0.0.0
汇总
ABR
abr-summary 172.16.64.0 255.255.224.0
ASBR
asbr-summary 172.16.128.0 255.255.224.0