根据题目完成下列实验:
拓扑图详细设计如下:
1.基础配置
R1:
[R1]interface s4/0/0
[R1-Serial4/0/0]ip address 12.1.1.1 24
[R1]interface LoopBack 0
[R1-LoopBack0]ip address 1.1.1.1 24
R2:
[R2]interface s4/0/1
[R2-Serial4/0/1]ip address 12.1.1.2 2
[R2]interface s4/0/0
[R2-Serial4/0/0]ip address 23.1.1.1 24
[R2]interface LoopBack 0
[R2-LoopBack0]ip address 2.2.2.2 24
R3:
[R3]interface s4/0/1
[R3-Serial4/0/1]ip address 23.1.1.2 24
[R3]interface g0/0/0
[R3-GigabitEthernet0/0/0]ip address 34.1.1.1 24
[R3]interface LoopBack 0
[R3-LoopBack0]ip address 3.3.3.3 24
R4:
[R4]interface g0/0/0
[R4-GigabitEthernet0/0/0]ip address 34.1.1.2 24
[R4]interface g0/0/1
[R4-GigabitEthernet0/0/1]ip address 45.1.1.1 24
[R4]interface g0/0/2
[R4-GigabitEthernet0/0/2]ip address 46.1.1.1 24
R5:
[R5]interface g0/0/0
[R5-GigabitEthernet0/0/0]ip address 45.1.1.2 24
[R5]interface LoopBack 0
[R5-LoopBack0]ip address 5.5.5.5 24
R6:
[R6]interface g0/0/0
[R6-GigabitEthernet0/0/0]ip address 46.1.1.2 24
[R6]interface LoopBack 0
[R6-LoopBack0]ip address 6.6.6.6 24
2.启用ospf
R1:
[R1]ospf 100 router-id 91.1.1.1
[R1-ospf-100]area 0
[R1-ospf-100-area-0.0.0.0]network 1.1.1.1 0.0.0.0
[R1-ospf-100-area-0.0.0.0]network 12.1.1.1 0.0.0.0
ospf enable 100 area 0
R2:
[R2]ospf 100 router-id 92.2.2.2
[R2-ospf-100]area 0
[R2-ospf-100-area-0.0.0.0]network 12.1.1.1 0.0.0.0
[R2-ospf-100-area-0.0.0.0]network 23.1.1.1 0.0.0.0
[R2-ospf-100-area-0.0.0.0]network 2.2.2.2 0.0.0.0
ospf enable 100 area 0
R3:
[R3]ospf 100 router-id 93.3.3.3
[R3-ospf-100]area 0
[R3-ospf-100-area-0.0.0.0]network 23.1.1.2 0.0.0.0
[R3-ospf-100-area-0.0.0.0]network 34.1.1.1 0.0.0.0
[R3-ospf-100-area-0.0.0.0]network 3.3.3.3 0.0.0.0
ospf enable 100 area 0
R4:
[R4]ospf 100 router-id 94.4.4.4
[R4-ospf-100]area 0
[R4-ospf-100-area-0.0.0.0]network 34.1.1.2 0.0.0.0
[R4-ospf-100-area-0.0.0.0]network 45.1.1.1 0.0.0.0
[R4-ospf-100-area-0.0.0.0]network 46.1.1.1 0.0.0.0
ospf enable 100 area 0
R5:
[R5]ospf 100 router-id 95.5.5.5
[R5-ospf-100]area 0
[R5-ospf-100-area-0.0.0.0]network 5.5.5.5 0.0.0.0
[R5-ospf-100-area-0.0.0.0]network 45.1.1.2 0.0.0.0
ospf enable 100 area 0
R6:
[R6]ospf 100 router-id 96.6.6.6
[R6-ospf-100]area 0
[R6-ospf-100-area-0.0.0.0]network 6.6.6.6 0.0.0.0
[R6-ospf-100-area-0.0.0.0]network 46.1.1.2 0.0.0.0
ospf enable 100 area 0
3.R1和R2之间启用PPP的PAP的单向认证
R1:
[R1]aaa
[R1-aaa]local-user hcip password cipher 123
Info: Add a new user.
[R1-aaa]local-user hcip service-type ppp
[R1]interface s4/0/0
[R1-Serial4/0/0]ppp authentication-mode pap
R2:
[R2]interface s4/0/1
[R2-Serial4/0/1]link-protocol ppp
[R2-Serial4/0/1]ppp pap local-user hcip password cipher 123
4.R2和R3之间启用PPP的chap的双向认证
R2:
[R2]aaa
[R2-aaa]local-user hcia password cipher 123
Info: Add a new user.
[R2-aaa]q
[R2]interface s4/0/0
[R2-Serial4/0/0]link-protocol ppp
[R2-Serial4/0/0]ppp authentication-mode chap
[R2]interface s4/0/0
[R2-Serial4/0/0]link-protocol ppp
[R2-Serial4/0/0]ppp chap user hcie
[R2-Serial4/0/0]ppp chap password cipher 123
R3:
[R3]interface s4/0/1
[R3-Serial4/0/1]link-protocol ppp
[R3-Serial4/0/1]ppp chap user hcia
[R3-Serial4/0/1]ppp chap password cipher 123
[R3]aaa
[R3-aaa]local-user hcie password cipher 123
Info: Add a new user.
[R3-aaa]q
[R3]interface s4/0/1
[R3-Serial4/0/1]link-protocol ppp
[R3-Serial4/0/1]ppp authentication-mode chap
5.R3-R5-R6之间的MGRE
R3:
[R3]interface Tunnel 0/0/0
[R3-Tunnel0/0/0]ip address 100.1.1.1 24
[R3-Tunnel0/0/0]tunnel-protocol gre p2mp
[R3-Tunnel0/0/0]source 34.1.1.1
Aug 7 2024 21:00:57-08:00 R3 %%01IFNET/4/LINK_STATE(l)[34]:The line protocol IP
on the interface Tunnel0/0/0 has entered the UP state.
[R3-Tunnel0/0/0]nhrp network-id 100
[R3-Tunnel0/0/0]nhrp entry multicast dynamic
[R3-Tunnel0/0/0]ospf network-type broadcast
[R3]ip route-static 0.0.0.0 0 34.1.1.2
R5:
[R5]interface Tunnel 0/0/0
[R5-Tunnel0/0/0]ip address 100.1.1.2 24
[R5-Tunnel0/0/0]tunnel-protocol gre p2mp
[R5-Tunnel0/0/0]source 45.1.1.2
Aug 7 2024 21:07:36-08:00 R5 %%01IFNET/4/LINK_STATE(l)[1]:The line protocol IP
on the interface Tunnel0/0/0 has entered the UP state.
[R5-Tunnel0/0/0]nhrp network-id 100
[R5-Tunnel0/0/0]nhrp entry 100.1.1.1 34.1.1.1 register
[R5-Tunnel0/0/0]ospf network-type broadcast
[R5]ip route-static 0.0.0.0 0 45.1.1.1
R6:
[R6]interface Tunnel 0/0/0
[R6-Tunnel0/0/0]ip address 100.1.1.3 24
[R6-Tunnel0/0/0]source 46.1.1.2
Aug 7 2024 21:12:17-08:00 R6 %%01IFNET/4/LINK_STATE(l)[1]:The line protocol IP
on the interface Tunnel0/0/0 has entered the UP state.
[R6-Tunnel0/0/0]tunnel-protocol gre p2mp
[R6-Tunnel0/0/0]nhrp network-id 100
[R6-Tunnel0/0/0]nhrp entry 100.1.1.1 34.1.1.1 register
[R6-Tunnel0/0/0]ospf network-type broadcast
[R6]ip route-static 0.0.0.0 0 46.1.1.1
6.实现全网通