目录
一、修改参考带宽值
(1)出现问题:
一个路由器,有个G接口(1000M),有个F接口(100M),但算出来的cost值都是1(假如参考带宽为1000M的话,算出来的实际结果小于1,但是cost值任然按照1来计算),不公平!
————————————————————————————————————————————————————————
(2-1)方法① — 解决:
- 实际上是用这个1000M实际是替代10的8次方,全局生效。单位是M
1G==1 000 000 000
100M==1 000 000 00
ospf进程里修改:
r1(config-router)#auto-cost reference-bandwidth 1000(接口带宽)
-----此时cost值=1000M/接口带宽
R4(config)#do sh ip ospf int f1/0 ——查看
————————————————————————————————————————————————————————
(2-2)方法② — 解决:
修改接口带宽,单位kb,默认计算1M=1000KB
R4(config)#int f1/0
R4(config-if)#bandwidth ?
<1-10000000> Bandwidth in kilobits
inherit Specify that bandwidth is inherited
receive Specify receive-side bandwidth
R4(config-if)#bandwidth 1000
修改后:
———————————————————————————————————————————————————————
二、修改优先级:
r1(config-router)#nei 1.1.1.1 priority 10----------对于1.1.1.1来说,我的优先级是10
r1(config-if)#ip ospf priority 10-------我这个接口优先级是10
本文含有隐藏内容,请 开通VIP 后查看