要求:
1.如图连接,合理规划IP地址,所有路由器各自创建一个loopback接口
2.R1再创建三个接口IP地址为201.1.1.1/24、201.1.2.1/24、201.1.3.1/24
R5再创建三个接口IP地址为202.1.1.1/24、202.1.2.1/24、202.1.3.1/24
R7再创建三个接口IP地址为203.1.1.1/24、203.1.2.1/24、203.1.3.1/24
3.如图运行路由协议
3.1 R1 -R2 -R3之间使用MGRE网络,为hub-spoke 网络结构,R1为hub端 ,部署OSPF网络,MGRE修改为BMA网络类型
3.2 R2-R3之间启用PPP pap 单项认证 , R3-R4之间启用PPP的chap双向认证
4.area 1 区域不得出现4.5类LSA
5.其他区域优先通过R3访问R1 三个环回接口
6.尽量减少路由条目数量
7.area 1 区域增加安全性
8.全网可达
1.合理规划IP地址,所有路由器各自创建一个loopback接口
[r1]interface g0/0/0
[r1-GigabitEthernet0/0/0]ip add 18.1.1.1 24
[r1]interface LoopBack 0
[r1-LoopBack0]ip add 1.1.1.1 24
[r8]inter
[r8]interface g0/0/1
[r8-GigabitEthernet0/0/1]ip add 18.1.1.2 24
[r8]interface g0/0/0
[r8-GigabitEthernet0/0/0]ip add 28.1.1.1 24
[r8]interface g0/0/2
[r8-GigabitEthernet0/0/2]ip add 38.1.1.1 24
[r8]interface LoopBack 0
[r8-LoopBack0]ip add 8.8.8.8 24
[r2]interface g0/0/1
[r2-GigabitEthernet0/0/1]ip add 28.1.1.2 24
[r2]interface s4/0/0
[r2-Serial4/0/0]ip add 24.1.1.1 24
[r2]interface LoopBack 0
[r2-LoopBack0]ip add 2.2.2.2 24
[r3]interface g0/0/0
[r3-GigabitEthernet0/0/0]ip add 38.1.1.2 24
[r3]interface s4/0/0
[r3-Serial4/0/0]ip add 34.1.1.1 24
[r3]interface LoopBack 0
[r3-LoopBack0]ip add 3.3.3.3 24
[r4]interface s4/0/0
[r4-Serial4/0/0]ip add 24.1.1.2 24
[r4]interface s4/0/1
[r4-Serial4/0/1]ip add 34.1.1.2 24
[r4]interface g0/0/0
[r4-GigabitEthernet0/0/0]ip add 45.1.1.1 24
[r4]interface g0/0/1
[r4-GigabitEthernet0/0/1]ip add 46.1.1.1 24
[r4]interface LoopBack 0
[r4-LoopBack0]ip add 4.4.4.4 24
[r5]interface g0/0/0
[r5-GigabitEthernet0/0/0]ip add 45.1.1.2 24
[r5]interface LoopBack 0
[r5-LoopBack0]ip add 5.5.5.5 24
[r6]interface g0/0/1
[r6-GigabitEthernet0/0/1]ip add 46.1.1.2 24
[r6]interface g0/0/0
[r6-GigabitEthernet0/0/0]ip add 67.1.1.1 24
[r6]interface LoopBack 0
[r6-LoopBack0]ip add 6.6.6.6 24
[r7]interface g0/0/1
[r7-GigabitEthernet0/0/1]ip add 67.1.1.2 24
[r7]interface LoopBack 0
[r7-LoopBack0]ip add 7.7.7.7 24
2.创建三个接口
[r1]interface LoopBack 1
[r1-LoopBack1]ip add 201.1.1.1 24
[r1]interface LoopBack 2
[r1-LoopBack2]ip add 201.1.2.1 24
[r1]interface LoopBack 3
[r1-LoopBack3]ip add 201.1.3.1 24
[r5]interface LoopBack 1
[r5-LoopBack1]ip add 202.1.1.1 24
[r5]interface LoopBack 2
[r5-LoopBack2]ip add 202.1.2.1 24
[r5]interface LoopBack 3
[r5-LoopBack3]ip add 202.1.3.1 24
[r7]interface LoopBack 1
[r7-LoopBack1]ip add 203.1.1.1 24
[r7]interface LoopBack 2
[r7-LoopBack2]ip add 203.1.2.1 24
[r7]interface LoopBack 3
[r7-LoopBack3]ip add 203.1.3.1 24
3.1 R1 -R2 -R3之间使用MGRE网络,为hub-spoke 网络结构,R1为hub端 ,部署OSPF网络,MGRE修改为BMA网络类型
[r1]ip route-static 0.0.0.0 0 18.1.1.2
[r1]int Tunnel 0/0/0
[r1-Tunnel0/0/0]ip add 10.1.1.1 24
[r1-Tunnel0/0/0]tunnel-protocol gre p2mp
[r1-Tunnel0/0/0]source 18.1.1.1
[r1-Tunnel0/0/0]nhrp entry multicast dynamic
[r1-Tunnel0/0/0]nhrp network-id 100
[r1-Tunnel0/0/0]ospf network-type broadcast
[r1-Tunnel0/0/0]ospf dr-priority 10[r1]ospf 100 router-id 91.1.1.1
[r1-ospf-100]area 0
[r1-ospf-100-area-0.0.0.0]net
[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 201.1.1.1 0.0.0.0
[r1-ospf-100-area-0.0.0.0]network 201.1.2.1 0.0.0.0
[r1-ospf-100-area-0.0.0.0]network 201.1.3.1 0.0.0.0
[r1-ospf-100-area-0.0.0.0]network 10.1.1.1 0.0.0.0
[r2]ip route-static 0.0.0.0 0 28.1.1.1
[r2]int t0/0/0
[r2-Tunnel0/0/0]ip add 10.1.1.2 24
[r2-Tunnel0/0/0]tunnel-protocol gre p2mp
[r2-Tunnel0/0/0]source 28.1.1.2
[r2-Tunnel0/0/0]nhrp network-id 100
[r2-Tunnel0/0/0]nhrp entry 10.1.1.1 18.1.1.1 register
[r2-Tunnel0/0/0]ospf network-type broadcast
[r2-Tunnel0/0/0]ospf dr-priority 0[r2]ospf 100 router-id 92.2.2.2
[r2-ospf-100]area 0
[r2-ospf-100-area-0.0.0.0]network 10.1.1.2 0.0.0.0[r2-ospf-100-area-0.0.0.0]network 28.1.1.2 0.0.0.0
[r2-ospf-100]area 1
[r2-ospf-100-area-0.0.0.1]network 24.1.1.1 0.0.0.0
[r3]ip route-static 0.0.0.0 0 38.1.1.1
[r3]int t0/0/0
[r3-Tunnel0/0/0]ip add 10.1.1.3 24
[r3-Tunnel0/0/0]tunnel-protocol gre p2mp
[r3-Tunnel0/0/0]source 38.1.1.2
[r3-Tunnel0/0/0]nhrp network-id 100
[r3-Tunnel0/0/0]nhrp entry 10.1.1.1 18.1.1.1 register
[r3-Tunnel0/0/0]ospf network-type broadcast
[r3-Tunnel0/0/0]ospf dr-priority 0[r3]ospf 100 router-id 93.3.3.3
[r3-ospf-100]area 0
[r3-ospf-100-area-0.0.0.0]network 10.1.1.3 0.0.0.0
[r3-ospf-100-area-0.0.0.0]network 3.3.3.3 0.0.0.0
[r3-ospf-100-area-0.0.0.0]network 38.1.1.2 0.0.0.0
[r3-ospf-100]area 1
[r3-ospf-100-area-0.0.0.1]network 34.1.1.1 0.0.0.0
[r4]ospf 100 router-id 94.4.4.4
[r4-ospf-100]area 1
[r4-ospf-100-area-0.0.0.1]net
[r4-ospf-100-area-0.0.0.1]network 24.1.1.2 0.0.0.0[r4-ospf-100-area-0.0.0.1]network 34.1.1.2 0.0.0.0
[r4-ospf-100-area-0.0.0.1]network 4.4.4.4 0.0.0.0
[r4-ospf-100]area 2
[r4-ospf-100-area-0.0.0.2]network 46.1.1.1 0.0.0.0[r4]rip 200
[r4-rip-200]version 2
[r4-rip-200]net 45.0.0.0
[r5]rip 200
[r5-rip-200]network 45.0.0.0
[r5-rip-200]network 5.0.0.0
[r5-rip-200]network 202.1.1.0
[r5-rip-200]network 202.1.2.0
[r5-rip-200]network 202.1.3.0
[r6]ospf 100 router-id 96.6.6.6
[r6-ospf-100]area 2
[r6-ospf-100-area-0.0.0.2]network 46.1.1.2 0.0.0.0[r6-ospf-100-area-0.0.0.2]network 6.6.6.6 0.0.0.0
[r6]rip 100
[r6-rip-100]version 2
[r6-rip-100]network 67.0.0.0
[r7]rip 100
[r7-rip-100]version 2
[r7-rip-100]network 7.0.0.0
[r7-rip-100]network 203.1.1.0
[r7-rip-100]network 203.1.2.0
[r7-rip-100]network 203.1.3.0
[r7-rip-100]network 67.0.0.0
[r8]ospf 100 router-id 98.8.8.8
[r8-ospf-100]area 0
[r8-ospf-100-area-0.0.0.0]network 18.1.1.2 0.0.0.0
[r8-ospf-100-area-0.0.0.0]network 38.1.1.1 0.0.0.0[r8-ospf-100-area-0.0.0.0]network 8.8.8.8 0.0.0.0
[r8-ospf-100-area-0.0.0.0]network 28.1.1.1 0.0.0.0
3.2 R2-R3之间启用PPP pap 单项认证 , R3-R4之间启用PPP的chap双向认证
[r2]aaa
[r2-aaa]local-user huawei password cipher 123
[r2-aaa]local-user huawei service-type ppp[r2-aaa]int s4/0/0
[r2-Serial4/0/0]ppp authentication-mode pap
[r3]aaa
[r3-aaa]local-user hcip password cipher 123
[r3-aaa]local-user hcip service-type ppp
[r3-aaa]int s4/0/0
[r3-Serial4/0/0]ppp authentication-mode chap[r4]int s4/0/1
[r4-Serial4/0/1]ppp chap user cba
[r4-Serial4/0/1]ppp chap password cipher 123
4.area 1 区域不得出现4.5类LSA
[r2-ospf-100-area-0.0.0.1]nssa
[r3-ospf-100-area-0.0.0.1]nssa
[r4-ospf-100-area-0.0.0.1]nssa
5.其他区域优先通过R3访问R1 三个环回接口
[r2]ospf 100
[r2-ospf-100]area 0
[r2-ospf-100-area-0.0.0.0]abr-summary 201.1.0.0 255.255.252.0 cost 10[r3-ospf-100-area-0.0.0.0]abr-summary 201.1.0.0 255.255.252.0 cost 5
7.area 1 区域增加安全性
[r1]ospf 100
[r1-ospf-100]area 1[r1-ospf-100-area-0.0.0.1]authentication-mode simple pain huawei
8.全网可达
标签:24,network,area,ospf,实验,0.0,100,HCIP,OSPF From: https://blog.csdn.net/2201_75911805/article/details/141059907