拓扑图为:
1.在R1上
[1]int t 0/0/0
[1-Tunnel0/0/0]ip address 123.1.1.1 255.255.255.0
[1-Tunnel0/0/0]tunnel-protocol gre p2mp
[1-Tunnel0/0/0]source 17.1.1.1
[1-Tunnel0/0/0]nhrp entry multicast dynamic
[1-Tunnel0/0/0]nhrp network-id 100
[1-Tunnel0/0/0]nhrp entry 123.1.1.2 27.1.1.1 register
[1-Tunnel0/0/0]nhrp entry 123.1.1.3 37.1.1.1 register
2.在R2上
[2]int t 0/0/0
[2-Tunnel0/0/0]ip address 123.1.1.2 255.255.255.0
[2-Tunnel0/0/0]tunnel-protocol gre p2mp
[2-Tunnel0/0/0]source 27.1.1.1
[2-Tunnel0/0/0]nhrp entry multicast dynamic
[2-Tunnel0/0/0]nhrp network-id 100
[2-Tunnel0/0/0]nhrp entry 123.1.1.1 17.1.1.1 register
[2-Tunnel0/0/0]nhrp entry 123.1.1.3 37.1.1.1 register
3.在R3上
[3]int t 0/0/0
[3-Tunnel0/0/0]ip address 123.1.1.2 255.255.255.0
[3-Tunnel0/0/0]tunnel-protocol gre p2mp
[3-Tunnel0/0/0]source 37.1.1.1
[3-Tunnel0/0/0]nhrp entry multicast dynamic
[3-Tunnel0/0/0]nhrp network-id 100
[3-Tunnel0/0/0]nhrp entry 123.1.1.1 17.1.1.1 register
[3-Tunnel0/0/0]nhrp entry 123.1.1.2 37.1.1.1 register
2.AR1,AR2,AR3 使用ospf,并让AR2,AR3放弃DR选举
R1
[1] ospf
[1-ospf-1]area 0.0.0.0
[1-ospf-1]network 1.1.1.1 0.0.0.0
[1-ospf-1]network 123.1.1.0 0.0.0.255
R2
[2] ospf
[2-ospf-1]area 0.0.0.0
[2-ospf-1]network 2.2.2.2 0.0.0.0
[2-ospf-1]network 123.1.1.0 0.0.0.255
[2-ospf-1]int t 0/0/0
[2-Tunnel0/0/0]ospf network-type broadcast
[2-Tunnel0/0/0] ospf dr-priority 0
R3
[3] ospf
[3-ospf-1]area 0.0.0.0
[3-ospf-1-area-0.0.0.0]network 3.3.3.3 0.0.0.0
[3-ospf-1-area-0.0.0.1]network 123.1.1.0 0.0.0.255
[3-ospf-1-area-0.0.0.1]int t 0/0/0
[3-Tunnel0/0/0]ospf network-type broadcast
[3-Tunnel0/0/0] ospf dr-priority 0
3.配置AR3到AR6的ospf; 5:在AR5上使用 多进程双向重发布
R3
[3] ospf
[3-ospf-1]area 0.0.0.1
[3-ospf-1-area-0.0.0.1]network 34.1.1.0 0.0.0.255
R4
[4]ospf
[4-ospf-1]area 1
[4-ospf-1-area-0.0.0.1] network 4.4.4.4 0.0.0.0
[4-ospf-1-area-0.0.0.1]network 34.1.1.0 0.0.0.255
[4-ospf-1-area-0.0.0.1]network 45.1.1.0 0.0.0.255
R5
[5]ospf
[5-ospf-1]area 1
[5-ospf-1-area-0.0.0.1]network 45.1.1.0 0.0.0.255
[5-ospf-1]import-route ospf 2
[5-ospf-1]OSPF 2
[5-ospf-2]area 2
[5-ospf-2-area-0.0.0.2]network 56.1.1.0 0.0.0.255
[5-ospf-2-area-0.0.0.2]network 5.5.5.5 0.0.0.0
[5-ospf-2-area-0.0.0.2]q
[5-ospf-2]mport-route ospf 1
R6
[6]ospf
[6-ospf-1]area 2
[6-ospf-1-area-0.0.0.2]network 6.6.6.6 0.0.0.0
[6-ospf-1-area-0.0.0.2]network 56.1.1.0 0.0.0.255
4.在R3上添加nat使telnet的R3的g0/0/0接口转接到R6的g0/0/0接口
R3
[3]int g 0/0/0
[3-GigabitEthernet0/0/0]nat server protocol tcp global current-interface telnet inside 56.1.1.2 telnet
[3-GigabitEthernet0/0/0]nat outbound 2000
R6
[6] aaa
[6-aaa]local-user hua password cipher wei
[6-aaa]local-user hua service-type telnet
[6]user-interface vty 0 4
[6]authentication-mode aaa