CCIE Routing & Switching ラボ模擬試験Vol.1 サンプル 2.7 ネイバーの障害検出 解説

2.7. ネイバーの障害検出(2点)

【設定】

SW1、SW2、SW3共通

--------------------------------------------------
interface vlan789
 ip ospf hello-interval 5
--------------------------------------------------

【確認のポイント】

  • show ip ospf interface vlan789
    VL789でHelloインターバル5sec、Deadインターバル20secになっていることを確認します。

【採点基準】

SW2

--------------------------------------------------
SW2#show ip ospf interface vlan789
Vlan789 is up, line protocol is up
  Internet Address 172.16.123.8/24, Area 789
  Process ID 1, Router ID 172.31.8.8, Network Type BROADCAST, Cost: 10
  Transmit Delay is 1 sec, State BDR, Priority 1
  Designated Router (ID) 172.31.9.9, Interface address 172.16.123.9
  Backup Designated router (ID) 172.31.8.8, Interface address 172.16.123.8
  Timer intervals configured, Hello 5, Dead 20, Wait 20, Retransmit 5
    oob-resync timeout 40
    Hello due in 00:00:04
  Supports Link-local Signaling (LLS)
  Index 2/2, flood queue length 0
  Next 0x0(0)/0x0(0)
  Last flood scan length is 0, maximum is 1
  Last flood scan time is 0 msec, maximum is 4 msec
  Neighbor Count is 2, Adjacent neighbor count is 2
    Adjacent with neighbor 172.31.7.7
    Adjacent with neighbor 172.31.9.9  (Designated Router)
  Suppress hello for 0 neighbor(s)
--------------------------------------------------

【解説】

OSPFのHello/Deadインターバルはインタフェースごとに設定できます。Helloインターバルの変更は、インタフェースコンフィグレーションモードで次のコマンドを入力します。

Router(config-if)#ip ospf hello-interval <second>

ip ospf hello-intervalコマンドでHelloインターバルを変更すると、自動的にDeadインターバルは設定した値の4倍となります。つまり、Deadインターバルを20秒にして、20秒以内にネイバーのダウンを検出できるようにするためには、Helloインターバルを5秒にします。

また、Deadインターバルの変更は、インタフェースコンフィグレーションモードで次のコマンドを入力します。

Router(config-if)#ip ospf dead-interval {<second>| minimal hello-multiplier <3-20>}

minimalを指定するとDeadインターバルを1秒にします。その場合、Helloインターバルは続くhello-multiplierによって決定されます。hello-multiplierを3にすると、Helloインターバルは1/3秒=333ミリ秒になります。hello-multiplierを20にすると、Helloインターバルは1/20=50ミリ秒になります。