实验要求:
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、全网可达
R1:
[r1]int lo0
[r1-LoopBack0]ip ad 10.1.1.1 32
[r1-LoopBack0]int g0/0/0
[r1-GigabitEthernet0/0/0]ip ad 10.1.123.1 24
[r1]ospf 1 router-id 1.1.1.1
[r1-ospf-1]a 1
[r1-ospf-1-area-0.0.0.1]network 10.1.1.1 0.0.0.0
[r1-ospf-1-area-0.0.0.1]network 10.1.123.0 0.0.0.255
[r1]ospf 1
[r1-ospf-1]a 1
[r1-ospf-1-area-0.0.0.1]stub
R2:
[r2]int lo0
[r2-LoopBack0]ip ad 10.1.2.1 32
[r2-LoopBack0]int g0/0/0
[r2-GigabitEthernet0/0/0]ip ad 10.1.123.2 24
[r2]ospf 1 router-id 2.2.2.2
[r2-ospf-1]a 1
[r2-ospf-1-area-0.0.0.1]network 10.1.2.1 0.0.0.0
[r2-ospf-1-area-0.0.0.1]network 10.1.123.0 0.0.0.255
[r2]ospf 1
[r2-ospf-1]a 1
[r2-ospf-1-area-0.0.0.1]stub
R3:
[r3]int g0/0/0
[r3-GigabitEthernet0/0/0]ip ad 10.1.123.3 24
[r3-GigabitEthernet0/0/0]int lo0
[r3-LoopBack0]ip ad 10.0.3.1 32
[r3-GigabitEthernet0/0/0]int g0/0/1
[r3-GigabitEthernet0/0/1]ip ad 200.1.34.1 24
[r3]ip route-static 0.0.0.0 0 200.1.34.2
[r3]int tun 0/0/0
[r3-Tunnel0/0/0]ip ad 10.0.30.3 24
[r3-Tunnel0/0/0]tunnel-protocol gre p2mp
[r3-Tunnel0/0/0]source g0/0/1
[r3-Tunnel0/0/0]nhrp network-id 1
[r3-Tunnel0/0/0]nhrp entry multicast dynamic
[r3-Tunnel0/0/0]nhrp authentication cipher 123
[r3-Tunnel0/0/0]gre key 123
[r3]ospf router-id 3.3.3.3
[r3-ospf-1-area-0.0.0.0]network 10.0.30.0 0.0.0.255
[