Supported Platforms
show (ospf | ospf3) interface
List of Syntax
SyntaxSyntax (EX Series Switches and QFX Series)
Syntax
Syntax (EX Series Switches and QFX Series)
Release Information
Command introduced before Junos OS Release 7.4.
Command introduced in Junos OS Release 9.0 for EX Series switches.
area option introduced in Junos OS Release 9.2.
area option introduced in Junos OS Release 9.2 for EX Series switches.
realm option introduced in Junos OS Release 9.2.
Command introduced in Junos OS Release 11.3 for the QFX Series.
Description
Display the status of OSPF interfaces.
Options
none | — | Display standard information about the status of all OSPF interfaces for all routing instances |
brief | detail | extensive | — | (Optional) Display the specified level of output. |
area area-id | — | (Optional) Display information about the interfaces that belong to the specified area. |
interface-name | — | (Optional) Display information for the specified interface. |
instance instance-name | — | (Optional) Display all OSPF interfaces under the named routing instance. |
logical-system (all | logical-system-name) | — | (Optional) Perform this operation on all logical systems or on a particular logical system. |
realm (ipv4-multicast | ipv4-unicast | ipv6-multicast) | — | (OSPFv3 only) (Optional) Display information about the interfaces for the specified OSPFv3 realm, or address family. Use the realm option to specify an address family for OSPFv3 other than IPv6 unicast, which is the default. |
Required Privilege Level
view
List of Sample Output
show ospf interface briefshow ospf interface detail
show ospf3 interface detail
show ospf interface detail(When Multiarea Adjacency Is Configured)
show ospf interface area area-id
show ospf interface extensive (When Flooding Reduction Is Enabled)
show ospf interface extensive (When LDP Synchronization Is Configured)
Output Fields
Table 1 lists the output fields for the show (ospf | ospf3) interface command. Output fields are listed in the approximate order in which they appear.
Table 1: show (ospf | ospf3) interface Output Fields
Field Name | Field Description | Level of Output |
---|---|---|
Interface | Name of the interface running OSPF version 2 or OSPF version 3. | All levels |
State | State of the interface: BDR, Down, DR, DRother, Loop, PtToPt, or Waiting. | All levels |
Area | Number of the area that the interface is in. | All levels |
DR ID | Address of the area's designated router. | All levels |
BDR ID | Backup designated router for a particular subnet. | All levels |
Nbrs | Number of neighbors on this interface. | All levels |
Type | Type of interface: LAN, NBMA, P2MP, P2P, or Virtual. | detail extensive |
Address | IP address of the neighbor. | detail extensive |
Mask | Netmask of the neighbor. | detail extensive |
Prefix-length | (OSPFv3) IPv6 prefix length, in bits. | detail extensive |
OSPF3-Intf-Index | (OSPFv3) OSPF version 3 interface index. | detail extensive |
MTU | Interface maximum transmission unit (MTU). | detail extensive |
Cost | Interface cost (metric). | detail extensive |
DR addr | Address of the designated router. | detail extensive |
BDR addr | Address of the backup designated router. | detail extensive |
Adj count | Number of adjacent neighbors. | detail extensive |
Secondary | Indicates that this interface is configured as a secondary interface for this area. This interface can belong to more than one area, but can be designated as a primary interface for only one area. | detail extensive |
Flood Reduction | Indicates that this interface is configured with flooding reduction. All self-originated LSAs from this interface are initially sent with the DoNotAge bit set. As a result, LSAs are refreshed only when a change occurs. | extensive |
Priority | Router priority used in designated router (DR) election on this interface. | detail extensive |
Flood list | List of link-state advertisements (LSAs) that might be about to flood this interface. | extensive |
Ack list | Acknowledgment list. List of pending acknowledgments on this interface. | extensive |
Descriptor list | List of packet descriptors. | extensive |
Hello | Configured value for the hello timer. | detail extensive |
Dead | Configured value for the dead timer. | detail extensive |
Auth type | (OSPFv2) Authentication mechanism for sending and receiving OSPF protocol packets:
| detail extensive |
Topology | (Multiarea adjacency) Name of topology: default or name. | |
LDP sync state | (OSPFv2 and LDP synchronization) Current state of LDP synchronization: in sync, in holddown, and not supported. | extensive |
reason | (OSPFv2 and LDP synchronization) Reason for the current state of LDP synchronization. The LDP session might be up or down, or adjacency might be up or down. | extensive |
config holdtime | (OSPFv2 and LDP synchronization) Configured value of the hold timer. If the state is not synchronized, and the hold time is not infinity, the remaining field displays the number of seconds that remain until the configured hold timer expires. | extensive |
IPSec SA name | (OSPFv2) Name of the IPSec security association name. | detail extensive |
Active key ID | (OSPFv2 and MD5) Number from 0 to 255 that uniquely identifies an MD5 key. | detail extensive |
Start time | (OSPFv2 and MD5) Time at which the routing device starts using an MD5 key to authenticate OSPF packets transmitted on the interface on which this key is configured. To authenticate received OSPF protocol packets, the key becomes effective immediately after the configuration is committed. If the start time option is not configured, the key is effective immediately for send and receive and is displayed as Start time 1970 Jan 01 00:00:00 PST. | detail extensive |
ReXmit | Configured value for the Retransmit timer. | detail extensive |
Stub, Not Stub, or Stub NSSA | Type of area. | detail extensive |
Sample Output
show ospf interface brief
user@host> show ospf interface brief
Intf State Area DR ID BDR ID Nbrs at-5/1/0.0 PtToPt 0.0.0.0 0.0.0.0 0.0.0.0 1 ge-2/3/0.0 DR 0.0.0.0 192.168.4.16 192.168.4.15 1 lo0.0 DR 0.0.0.0 192.168.4.16 0.0.0.0 0 so-0/0/0.0 Down 0.0.0.0 0.0.0.0 0.0.0.0 0 so-6/0/1.0 PtToPt 0.0.0.0 0.0.0.0 0.0.0.0 1 so-6/0/2.0 Down 0.0.0.0 0.0.0.0 0.0.0.0 0 so-6/0/3.0 PtToPt 0.0.0.0 0.0.0.0 0.0.0.0 1
show ospf interface detail
user@host> show ospf interface detail
Interface State Area DR ID BDR ID Nbrs fe-0/0/1.0 BDR 0.0.0.0 192.168.37.12 10.255.245.215 1 Type LAN, address 192.168.37.11, Mask 255.255.255.248, MTU 4460, Cost 40 DR addr 192.168.37.12, BDR addr 192.168.37.11, Adj count 1, Priority 128 Hello 10, Dead 40, ReXmit 5, Not Stub t1-0/2/1.0 PtToPt 0.0.0.0 0.0.0.0 0.0.0.0 0 Type P2P, Address 0.0.0.0, Mask 0.0.0.0, MTU 1500, Cost 2604 Adj count 0 Hello 10, Dead 40, ReXmit 5, Not Stub Auth type: MD5, Active key ID 3, Start time 2002 Nov 19 10:00:00 PST IPsec SA Name: sa
show ospf3 interface detail
user@host> show ospf3 interface so-0/0/3.0 detail
Interface State Area DR-ID BDR-ID Nbrs so-0/0/3.0 PtToPt 0.0.0.0 0.0.0.0 0.0.0.0 1 Address fe80::2a0:a5ff:fe28:1dfc, Prefix-length 64 OSPF3-Intf-index 1, Type P2P, MTU 4470, Cost 12, Adj-count 1 Hello 10, Dead 40, ReXmit 5, Not Stub
show ospf interface detail(When Multiarea Adjacency Is Configured)
user@host> show ospf interface detail
user@host> show ospf interface detail Interface State Area DR ID BDR ID Nbrs lo0.0 DR 0.0.0.0 10.255.245.2 0.0.0.0 0 Type: LAN, Address: 127.0.0.1, Mask: 255.255.255.255, MTU: 65535, Cost: 0 DR addr: 127.0.0.1, Adj count: 0, Priority: 128 Hello: 10, Dead: 40, ReXmit: 5, Not Stub Auth type: None Topology default (ID 0) -> Cost: 0 lo0.0 DR 0.0.0.0 10.255.245.2 0.0.0.0 0 Type: LAN, Address: 10.255.245.2, Mask: 255.255.255.255, MTU: 65535, Cost: 0 DR addr: 10.255.245.2, Adj count: 0, Priority: 128 Hello: 10, Dead: 40, ReXmit: 5, Not Stub Auth type: None Topology default (ID 0) -> Cost: 0 so-0/0/0.0 PtToPt 0.0.0.0 0.0.0.0 0.0.0.0 1 Type: P2P, Address: 0.0.0.0, Mask: 0.0.0.0, MTU: 4470, Cost: 1 Adj count: 1 Hello: 10, Dead: 40, ReXmit: 5, Not Stub Auth type: None Topology default (ID 0) -> Cost: 1 so-0/0/0.0 PtToPt 0.0.0.0 0.0.0.0 0.0.0.0 0 Type: P2P, Address: 192.168.37.46, Mask: 255.255.255.254, MTU: 4470, Cost: 1 Adj count: 0, , Passive Hello: 10, Dead: 40, ReXmit: 5, Not Stub Auth type: None Topology default (ID 0) -> Passive, Cost: 1 so-1/0/0.0 PtToPt 0.0.0.0 0.0.0.0 0.0.0.0 1 Type: P2P, Address: 0.0.0.0, Mask: 0.0.0.0, MTU: 4470, Cost: 1 Adj count: 1 Hello: 10, Dead: 40, ReXmit: 5, Not Stub Auth type: None Topology default (ID 0) -> Cost: 1 so-1/0/0.0 PtToPt 0.0.0.0 0.0.0.0 0.0.0.0 0 Type: P2P, Address: 192.168.37.54, Mask: 255.255.255.254, MTU: 4470, Cost: 1 Adj count: 0, , Passive Hello: 10, Dead: 40, ReXmit: 5, Not Stub Auth type: None Topology default (ID 0) -> Passive, Cost: 1 so-0/0/0.0 PtToPt 1.1.1.1 0.0.0.0 0.0.0.0 1 Type: P2P, Address: 0.0.0.0, Mask: 0.0.0.0, MTU: 4470, Cost: 1 Adj count: 1, Secondary Hello: 10, Dead: 40, ReXmit: 5, Not Stub Auth type: None Topology default (ID 0) -> Cost: 1 so-1/0/0.0 PtToPt 1.1.1.1 0.0.0.0 0.0.0.0 1 Type: P2P, Address: 0.0.0.0, Mask: 0.0.0.0, MTU: 4470, Cost: 1 Adj count: 1, Secondary Hello: 10, Dead: 40, ReXmit: 5, Not Stub Auth type: None Topology default (ID 0) -> Cost: 1 so-0/0/0.0 PtToPt 2.2.2.2 0.0.0.0 0.0.0.0 1 Type: P2P, Address: 0.0.0.0, Mask: 0.0.0.0, MTU: 4470, Cost: 1 Adj count: 1, Secondary Hello: 10, Dead: 40, ReXmit: 5, Not Stub Auth type: None Topology default (ID 0) -> Cost: 1 so-1/0/0.0 PtToPt 2.2.2.2 0.0.0.0 0.0.0.0 1 Type: P2P, Address: 0.0.0.0, Mask: 0.0.0.0, MTU: 4470, Cost: 1 Adj count: 1, Secondary Hello: 10, Dead: 40, ReXmit: 5, Not Stub Auth type: None Topology default (ID 0) -> Cost: 1
show ospf interface area area-id
user@host> show ospf interface area 1.1.1.1
Interface State Area DR ID BDR ID Nbrs so-0/0/0.0 PtToPt 1.1.1.1 0.0.0.0 0.0.0.0 1 so-1/0/0.0 PtToPt 1.1.1.1 0.0.0.0 0.0.0.0 1
show ospf interface extensive (When Flooding Reduction Is Enabled)
user@host> show ospf interface extensive
Interface State Area DR ID BDR ID Nbrs fe-0/0/0.0 PtToPt 0.0.0.0 0.0.0.0 0.0.0.0 0 Type: P2P, Address: 10.10.10.1, Mask: 255.255.255.0, MTU: 1500, Cost: 1 Adj count: 0 Secondary, Flood Reduction Hello: 10, Dead: 40, ReXmit: 5, Not Stub Auth type: None Topology default (ID 0) -> Cost: 1
show ospf interface extensive (When LDP Synchronization Is Configured)
user@host> show ospf interface extensive
Interface State Area DR ID BDR ID Nbrs so-1/0/3.0 Down 0.0.0.0 0.0.0.0 0.0.0.0 0 Type: P2P, Address: 0.0.0.0, Mask: 0.0.0.0, MTU: 4470, Cost: 65535 Adj count: 0 Hello: 10, Dead: 40, ReXmit: 5, Not Stub Auth type: None LDP sync state: in holddown, for: 00:00:08, reason: LDP down during config config holdtime: 10 seconds, remaining: 1