コンフィグレーションガイド Vol.3


17.5.3 隣接ルータ情報の確認

隣接ルータのIPアドレス(Address),隣接状態(State),ルータID(Router ID),Priorityは,show ip ospf neighborコマンドで確認します。

OSPFインタフェースでは,指定ルータ(Designated Router)とそのほかのルータの間で隣接関係を確立します。この進行状況は,隣接状態によって確認できます。

隣接関係が確立した場合,隣接状態はFullになります。Fullでない状態では,隣接関係を確立している途中であり,そのインタフェースではOSPF経路を学習しません。

詳細は,show ip ospf interfaceまたはshow ip ospf neighbor detailコマンドで確認します。インタフェース状態(State)やNetwork Type,隣接ルータとの接続性を確認できます。

図17‒9 show ip ospf neighborコマンドの実行結果
>show ip ospf neighbor
Date 20XX/03/14 12:00:00 UTC
Domain: 1
Area: 0
Address         State               RouterID      DeadTime Interface
172.16.10.11    Full/BackupDR        172.16.1.1         10  172.16.10.10
172.16.10.12    Full/DR Other        172.16.1.2         20  172.16.10.10
172.26.110.111  Exch Start/BackupDR  172.26.123.111      5  172.26.120.130
図17‒10 show ip ospf interfaceコマンド(IPアドレス指定)の実行結果
>show ip ospf interface 192.168.50.1
Date 20XX/05/30 12:00:00 UTC 
Domain: 1
Index: 2, Name: Eth1/1, Address: 192.168.50.1, State: BackupDR
Auth Type: Simple
MTU: 1436, DDinPacket: 70, LSRinPacket: 117, ACKinPacket: 70
Router ID: 192.168.50.1, Network Type: Broadcast
Area: 0, DR: 172.17.1.1, Backup DR: 172.16.1.1
Priority: 0, Cost: 1
Transmit Delay: 1s
Intervals:
  Hello: 10s, Dead: 40s, Retransmit: 5s
 
Neighbor List (1):
Address         State      RouterID     Priority DR             Backup DR
192.168.50.2    Full       192.168.50.2    0     none           none
>
図17‒11 show ip ospf neighborコマンド(detailパラメータ指定)の実行結果
>show ip ospf neighbor detail
Date 20XX/05/30 12:00:00 UTC
Domain: 1
Area: 0
Interface Address: 172.16.10.10, Interface State: BackupDR
    Interface Name: Eth1/2
    Neighbor Router ID: 172.16.1.1, Neighbor State: Full/DR
    Neighbor Address: 172.16.10.11, Priority: 1, Poll Interval: 0s
    DeadTime: 6s, Up: 1d 12h, Adjacent: 1d 12h
    DR: 172.16.10.11, Backup DR: 172.16.10.10
    DS: 0, LSR: 0, Retrans: 0, <Master>
    Track Name: -, Track ID: -, Track State: -
 
    Neighbor Router ID: 172.16.1.2, Neighbor State: Full/DR Other
    Neighbor Address: 172.16.10.12, Priority: 1, Poll Interval: 0s
    DeadTime: 36s, Up: 10h 11m, Adjacent: 10h 11m
    DR: 172.16.10.11, Backup DR: 172.16.10.10
    DS: 0, LSR: 0, Retrans: 0, <>
    Track Name: -, Track ID: -, Track State: -
>