show ip ospf interface
show ip ospf
interface
[
ip-address
]
[
brief
]
[
ethernet
unit/slot/port
]
[
lag
lag-id
]
[
loopback
number
]
[
tunnel
number
]
[
ve
vlan-id
]User EXEC mode
Use the brief keyword to limit the display to the following fields:
The
show ip ospf interface command displays the following information:
This example shows sample output from the
show ip ospf interface command when the
brief keyword is used.
device# # show ip ospf interface brief Number of Interfaces is 1 Interface Area IP Addr/Mask Cost State Nbrs(F/C) eth 1/1/2 0 16.1.1.2/24 1 down 0/0
The following example displays information about a specified OSPF-enabled virtual Ethernet (VE) interface.
device# show ip ospf interface ve 20
ve 20 admin up, oper up, ospf enabled, state up
IP Address 21.21.21.22, Area 0
Database Filter: Not Configured
State BDR, Pri 1, Cost 1, Options 2, Type broadcast Events 31
Timers(sec): Transmit 1, Retrans 5, Hello 10, Dead 40
DR: Router ID 3.3.3.3 Interface Address 21.21.21.21
BDR: Router ID 2.2.2.2 Interface Address 21.21.21.22
Packets Received Packets Sent
Hello 86374 86735
Database 2 4
LSA Req 1 0
LSA Upd 451 907
LSA Ack 906 451
No Packet Errors!
Neighbor Count = 1, Adjacent Neighbor Count= 1
Neighbor: 21.21.21.21 [id 3.3.3.3] (DR)
Authentication-Key: None
MD5 Authentication: Key None, Key-Id None, Auth-change-wait-time 300
The following example displays information about a specified OSPF-enabled Ethernet interface, including the cost, where the cost is calculated using the default interface speed and auto cost.
device# show ip ospf interface ethernet 3/1/1
e 3/1/1 admin up, oper up, ospf enabled, state up
IP Address 89.0.0.2, Area 0
Database Filter: Not Configured
State BDR, Pri 1, Cost 1, Options 2, Type broadcast Events 3
The following example displays information about a specified OSPF-enabled Ethernet interface, including the cost, which has been calculated using the configured interface bandwidth and the default auto-cost.
device# show ip ospf interface ethernet 1/1/3
e 1/1/3 admin up, oper up, ospf enabled, state up
IP Address 172.201.3.2, Area 0
Database Filter: Not Configured
State DR, Pri 1, Cost 34, Options 2, Type broadcast Events 5
Timers(sec): Transmit 1, Retrans 5, Hello 10, Dead 40
DR: Router ID 192.168.3.1 Interface Address 172.201.3.2
BDR: Router ID 192.168.1.1 Interface Address 172.201.3.1
Packets Received Packets Sent
Hello 73 79
Database 3 2
LSA Req 0 1
LSA Upd 4 5
LSA Ack 5 3
No Packet Errors!
Neighbor Count = 1, Adjacent Neighbor Count= 1
Neighbor: 172.201.3.1 [id 192.168.1.1] (BDR)
Authentication-Key: None
MD5 Authentication: Key None, Key-Id None, Auth-change-wait-time 300
The following example displays information about a specified OSPF-enabled VE interface including OSPF BFD sessions for neighbors.
device# show ip ospf interface ve 10
ve 10 admin up, oper up, ospf enabled, state up
IP Address 12.12.12.3, Area 0
BFD is enabled
Database Filter: Not Configured
State DR, Pri 1, Cost 1, Options ------E-, Type broadcast Events 55183
Timers(sec): Transmit 1, Retrans 5, Hello 10, Dead 40
DR: Router ID 0.0.0.2 Interface Address 12.12.12.3
BDR: Router ID 0.0.0.1 Interface Address 12.12.12.6
Packets Received Packets Sent
Hello 10029 10045
Database 3 3
LSA Req 1 1
LSA Upd 56 60
LSA Ack 59 55
Packet Errors: None
Neighbor Count = 1, Adjacent Neighbor Count= 1
Neighbor: 12.12.12.6 [id 0.0.0.1] (BDR)
Authentication-Key: None
MD5 Authentication: Key None, Key-Id None, Auth-change-wait-time 300
The following example displays information about a specified OSPF-enabled VE interface including information for port traffic statistics.
device> show ip ospf interface ve 42
ve 42 admin up, oper up, ospf enabled, state up
IP Address 42.1.1.1, Area 1.1.1.1
Database Filter: Not Configured
State BDR, Pri 1, Cost 1, Options 2, Type broadcast Events 2
Timers(sec): Transmit 1, Retrans 5, Hello 10, Dead 40
DR: Router ID 135.1.1.1 Interface Address 42.1.1.35
BDR: Router ID 102.1.1.1 Interface Address 42.1.1.1
Packets Received Packets Sent
Hello 11 11
Database 0 0
LSA Req 0 0
LSA Upd 0 0
LSA Ack 0 0
Packet Errors:
Area mismatch 22,
Neighbor Count = 1, Adjacent Neighbor Count= 1
Neighbor: 42.1.1.35 [id 135.1.1.1] (DR)
In-Use Authentication: None, Key: None, Key-Id: None