题目
拓扑
IP分配
172.16.0.0/16 ? ?172.16.0.0/19 A0 ? ? ? ? 172.16.0.0/25 172.16.0.128/25 172.16.1.0/25... ? ? ? ? ? ? ? ?MA骨干:172.16.0.128/29 ? ? ? ? ? ? ? ?用户网段:172.16.1.1/25 172.16.1.169/25 172.16.2.1/25 ? ?172.16.32.0/19 A1 ? ? ? ? 172.16.32.0/25 172.16.32.128/25 172.16.33.0/25... ? ? ? ? ? ? ? ? MA骨干:172.16.32.128/29 ? ? ? ? ? ? ? ? 用户网络:172.16.33.0/25 ?172.16.33.129/25 172.16.34.1/25 ? ?172.16.64.0/19 A2 ? ? ? ? 172.16.64.0/25 172.16.64.128/25 172.16.65.0/25... ? ? ? ? ? ? ? ? P2P骨干:172.16.64.0/30 172.16.64.4/30 ? ? ? ? ? ? ? ? 用户网络:172.16.65.0/25 ? ?172.16.96.0/19 A3 ? ? ? ? 172.16.96.0/25 172.16.96.128/25 172.16.97.0/25... ? ? ? ? ? ? ? ? P2P骨干:172.16.96.0/30 172.16.96.4/30 ? ? ? ? ? ? ? ? 用户网络:172.16.96.0/25 ? ?172.16.128.0/19 A4 ? ? ? ? 172.16.128.0/25 172.16.128.128/25 172.16.129.0/25... ? ? ? ? ? ? ? ? P2P骨干:172.16.128.0/30 172.16.128.4/30 ? ? ? ? ? ? ? ? 用户网络:172.16.128.0/25 172.16.128.169/25 ? ?172.16.160.0/19 RIP ? ? ? ? 172.16.160.0/25 172.16.160.128/25 172.16.161.0/25.. ? ? ? ? ? ? ? ? 用户网络:172.16.160.0/25 172.16.160.169/25
将172.16.0.0/16 IP划分为8个,依次分配,剩余两个。
然后按照如下规则划分,例如172.16.0.0/19:
将172.16.0.0/19,向前借6六位,分成172.16.0.0/25-172.16.31.128/25
其中172.16.0.0/25为P2P骨干号,划分为:172.16.0.0/30 172.16.0.4/30....
其中172.16.0.128/25为MA骨干号,划分为172.16.0.128/29 172.16.0.136/29...
其余172.16.1.0/25为用户网络,划分为172.16.1.0/25-172.16.31.128/25
其他配置
R3/5/6/7缺省路由指向R4
对外路由IP随意配
MGRE3/5/6/7
?
R3
[r3]int t0/0/0 [r3-Tunnel0/0/0]ip add 172.16.0.129 29 [r3-Tunnel0/0/0]tunnel-protocol gre p2mp? [r3-Tunnel0/0/0]source 34.1.1.1 Jan 16 2022 19:37:32-08:00 r3 %%01IFNET/4/LINK_STATE(l)[1]:The line protocol IP? on the interface Tunnel0/0/0 has entered the UP state.? [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 172.16.0.130 29 [r5-Tunnel0/0/0]tunnel-protocol gre p2mp [r5-Tunnel0/0/0]source 54.1.1.1 Jan 16 2022 19:40:39-08:00 r5 %%01IFNET/4/LINK_STATE(l)[0]:The line protocol IP? on the interface Tunnel0/0/0 has entered the UP state.? [r5-Tunnel0/0/0]nhrp entry 172.16.0.129 34.1.1.1 register? [r5-Tunnel0/0/0]nhrp network-id 100
R6
[r6]int t0/0/0 [r6-Tunnel0/0/0]ip add 172.16.0.131 29 [r6-Tunnel0/0/0]tunnel-protocol gre p2mp? [r6-Tunnel0/0/0]source 64.1.1.1 Jan 16 2022 19:43:22-08:00 r6 %%01IFNET/4/LINK_STATE(l)[0]:The line protocol IP? on the interface Tunnel0/0/0 has entered the UP state.?? [r6-Tunnel0/0/0]nhrp entry 172.16.0.129 34.1.1.1 register?? [r6-Tunnel0/0/0]nhrp network-id 100
R7
[r7]int t0/0/0 [r7-Tunnel0/0/0]ip add 172.16.0.132 29 [r7-Tunnel0/0/0]tunnel-protocol gre p2mp? [r7-Tunnel0/0/0]source 74.1.1.1 Jan 16 2022 19:45:28-08:00 r7 %%01IFNET/4/LINK_STATE(l)[0]:The line protocol IP? on the interface Tunnel0/0/0 has entered the UP state.?? [r7-Tunnel0/0/0]nhrp entry 172.16.0.129 34.1.1.1 register? [r7-Tunnel0/0/0]nhrp network-id 100
OSPF? 宣告
其中ABR的宣告比较麻烦,需要注意宣告范围
R1
[r1]ospf 1? [r1-ospf-1]area 1? ? [r1-ospf-1-area-0.0.0.1]network 172.16.0.0 0.0.255.255
R2
[r2]ospf 1? [r2-ospf-1]area 1? ? [r2-ospf-1-area-0.0.0.1]network 172.16.0.0 0.0.255.255
R3
[r3-ospf-1]display this? [V200R003C00] # ospf 1? ?area 0.0.0.0? ? network 172.16.0.129 0.0.0.0? ?area 0.0.0.1? ? network 172.16.32.0 0.0.3.255?
#
R5
?[r5]ospf 1 router-id 5.5.5.5?? [r5-ospf-1]area 0 [r5-ospf-1-area-0.0.0.0]network 172.16.0.0 0.0.255.255
R6
[r6]ospf 1 router-id 6.6.6.6 [r6-ospf-1]area 0 [r6-ospf-1-area-0.0.0.0]network 172.16.0.0 0.0.1.255 [r6-ospf-1-area-0.0.0.0]q [r6-ospf-1]area 1 [r6-ospf-1-area-0.0.0.1]network 172.16.64.1 0.0.0.0?
R7
?[r7]ospf 1 router-id 7.7.7.7?? [r7-ospf-1]area 0 [r7-ospf-1-area-0.0.0.0]network 172.16.0.0 0.0.3.255 [r7-ospf-1-area-0.0.0.0]q [r7-ospf-1]area 3 [r7-ospf-1-area-0.0.0.3]network ?172.16.96.1 0.0.0.0
R12
[r12]rip 1 [r12-rip-1]ver 2 [r12-rip-1]network 172.16.0.0?
重发布R9
[r9]ospf 2?? [r9-ospf-2]area 4 [r9-ospf-2-area-0.0.0.4]network 172.16.128.0 0.0.1.255?
[r9]ospf 1? [r9-ospf-1]import-route ospf 1
汇总
R9
[r9-ospf-1]asbr-summary 172.16.128.0 255.255.224.0
[r9-ospf-2]asbr-summary 172.16.160.0?255.255.224.0
R3
?[r3-ospf-1]asbr-summary 172.16.0.0 255.255.224.0
R7
??[r7-ospf-1]asbr-summary 172.16.0.32 255.255.224.0
R12
???[r7-ospf-1]asbr-summary 172.160.0. 255.255.224.0
完全末梢区域--A1
R1
?[r1-ospf-1-area-0.0.0.1]stub
R2?
?[r2-ospf-1-area-0.0.0.1]stub?
R3
??[r3-ospf-1-area-0.0.0.1]stub no-summary
?NSSA? --A3 A2
R11
?[r11-ospf-1-area-0.0.0.2]nssa
?R6
?[r6-ospf-1-area-0.0.0.2]nssa no-summary
R12
?[r12-ospf-1-area-0.0.0.2]nssa no-summary
R7
?[r7-ospf-1-area-0.0.0.3]nssa no-summary
?R8
[r8-ospf-1-area-0.0.0.3]nssa no-summary
R9
?[r9-ospf-1-area-0.0.0.3]nssa no-summary
|