1.合理规划IP地址,启用OSPF单区域
R1
[R1]user-interface c0
[R1-ui-console0]idle-timeout 0 0
[R1-ui-console0]int s4/0/0
[R1-Serial4/0/0]ip add 12.0.0.1 24
[R1]ospf 1 router-id 1.1.1.1
[R1-ospf-1]area 0
[R1-ospf-1-area-0.0.0.0]network 12.0.0.1 0.0.0.0
R2
[R2]user-interface c0
[R2-ui-console0]idle-timeout 0 0
[R2-ui-console0]int s4/0/1
[R2-Serial4/0/1]ip add 12.0.0.2 24
[R2-Serial4/0/1]int s4/0/0
[R2-Serial4/0/0]ip add 23.0.0.1 24[R2]ospf 1 router-id 2.2.2.2
[R2-ospf-1]area 0
[R2-ospf-1-area-0.0.0.0]network 12.0.0.2 0.0.0.0
[R2-ospf-1-area-0.0.0.0]network 23.0.0.1 0.0.0.0
R3
[R3]user-interface c0
[R3-ui-console0]idle-timeout 0 0
[R3-ui-console0]q[R3]int l0
[R3-LoopBack0]ip add 3.3.3.3 24[R3-LoopBack0]int s4/0/1
[R3-Serial4/0/1]ip add 23.0.0.2 24
[R3-Serial4/0/1]int g0/0/0
[R3-GigabitEthernet0/0/0]ip add 34.0.0.1 24[R3]ospf 1 router-id 3.3.3.3
[R3-ospf-1]area 0
[R3-ospf-1-area-0.0.0.0]network 23.0.0.2 0.0.0.0[R3-ospf-1-area-0.0.0.0]network 34.0.0.1 0.0.0.0
[R3-ospf-1-area-0.0.0.0]network 3.3.3.3 0.0.0.0
R4
[R4]user-interface c0
[R4-ui-console0]idle-timeout 0 0
[R4-ui-console0]int g0/0/0
[R4-GigabitEthernet0/0/0]ip add 34.0.0.2 24
[R4-GigabitEthernet0/0/0]int g0/0/1
[R4-GigabitEthernet0/0/1]ip add 45.0.0.1 24
[R4-GigabitEthernet0/0/1]int g0/0/2
[R4-GigabitEthernet0/0/2]ip add 46.0.0.1 24[R4]ospf 1 router-id 4.4.4.4
[R4-ospf-1]area 0
[R4-ospf-1-area-0.0.0.0]network 34.0.0.2 0.0.0.0[R4-ospf-1-area-0.0.0.0]network 45.0.0.1 0.0.0.0
[R4-ospf-1-area-0.0.0.0]network 46.0.0.1 0.0.0.0
R5
[R5]user-interface c0
[R5-ui-console0]idle-timeout 0 0
[R5-ui-console0]int g0/0/0
[R5-GigabitEthernet0/0/0]ip add 45.0.0.2 24[R5]ospf 1 router-id 5.5.5.5
[R5-ospf-1]area 0
[R5-ospf-1-area-0.0.0.0]network 45.0.0.2 0.0.0.0
R6
[R6]user-interface c0
[R6-ui-console0]idle-timeout 0 0
[R6-ui-console0]int g0/0/0
[R6-GigabitEthernet0/0/0]ip add 46.0.0.2 24[R6]ospf 1 router-id 6.6.6.6
[R6-ospf-1]area 0
[R6-ospf-1-area-0.0.0.0]network 46.0.0.2 0.0.0.0
2.R1-R2之间启用PPP的pap单向认证
R1
[R1]aaa
[R1-aaa]local-user aaa password cipher 123
Info: Add a new user.
[R1-aaa]local-user aaa service-type ppp
[R1-aaa]int s4/0/0
[R1-Serial4/0/0]ppp authentication-mode pap
R2
[R2]int s4/0/1
[R2-Serial4/0/1]ppp pap local-user aaa password cipher 123
3.R2-R3之间启用PPP的chap双向认证
R2
[R2]aaa
[R2-aaa]local-user ddd password cipher 111
Info: Add a new user.
[R2-aaa]local-user ddd service-type ppp
[R2-aaa]int se4/0/0
[R2-Serial4/0/0]ppp authentication-mode chap
R3
[R3]int s4/0/1
[R3-Serial4/0/1]ppp chap user ddd
[R3-Serial4/0/1]ppp chap password cipher 111
4.R3-R5-R6之间使用MGRE,R3为hub端,R5 R6为spoke端;要求
MGRE接口网络类型为BMA,spoke之间通信必须经过hub端
R3
[R3]int t0/0/0
[R3-Tunnel0/0/0]ip add 10.1.1.1 24
[R3-Tunnel0/0/0]tunnel-protocol gre p2mp
[R3-Tunnel0/0/0]source 34.0.0.1
[R3-Tunnel0/0/0]nhrp entry multicast dynamic
[R3-Tunnel0/0/0]nhrp network-id 100
R5
[R5]int t0/0/0
[R5-Tunnel0/0/0]ip add 10.1.1.2 24
[R5-Tunnel0/0/0]tunnel-protocol gre p2mp
[R5-Tunnel0/0/0]source 45.0.0.2
[R5-Tunnel0/0/0]nhrp entry 10.1.1.1 34.0.0.1 register
R6
[R6]int t0/0/0
[R6-Tunnel0/0/0]ip add 10.1.1.3 24
[R6-Tunnel0/0/0]tunnel-protocol gre p2mp
[R6-Tunnel0/0/0]source 46.0.0.2
[R6-Tunnel0/0/0]nhrp network-id 100
[R6-Tunnel0/0/0]nhrp entry 10.1.1.1 34.0.0.1 register