1.R4为ISP,其上只能配置IP地址;R4与其他所有直连设备均使用公有IP地址;
2.R3-R5/6/7为MGRE环境,R3为中心站点;
3.整个OSPF环境IP地址为172.16.0.0/16;
4.所有设备均可访问R4的环回;
5.减少LSA的更新量,加快收敛,保障更新安全;
6.全网可达
一:配置IP
1、配置area0:
配置信息
[r4]int s4/0/0
[r4-Serial4/0/0]ip add 34.0.0.2 24
[r4-Serial4/0/0]int g0/0/0
[r4-GigabitEthernet0/0/0]ip add 47.0.0.2 24
[r4-GigabitEthernet0/0/0]int s3/0/0
[r4-Serial3/0/0]ip add 46.0.0.2 24
[r4-Serial3/0/0]int s4/0/1
[r4-Serial4/0/1]ip add 45.0.0.2 24
[r4-Serial4/0/1]int l0
[r4-LoopBack0]ip add 4.4.4.4 24
r3:
[r3]int s4/0/0
[r3-Serial4/0/0]ip add 34.0.0.1 24
[r3-Serial4/0/0]q
[r3]ip route-static 0.0.0.0 0 34.0.0.2
[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]nh entry multicast dynamic
r5:
[r5]int s4/0/0
[r5-Serial4/0/0]ip add 45.0.0.1 24
[r5-Serial4/0/0]int l0
[r5-LoopBack0]ip add 192.16.2.1 24
[r5-LoopBack0]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 s4/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
[r5]ip route-static 0.0.0.0 0 45.0.0.2
r6:
[r6]int s4/0/0
[r6-Serial4/0/0]ip add 46.0.0.1 24
[r6-Serial4/0/0]int t0/0/0
[r6-Tunnel0/0/0]ip add 172.16.1.3 29
[r6-Tunnel0/0/0]int l0
[r6-LoopBack0]ip add 172.16.3.1 24
[r6-LoopBack0]q
[r6]ip route-static 0.0.0.0 0 46.0.0.2
[r6]int s4/0/0
[r6-Serial4/0/0]int t0/0/0
[r6-Tunnel0/0/0]tunnel-protocol gre p2mp
[r6-Tunnel0/0/0]source s4/0/0
[r6-Tunnel0/0/0]nhrp network-id 100
[r6-Tunnel0/0/0]nhrp entry 172.16.1.1 34.0.0.1 register
r7:
[r7]int g0/0/0
[r7-GigabitEthernet0/0/0]ip add 47.0.0.1 24
[r7-GigabitEthernet0/0/0]int l0
[r7-