题目:
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.如图运行路由协议
R1 -R2 -R3之间使用MGRE网络,为hub-spoke 网络结构,R1为hub端 ,部署OSPF网络,MGRE修改为BMA网络类型
3.1 R2-R3之间启用PPP的pap单向认证,R3-R4之间启用PPP的chap双向认证
4.area 1 区域不得出现4.5类LSA
5.其他区域优先通过R3访问R1 三个环回接口
6.尽量减少路由条目数量
7.area 1 区域增加安全性
8.全网可达
步骤:
1.配ip:
r1
Interface IP Address/Mask Physical Protocol
GigabitEthernet0/0/0 18.1.1.1/24 up up
GigabitEthernet0/0/1 unassigned down down
GigabitEthernet0/0/2 unassigned down down
LoopBack0 1.1.1.1/24 up up(s)
LoopBack1 201.1.1.1/24 up up(s)
LoopBack2 201.1.2.1/24 up up(s)
LoopBack3 201.1.3.1/24 up up(s)
NULL0 unassigned up up(s)
r2
Interface IP Address/Mask Physical Protocol
GigabitEthernet0/0/0 unassigned down down
GigabitEthernet0/0/1 28.1.1.2/24 up up
GigabitEthernet0/0/2 unassigned down down
LoopBack0 2.2.2.2/24 up up(s)
NULL0 unassigned up up(s)
Serial4/0/0 24.1.1.1/24 up up
Serial4/0/1 unassigned down down
r3
Interface IP Address/Mask Physical Protocol
GigabitEthernet0/0/0 38.1.1.2/24 up up
GigabitEthernet0/0/1 unassigned down down
GigabitEthernet0/0/2 unassigned down down
LoopBack0 3.3.3.3/24 up up(s)
NULL0 unassigned up up(s)
Serial4/0/0 34.1.1.1/24 up up
Serial4/0/1 unassigned down down
r4
Interface IP Address/Mask Physical Protocol
GigabitEthernet0/0/0 45.1.1.1/24 up up
GigabitEthernet0/0/1 46.1.1.1/24 up up
GigabitEthernet0/0/2 unassigned down down
LoopBack4 4.4.4.4/24 up up(s)
NULL0 unassigned up up(s)
Serial4/0/0 24.1.1.2/24 up up
Serial4/0/1 34.1.1.2/24 up up
r5
Interface IP Address/Mask Physical Protocol
GigabitEthernet0/0/0 unassigned down down
GigabitEthernet0/0/1 45.1.1.2/24 up up
GigabitEthernet0/0/2 unassigned down down
LoopBack0 5.5.5.5/24 up up(s)
LoopBack1 202.1.1.1/24 up up(s)
LoopBack2 202.1.2.1/24 up up(s)
LoopBack3 202.1.3.1/24 up up(s)
NULL0 unassigned up up(s)
r6
Interface IP Address/Mask Physical Protocol
GigabitEthernet0/0/0 46.1.1.2/24 up up
GigabitEthernet0/0/1 67.1.1.1/24 up up
GigabitEthernet0/0/2 unassigned down down
LoopBack0 6.6.6.6/24 up up(s)
NULL0 unassigned up up(s)
r7
Interface IP Address/Mask Physical Protocol
GigabitEthernet0/0/0 67.1.1.2/24 up up
GigabitEthernet0/0/1 unassigned down down
GigabitEthernet0/0/2 unassigned down down
LoopBack0 7.7.7.7/24 up up(s)
LoopBack1 203.1.1.1/24 up up(s)
LoopBack2 203.1.2.1/24 up up(s)
LoopBack3 203.1.3.1/24 up up(s)
NULL0 unassigned up up(s)
r8
Interface IP Address/Mask Physical Protocol
GigabitEthernet0/0/0 28.1.1.1/24 up up
GigabitEthernet0/0/1 18.1.1.2/24 up up
GigabitEthernet0/0/2 38.1.1.1/24 up up
LoopBack0 8.8.8.8/24 up up(s)
NULL0 unassigned up up(s)
2.MGRE部分
[r1]interface 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 bro
[r1-Tunnel0/0/0]ospf network-type broadcast
[r2]int Tunnel 0/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 entry multicast dynamic
[r2-Tunnel0/0/0]nhrp network-id 100
[r2-Tunnel0/0/0]ospf network-type broadcast
[r3]int Tunnel 0/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 entry multicast dynamic
[r3-Tunnel0/0/0]nhrp network-id 100
[r3-Tunnel0/0/0]ospf network-type broadcast
3.部署ospf以及RIP
[r4]ospf 100 router-id 94.4.4.4
[r4-ospf-100]area 1
[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.2]network 46.1.1.1 0.0.0.0
[r4-ospf-100-area-0.0.0.1]network 4.04.4.4 0.0.0.0
[r4-ospf-100-area-0.0.0.1]q
[r4-ospf-100]rip 200
[r4-rip-200]version 2
[r4-rip-200]network 45.0.0.0
[r5]rip 200
[r5-rip-200]version 2
[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.01.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-ospf-100-area-0.0.0.2]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 67.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 7.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 28.1.1.1 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
4.chap认证
[r3]aaa
[r3-aaa]local-user zhangsan password cipher 123456
Info: Add a new user.
[r3-aaa]local-user zhngsan service-type ppp
Info: Add a new user.
[r3-aaa]int s4/0/0
[r3-Serial4/0/0]link-protocol ppp
[r3-Serial4/0/0]ppp authentication-mode chap
[r3-Serial4/0/0]ppp chap user lisi
[r3-Serial4/0/0]ppp chap password cipher 123456
[r4]int Serial 4/0/1
[r4-Serial4/0/1]link-protocol ppp
[r4-Serial4/0/1]ppp chap user zhangsan
[r4-Serial4/0/1]ppp chap password cipher 123456
[r4-Serial4/0/1]aaa
[r4-aaa]local-user lisi password cipher 123456
Info: Add a new user.
[r4-aaa]local-user lisi service-type ppp
[r4-aaa]int g0/0/1
[r4-GigabitEthernet0/0/1]q
[r4]int s4/0/1
[r4-Serial4/0/1]link-protocol ppp
[r4-Serial4/0/1]ppp authentication-mode chap
5.其他区域优先通过R3访问R1 三个环回接口
[r2]ospf 100
[r2-ospf-100]area 0
[r2-ospf-100-area-0.0.0.0]abr-summary 201.0.0.0 255.255.252.0 cost 8
[r3]ospf 100
[r3-ospf-100]area 0
[r3-ospf-100-area-0.0.0.0]abr-s
[r3-ospf-100-area-0.0.0.0]abr-summary 201.1.0.0 255.255.252.0 cost 6
6.area 1 区域不得出现4.5类LSA
[r3]ospf 100
[r3-ospf-100]area 1
[r3-ospf-100-area-0.0.0.1]nssa
[r2]ospf 100
[r2-ospf-100]area 1
[r2-ospf-100-area-0.0.0.1]nssa
[r4]ospf 100
[r4-ospf-100]area 1
[r4-ospf-100-area-0.0.0.1] nssa
7.RIP和ospf各个之间打通
[r4-ospf-100-area-0.0.0.2]undo network 46.1.1.1 0.0.0.0
[r4-ospf-100-area-0.0.0.2]q
[r4-ospf-100]q
[r4]os
[r4]ospf 200
[r4-ospf-200]area 2
[r4-ospf-200-area-0.0.0.2]net
[r4-ospf-200-area-0.0.0.2]network 46.1.1.1 0.0.0.0
[r4-ospf-100]import-route ospf 200
[r4-ospf-100]q
[r4]os
[r4]ospf 200
[r4-ospf-200]imp
[r4-ospf-200]import-route os
[r4-ospf-200]import-route ospf 100
[r6]ospf 100
[r6-ospf-100]imp
[r6-ospf-100]import-route rip 100
[r6-ospf-100]rip 100
[r6-rip-100]im
[r6-rip-100]import-route ospf 100
[r6-rip-100]q