
1、左边三台设备配置OSPF 10,区域0;
2、右边为OSPF 1 中间是Area0,下挂Area1和Area2;
3、两个进程之间有ISP设备,需要访问公网。
4、OSPF 1区域零中,中心设备不启动动态路由协议,配置MGRE。
实验分析:
首先分配IP地址,在左边启动OSPF宣告,在R3上配置缺省,在R3在配置NAT
配置两条边界路由器指向ISP的缺省。
分别在各路由器(除R7)上启用OSPF
在R6\R8\R10\R12配置MGRE环境。
在除了ISP和R7的路由器上启用OSPF,按照要求宣告和选择区域。
在R3上配置GRE封装,对端为R5
[r3-Tunnel0/0/0]ip add 192.168.15.1 24
[r3-Tunnel0/0/0]tunnel-protocol gre
[r3-Tunnel0/0/0]source 4.4.1.1
[r3-Tunnel0/0/0]destination 4.4.2.2[r5-Tunnel0/0/0]ip add 192.168.15.2 24
[r5-Tunnel0/0/0]tunnel-protocol gre
[r5-Tunnel0/0/0]source 4.4.2.2
[r5-Tunnel0/0/0]destination 4.4.1.2在R6、R8、R10、R12上配置MGRE环境
[r6-Tunnel0/0/0]tunnel-protocol gre p2mp
[r6-Tunnel0/0/0]source 192.168.4.2[r8-Tunnel0/0/0]tunnel-protocol gre p2mp
[r8-Tunnel0/0/0]source GigabitEthernet 0/0/0
[r8-Tunnel0/0/0]nhrp entry 192.168.16.1 192.168.4.1 register[r10-Tunnel0/0/0]tunnel-protocol gre p2mp
[r10-Tunnel0/0/0]source GigabitEthernet 0/0/0
[r10-Tunnel0/0/0]nhrp entry 192.168.16.1 192.168.4.1 register [r12-Tunnel0/0/0]tunnel-protocol gre p2mp
[r12-Tunnel0/0/0]source GigabitEthernet 0/0/0
[r12-Tunnel0/0/0]nhrp entry 192.168.16.1 192.168.4.1 register