题目要求:
1、R4为ISP,其实只能配置IP地址;R4与其他所哟普智联设备间使用公有IP
2、R3-R7为MGRE环境,R3为中心站点
整个OSPF环境地址为172.16.0.0/16
4、所有直连设备均可访问R4的环回地址
5、减少LSA的更新量,加快收敛,保障更新安全
6、全网可达
拓扑图:
实验结果:r1:
r1物理接口地址:
[r1]int e 0/0/0
[r1-Ethernet0/0/0]ip add 172.16.32.129 29
环回:[r1-LoopBack0]ip add 172.16.33.1 25
起ospf:
[r1]ospf 1 router-id 1.1.1.1
[r1-ospf-1-area-0.0.0.1]network 172.16.0.0 0.0.255.255
调成末梢
[r1]ospf 1
[r1-ospf-1]area 1
[r1-ospf-1-area-0.0.0.1]stub
r2:
[r2]int e 0/0/0
[r2-Ethernet0/0/0]ip add 172.16.32.130 29
环回接口地址:[r2-LoopBack0]ip add 172.16.33.129 25
起ospf:
[r2]ospf 1 router-id 2.2.2.2
[r2-ospf-1]area 1
[r2-ospf-1-area-0.0.0.1]network 172.16.0.0 0.0.255.255
[r2]ospf 1
[r2-ospf-1]area 1
[r2-ospf-1-area-0.0.0.1]stub
r3:
[r3-GigabitEthernet0/0/1]ip add 34.1.1.1 24
[r3]ip route-static 0.0.0.0 0 34.1.1.2
interface Tunnel0/0/0
ip address 172.16.0.129 255.255.255.248
tunnel-protocol gre p2mp
source 34.1.1.1
nhrp entry multicast dynamic
nhrp network-id 100
r3的物理接口地址:
[r3]int g 0/0/0
[r3-Gig