实验要求
实验步骤
一、将172.16.0.0/16 合理划分,配置IP
172.16.0.0/16
172.16.0.0/19 区域0
172.16.0.0 24 P2MP链路
172.16.0.0 /30 172.16.0.4 /30 172.16.0.8 /30 172.16.0.12/30 。。。。。。
172.16.1.0 24 MA 链路/29
172.16.1.0 /29 172.16.1.8 /29 172.16.1.16/29 172.16.1.24 /29
172.16.2.0 24 172.16.3.0 24 172.16.4.0 24 。。。。。。
172.16.32.0/19 区域1
172.16.64.0/19 区域2
172.16.96.0/19 区域3
172.16.128.0/19 区域4
172.16.160.0/19 RIP区域
R1
Interface IP Address/Mask Physical Protocol
GigabitEthernet0/0/0 172.16.33.1/29 up up
GigabitEthernet0/0/1 unassigned down down
GigabitEthernet0/0/2 unassigned down down
LoopBack0 172.16.34.1/24 up up(s)
NULL0 unassigned up up(s)
<r1>
R2
Interface IP Address/Mask Physical Protocol
GigabitEthernet0/0/0 172.16.33.2/29 up up
GigabitEthernet0/0/1 unassigned down down
GigabitEthernet0/0/2 unassigned down down
LoopBack0 172.16.36.1/24 up up(s)
NULL0 unassigned up up(s)
<r2>
R3
Interface IP Address/Mask Physical Protocol
GigabitEthernet0/0/0 172.16.33.3/29 up up
GigabitEthernet0/0/1 unassigned down down
GigabitEthernet0/0/2 unassigned down down
LoopBack0 172.16.35.1/24 up up(s)
NULL0 unassigned up up(s)
Serial4/0/0 34.0.0.1/24 up up
Serial4/0/1 unassigned down down
Tunnel0/0/0 172.16.1.4/29 up up
<r3>
r4
Interface IP Address/Mask Physical Protocol
GigabitEthernet0/0/0 47.0.0.2/24 up up
GigabitEthernet0/0/1 unassigned down down
GigabitEthernet0/0/2 unassigned down down
NULL0 unassigned up up(s)
Serial3/0/0 46.0.0.2/24 up up
Serial3/0/1 unassigned down down
Serial4/0/0 34.0.0.2/24 up up
Serial4/0/1 45.0.0.2/24 up up
<r4>
r5
Interface IP Address/Mask Physical Protocol
GigabitEthernet0/0/0 unassigned down down
GigabitEthernet0/0/1 unassigned down down
GigabitEthernet0/0/2 unassigned down down
LoopBack0 172.16.2.1/24 up up(s)
NULL0 unassigned up up(s)
Serial4/0/0 45.0.0.1/24 up up
Serial4/0/1 unassigned down down
Tunnel0/0/0 172.16.1.1/29 up up
<r5>
r6
Interface IP Address/Mask Physical Protocol
GigabitEthernet0/0/0 172.16.64.1/30 up up
GigabitEthernet0/0/1 unassigned down down
GigabitEthernet0/0/2 unassigned down down
LoopBack0 172.16.3.1/24 up up(s)
NULL0 unassigned up up(s)
Serial4/0/0 46.0.0.1/24 up up
Serial4/0/1 unassigned down down
Tunnel0/0/0 172.16.1.2/29 up up
<r6>
r7
Interface IP Address/Mask Physical Protocol
GigabitEthernet0/0/0 172.16.96.1/30 up up
GigabitEthernet0/0/1 unassigned down down
GigabitEthernet0/0/2 47.0.0.1/24 up up
LoopBack0 172.16.4.1/24 up up(s)
NULL0 unassigned up up(s)
Tunnel0/0/0 172.16.1.3/29 up up
<r7>
r8
Interface IP Address/Mask Physical Protocol
GigabitEthernet0/0/0 172.16.96.2/30 up up
GigabitEthernet0/0/1 172.16.96.5/30 up up
GigabitEthernet0/0/2 unassigned down down
LoopBack0 172.16.98.1/24 up up(s)
NULL0 unassigned up up(s)
<r8>
r9
Interface IP Address/Mask Physical Protocol
GigabitEthernet0/0/0 172.16.96.6/30 up up
GigabitEthernet0/0/1 172.16.128.1/30 up up
GigabitEthernet0/0/2 unassigned down down
LoopBack0 172.16.130.1/24 up up(s)
NULL0 unassigned up up(s)
<r9>
r10
Interface IP Address/Mask Physical Protocol
GigabitEthernet0/0/0 172.16.128.2/30 up up
GigabitEthernet0/0/1 unassigned down down
GigabitEthernet0/0/2 unassigned down down
LoopBack0 172.16.131.1/24 up up(s)
NULL0 unassigned up up(s)
<r10>
r11Interface IP Address/Mask Physical Protocol
GigabitEthernet0/0/0 172.16.64.2/30 up up
GigabitEthernet0/0/1 172.16.64.5/30 up up
GigabitEthernet0/0/2 unassigned down down
LoopBack0 172.16.66.1/24 up up(s)
NULL0 unassigned up up(s)
<r11>
r12
Interface IP Address/Mask Physical Protocol
GigabitEthernet0/0/0 172.16.64.6/30 up up
GigabitEthernet0/0/1 unassigned down down
GigabitEthernet0/0/2 unassigned down down
LoopBack0 172.16.162.1/24 up up(s)
LoopBack1 172.16.163.1/24 up up(s)
NULL0 unassigned up up(s)
<r12>
Interface IP Address/Mask Physical Protocol
GigabitEthernet0/0/0 172.16.64.6/30 up up
GigabitEthernet0/0/1 unassigned down down
GigabitEthernet0/0/2 unassigned down down
LoopBack0 172.16.162.1/24 up up(s)
LoopBack1 172.16.163.1/24 up up(s)
NULL0 unassigned up up(s)
<r12>
二、R3-R 5/6/7为mgre环境,R3为中心
三、在区域0 1 2 3 4在使用OSPF进行宣告,R12右边使用RIP进行宣告,R12上对RIP进行重发布,R9上对OSPF进行重发布,接着在R9上添加一条缺省路由实现区域4访问 R4
[r9-ospf-2]default-route-advertise
[r10]ping -a 172.16.131.1 172.16.1.4
PING 172.16.1.4: 56 data bytes, press CTRL_C to break
Reply from 172.16.1.4: bytes=56 Sequence=1 ttl=252 time=70 ms
Reply from 172.16.1.4: bytes=56 Sequence=2 ttl=252 time=50 ms
Reply from 172.16.1.4: bytes=56 Sequence=3 ttl=252 time=40 ms
Reply from 172.16.1.4: bytes=56 Sequence=4 ttl=252 time=40 ms
Reply from 172.16.1.4: bytes=56 Sequence=5 ttl=252 time=50 ms
四、减少LSA的更新量
[r3-ospf-1-area-0.0.0.1]abr-summary 172.16.32.0 255.255.224.0
[r6-ospf-1-area-0.0.0.2]nssa no-summary
[r9-ospf-1-area-0.0.0.3]nssa
[r12-ospf-1-area-0.0.0.2]nssa
加快收敛,更改两两之间网络协议
[r6-GigabitEthernet0/0/0]ospf network-type p2p
[r11-GigabitEthernet0/0/0]ospf network-type p2p
保障更新安全,所有设备均得设置
[r1-ospf-1-area-0.0.0.1]authentication-mode md5 111 cipher 12345
五、全网可达
<r1>ping 172.16.131.1
PING 172.16.131.1: 56 data bytes, press CTRL_C to break
Reply from 172.16.131.1: bytes=56 Sequence=1 ttl=251 time=90 ms
Reply from 172.16.131.1: bytes=56 Sequence=2 ttl=251 time=60 ms
Reply from 172.16.131.1: bytes=56 Sequence=3 ttl=251 time=70 ms
Reply from 172.16.131.1: bytes=56 Sequence=4 ttl=251 time=90 ms
Reply from 172.16.131.1: bytes=56 Sequence=5 ttl=251 time=80 ms
<r1>ping 172.16.162.1
PING 172.16.162.1: 56 data bytes, press CTRL_C to break
Reply from 172.16.162.1: bytes=56 Sequence=1 ttl=252 time=60 ms
Reply from 172.16.162.1: bytes=56 Sequence=2 ttl=252 time=50 ms
Reply from 172.16.162.1: bytes=56 Sequence=3 ttl=252 time=80 ms
Reply from 172.16.162.1: bytes=56 Sequence=4 ttl=252 time=60 ms
Reply from 172.16.162.1: bytes=56 Sequence=5 ttl=252 time=70 ms