一、实验要求
- 全网可达
- 使用ospf
- R2-R5所在MA网络中只有R2为DR,其他均为DRother
- R1-R2做接口认证
- 区域2做认证
- R5的环回不能被宣告
二、实验拓扑图
三、实验操作
·配置环回地址和接口ip地址
R1举例
[R1]int
[R1]interface loo
[R1]interface LoopBack 0
[R1-LoopBack0]ip add
[R1-LoopBack0]ip address 1.1.1.1 24
[R1-LoopBack0]q
[R1]
[R1]int
[R1]interface s4/0/0
[R1-Serial4/0/0]ip add
[R1-Serial4/0/0]ip address 12.1.1.1 24
使用ping命令查看直连设备是否能接通
…
- 全网可达
R1宣告(R1-R5操作)
[R1]ospf 1 rou
[R1]ospf 1 router-id 1.1.1.1
[R1-ospf-1]area 1
[R1-ospf-1-area-0.0.0.1]net
[R1-ospf-1-area-0.0.0.1]network 1.1.1.1 0.0.0.0
[R1-ospf-1-area-0.0.0.1]net
[R1-ospf-1-area-0.0.0.1]network 12.1.1.0 0.0.0.255
-
使用ospf
-
R2-R5所在MA网络中只有R2为DR,其他均为DRother
·修改优先级
R4R5做同样操作
[R3]interface g0/0/0
[R3-GigabitEthernet0/0/0]ospf dr
[R3-GigabitEthernet0/0/0]ospf dr-priority 0
R2已变为DR
- R1-R2做接口认证
R1
R2
- 区域2做认证**(区域认证)**
R3
R4
R5
- R5的环回不能被宣告
不能被宣告需要写缺省
[R5-ospf-1]default-route-advertise always awayls – 强制下放缺省,当路由器里面没有缺省时可使用
加快收敛速度
[R1]int
[R1]interface s4/0/0
[R1-Serial4/0/0]ospf timer ?
dead Interval after which a neighbor is declared dead
hello Time between HELLO packets
ldp-sync Specify LDP-OSPF synchronization timer interval
poll Interval for sending Poll Hello packet in the NBMA network
retransmit Retransmit interval
修改参考带宽
[R5-ospf-1]ban
[R5-ospf-1]bandwidth-reference ?
INTEGER<1-2147483648> The reference bandwidth (Mbits/s)
[R5-ospf-1]bandwidth-reference 2000
Info: Reference bandwidth is changed. Please ensure that the reference bandwidth
that is configured for all the routers are the same.