基本構文
Router# show ip ospf interface
または、特定のインターフェイスを指定する場合:
Router# show ip ospf interface GigabitEthernet0/0
出力例
Router# show ip ospf interface GigabitEthernet0/0
GigabitEthernet0/0 is up, line protocol is up
Internet Address 192.168.1.1/24, Area 0
Process ID 1, Router ID 1.1.1.1, Network Type BROADCAST, Cost: 1
Transmit Delay is 1 sec, State DR, Priority 1
Designated Router (ID) 1.1.1.1, Interface address 192.168.1.1
Backup Designated router (ID) 2.2.2.2, Interface address 192.168.1.2
Timer intervals configured, Hello 10, Dead 40, Wait 40, Retransmit 5
Hello due in 00:00:08
Neighbor Count is 1, Adjacent neighbor count is 1
Adjacent with neighbor 2.2.2.2 (Backup Designated Router)
各項目の説明
| 項目 | 意味 |
|---|---|
| GigabitEthernet0/0 is up, line protocol is up | インターフェイスの物理・論理状態 |
| Internet Address 192.168.1.1/24, Area 0 | IPアドレスと所属エリア |
| Process ID 1, Router ID 1.1.1.1 | OSPFプロセス番号とルータID |
| Network Type BROADCAST | ネットワークタイプ(Broadcast, Point-to-Point, NBMAなど) |
| Cost: 1 | OSPFコスト(経路選択の重み) |
| State DR | このルータがDR(指定ルータ)であることを示す |
| Priority 1 | DR/BDR選出時の優先度(0なら選出対象外) |
| Designated Router (ID) / Backup Designated Router (ID) | DRとBDRの情報 |
| Timer intervals configured | Hello、Dead、Wait、RetransmitなどのOSPFタイマー設定 |
| Neighbor Count / Adjacent neighbor count | 隣接関係にあるルータの数 |
| Adjacent with neighbor 2.2.2.2 | ネイバーのルータIDと状態 |