OSPF*MGRE
一:实验拓扑
实验目的:
IP地址配置如拓扑所示;
路由器配置:
ospf-10
[r1]ospf 10
[r1-ospf-10]area 0
[r1-ospf-10-area-0.0.0.0]network 192.168.1.1 0.0.0.0
[r2]ospf 10
[r2-ospf-10]area 10
[r2-ospf-10-area-0.0.0.10]network 192.168.1.2 0.0.0.0[r3]ospf 10
[r3-ospf-10]area 0
[r3-ospf-10-area-0.0.0.0]network 192.168.1.3 0.0.0.0
[r3-ospf-10-area-0.0.0.0]network 34.0.0.3 0.0.0.0[r3]acl 2000
[r3-acl-basic-2000]rule permit source 192.168.1.0 0.0.0.255
[r3-acl-basic-2000]q
[r3]int g 0/0/1
[r3-GigabitEthernet0/0/1]nat outbound 2000[r1]ip route-static 0.0.0.0 0 34.0.0.4
[r2]ip route-static 0.0.0.0 0 34.0.0.4
[r3]ip route-static 0.0.0.0 0 34.0.0.4
OSPF-1*MGRE:
[r6]int Tunnel 0/0/0
[r6-Tunnel0/0/0]ip add 192.168.5.6 24
[r6-Tunnel0/0/0]tunnel-protocol gre p2mp
[r6-Tunnel0/0/0]source 68.0.0.6
[r6-Tunnel0/0/0]nhrp redirect
[r7]int Tunnel 0/0/0
[r7-Tunnel0/0/0]ip add 192.168.5.7 24
[r7-Tunnel0/0/0]tunnel-protocol gre p2mp
[r7-Tunnel0/0/0]source g0/0/0
[r7-Tunnel0/0/0]nhrp entry 192.168.5.7 68.0.0.6 register
[r7-Tunnel0/0/0]nhrp shortcut
[r9]int Tunnel 0/0/0
[r9-Tunnel0/0/0]ip add 192.168.5.9 24
[r9-Tunnel0/0/0]tunnel-protocol gre p2mp
[r9-Tunnel0/0/0]source g0/0/0
[r9-Tunnel0/0/0]nhrp entry 192.168.5.9 68.0.0.6 register
[r9-Tunnel0/0/0]nhrp shortcut
[r10]int t0/0/0
[r10-Tunnel0/0/0]ip add 192.168.5.10 24
[r10-Tunnel0/0/0]tunnel-protocol gre p
[r10-Tunnel0/0/0]tunnel-protocol gre p2mp
[r10-Tunnel0/0/0]source g0/0/0
[r10-Tunnel0/0/0]nhrp entry 192.168.5.10 68.0.0.6 register
[r10-Tunnel0/0/0]nhrp shortcut
该实验目前存在问题,MGRE 环境内部通,但外部暂时不通。