auto-cost reference-bandwidth
- 機種
- Router(K)
- モード
- Router(M)
- デフォルト
- 100
- IOS
- 試験レベル
- BSCI
- 構文
- auto-cost reference-bandwidth reference-bandwidth
- 使用例
Router#show ip ospf interface fa0/0 FastEthernet0/0 is up, line protocol is down Internet Address 192.168.200.17/24, Area 0 Process ID 10, Router ID 192.168.201.17, Network Type BROADCAST, Cost: 1 Transmit Delay is 1 sec, State DOWN, Priority 1 No designated router on this network No backup designated router on this network Timer intervals configured, Hello 10, Dead 40, Wait 40, Retransmit 5 oob-resync timeout 40 No Hellos (Passive interface) Router#conf t Enter configuration commands, one per line. End with CNTL/Z. Router(config)#router ospf 10 Router(config-router)#auto-cost reference-bandwidth 1000 % OSPF: Reference bandwidth is changed. Please ensure reference bandwidth is consistent across all routers. Router(config-router)# Router#show ip ospf interface fa0/0 FastEthernet0/0 is up, line protocol is down Internet Address 192.168.200.17/24, Area 0 Process ID 10, Router ID 192.168.201.17, Network Type BROADCAST, Cost: 10 Transmit Delay is 1 sec, State DOWN, Priority 1 No designated router on this network No backup designated router on this network Timer intervals configured, Hello 10, Dead 40, Wait 40, Retransmit 5 oob-resync timeout 40 No Hellos (Passive interface) Router#
- 解説
- OSPFの基準帯域幅の変更します。
reference-bandwidthの部分はMbps単位で指定します。
指定可能な範囲は1〜4,294,967までで、デフォルト値は100になります。
OSPFのメトリックは100Mbps÷インターフェースの帯域幅で計算します。
auto-cost reference-bandwidthコマンドを使用すると、メトリック計算式の分子を変更する事が出来ます。
使用例では、auto-cost reference-bandwidth 1000としています。
よって、メトリックの計算式が1000Mbps(1Gbps)÷インターフェースの帯域幅になり、FastEthernetInterfaceのCost値が10に変化しました。
- Tips
- 但し、"auto-cost reference-bandwidth"コマンドでメトリック計算式を変更しても、ip ospf costコマンドでコスト値を指定している場合は、ip ospf costコマンド指定したコスト値が優先されます。
- 参考リンク
- Google検索
- タグ
- OSPF
Counter: 7806,
today: 1,
yesterday: 0
最終更新: 2009-08-04 (火) 16:02:30 (JST) (5385d) by staff_mita