第一步:
配置area 0 公网部分IP地址,搭建MGRE环境
R3
[R3]int s4/0/0
[R3-Serial4/0/0]ip address 34.0.0.1 24
配置缺省
[R3]ip route-static 0.0.0.0 0 34.0.0.2
搭建MGRE
[R3]int t0/0/0
[R3-Tunnel0/0/0]ip add 172.16.1.1 29
[R3-Tunnel0/0/0]tunnel-protocol gre p2mp
[R3-Tunnel0/0/0]source 34.0.0.1
[R3-Tunnel0/0/0]nhrp network-id 100
[R3-Tunnel0/0/0]nhrp entry multicast dynamic
查看是否到R3中心站点上进行注册
R4(ISP)
[ISP]int s4/0/0
[ISP-Serial4/0/0]ip address 34.0.0.2 24
[ISP-Serial4/0/1]ip address 45.0.0.2 24
[ISP-Serial3/0/0]ip address 46.0.0.2 24
[ISP-GigabitEthernet0/0/0]ip address 47.0.0.2 24
[ISP]int l0
[ISP-LoopBack0]ip address 4.4.4.4 24
R5
[R5]int s4/0/0
[R5-Serial4/0/0]ip address 45.0.0.1 24
[R5]int l0
[R5-LoopBack0]ip add 172.16.2.1 24
配置缺省
[R5]ip route-static 0.0.0.0 0 45.0.0.2
搭建MGRE
[R5]int t0/0/0
[R5-Tunnel0/0/0]ip add 172.16.1.2 29
[R5-Tunnel0/0/0]tunnel-protocol gre p2mp
[R5-Tunnel0/0/0]source Serial 4/0/0
[R5-Tunnel0/0/0]nhrp network-id 100
[R5-Tunnel0/0/0]nhrp entry 172.16.1.1 34.0.0.1 register
R6
[R6]int s4/0/0
[R6-Serial4/0/0]ip address 46.0.0.1 24
[R6]int l0
[R6-LoopBack0]ip add 172.16.3.1 24
配置缺省
[R6]ip route-static 0.0.0.0