ON THIS PAGE
show ospf interface detail (HMAC-SHA1 Authentication Algorithm Enabled)
show ospf interface detail (Delete-if-not-inuse Option Enabled)
show ospf interface detail (HMAC-SHA1 Authentication Algorithm Enabled for Virtual Link)
show ospf interface detail (HMAC-SHA1 Authentication Algorithm Enabled for Sham Link)
show (ospf | ospf3) interface
Syntax
show (ospf | ospf3) interface <brief | detail | extensive> <area area-id> <interface-name> <instance instance-name> <logical-system (all | logical-system-name)> <realm (ip4-multicast | ipv4-unicast | ipv6-multicast)>
Syntax (EX Series Switches and QFX Series)
show (ospf | ospf3) interface <brief | detail | extensive> <area area-id> <interface-name> <instance instance-name>
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 |
Required Privilege Level
view
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.
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. |
|
Address |
IP address of the neighbor. |
|
Mask |
Netmask of the neighbor. |
|
Prefix-length |
(OSPFv3) IPv6 prefix length, in bits. |
|
OSPF3-Intf-Index |
(OSPFv3) OSPF version 3 interface index. |
|
MTU |
Interface maximum transmission unit (MTU). |
|
Cost |
Interface cost (metric). |
|
DR addr |
Address of the designated router. |
|
BDR addr |
Address of the backup designated router. |
|
Adj count |
Number of adjacent neighbors. |
|
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. |
|
Flood Reduction |
Indicates that this interface is configured with flooding reduction. All
self-originated LSAs from this interface are initially sent with the
|
|
Priority |
Router priority used in designated router (DR) election on this interface. |
|
Flood list |
List of link-state advertisements (LSAs) that might be about to flood this interface. |
|
Ack list |
Acknowledgment list. List of pending acknowledgments on this interface. |
|
Descriptor list |
List of packet descriptors. |
|
Hello |
Configured value for the hello timer. |
|
Dead |
Configured value for the dead timer. |
|
Auth type |
(OSPFv2) Authentication mechanism for sending and receiving OSPF protocol packets:
|
|
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. |
|
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. |
|
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
|
|
IPSec SA name |
(OSPFv2) Name of the IPSec security association name. |
|
Active key ID |
(OSPFv2 and MD5) Number from 0 to 255 that uniquely identifies an MD5 key. |
|
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. |
|
ReXmit |
Configured value for the Retransmit timer. |
|
Stub, Not Stub, or Stub NSSA |
Type of area. |
|
Post convergence Protection |
Post convergence protection can have the following types when enabled
|
|
Sample Output
- show ospf interface brief
- show ospf interface detail
- show ospf interface detail
- show ospf3 interface detail
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 ospf interface detail
user@hostshow ospf interface <> detail Interface State Area DR ID BDR ID Nbrs ge-0/0/5.0 PtToPt 0.0.0.0 0.0.0.0 0.0.0.0 1 Type: P2P, Address: 14.14.14.14, Mask: 255.255.255.0, MTU: 1500, Cost: 1 Adj count: 1 Hello: 10, Dead: 40, ReXmit: 5, Not Stub Auth type: MD5, Active key ID: 1 , Active Key ID: 0 Protection type: None Topology default (ID 0) -> Cost: 1
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 extensive (SRLG Protection Enabled)
command-name
user@host> show ospf interface extensive Interface State Area DR ID BDR ID Nbrs ge-0/0/0.0 DR 0.0.0.0 10.205.172.20 10.205.171.195 1 Type: LAN, Address: 81.1.2.1, Mask: 255.255.255.0, MTU: 1500, Cost: 1 DR addr: 81.1.2.1, BDR addr: 81.1.2.2, Priority: 128 Adj count: 1 Hello: 10, Dead: 40, ReXmit: 5, Not Stub Auth type: None Protection type: Post Convergence Post convergence protection: Enabled, Fate sharing: No, SRLG: Yes, Node cost: 65535 Topology default (ID 0) -> Cost: 1 • Checking backup route in rib: root@R0# run show route 6.6.6.6 inet.0: 61 destinations, 61 routes (61 active, 0 holddown, 0 hidden) + = Active Route, - = Last Active, * = Both 6.6.6.6/32 *[OSPF/10] 00:08:52, metric 20 > to 41.41.41.2 via ge-0/0/1.0 > to 31.31.31.2 via ge-0/0/2.0, Push 800030 inet.3: 6 destinations, 10 routes (6 active, 0 holddown, 0 hidden) + = Active Route, - = Last Active, * = Both 6.6.6.6/32 *[LDP/9] 00:07:33, metric 1 > to 41.41.41.2 via ge-0/0/1.0, Push 299808 [L-OSPF/10/5] 00:07:33, metric 20 > to 41.41.41.2 via ge-0/0/1.0, Push 800060 > to 31.31.31.2 via ge-0/0/2.0, Push 800030, Push 800060
command-name
user@host> show ospf interface extensive (Fate-Sharing Protection Enabled) Interface State Area DR ID BDR ID Nbrs ge-0/0/0.0 DR 0.0.0.0 10.205.172.20 10.205.171.195 1 Type: LAN, Address: 81.1.2.1, Mask: 255.255.255.0, MTU: 1500, Cost: 1 DR addr: 81.1.2.1, BDR addr: 81.1.2.2, Priority: 128 Adj count: 1 Hello: 10, Dead: 40, ReXmit: 5, Not Stub Auth type: None Protection type: Post Convergence Post convergence protection: Enabled, Fate sharing: Yes, SRLG: No, Node cost: 65535 Topology default (ID 0) -> Cost: 1 • Checking backup route in rib: root@R0# run show route 6.6.6.6 inet.0: 61 destinations, 61 routes (61 active, 0 holddown, 0 hidden) + = Active Route, - = Last Active, * = Both 6.6.6.6/32 *[OSPF/10] 00:08:52, metric 20 > to 41.41.41.2 via ge-0/0/1.0 > to 31.31.31.2 via ge-0/0/2.0, Push 800030 inet.3: 6 destinations, 10 routes (6 active, 0 holddown, 0 hidden) + = Active Route, - = Last Active, * = Both 6.6.6.6/32 *[LDP/9] 00:07:33, metric 1 > to 41.41.41.2 via ge-0/0/1.0, Push 299808 [L-OSPF/10/5] 00:07:33, metric 20 > to 41.41.41.2 via ge-0/0/1.0, Push 800060 > to 31.31.31.2 via ge-0/0/2.0, Push 800030, Push 800060
show ospf interface detail (HMAC-SHA1 Authentication Algorithm Enabled)
user@host> show ospf interface detail Interface State Area DR ID BDR ID Nbrs ge-0/0/5.0 PtToPt 0.0.0.0 0.0.0.0 0.0.0.0 1 Type: P2P, Address: 14.14.14.14, Mask: 255.255.255.0, MTU: 1500, Cost: 1 Adj count: 1 Hello: 10, Dead: 40, ReXmit: 5, Not Stub Auth type: Cryptographic, Active key ID: 0, Auth algo: HMAC-SHA1 Protection type: None Topology default (ID 0) -> Cost: 1
show ospf interface detail (Delete-if-not-inuse Option Enabled)
user@host> show ospf interface detail Interface State Area DR ID BDR ID Nbrs ge-0/0/5.0 PtToPt 0.0.0.0 0.0.0.0 0.0.0.0 1 Type: P2P, Address: 14.14.14.14, Mask: 255.255.255.0, MTU: 1500, Cost: 1 Adj count: 1 Hello: 10, Dead: 40, ReXmit: 5, Not Stub Auth type: MD5, Active key ID: 0, Active key ID:1 Delete-if-not-inuse:Yes Protection type: None Topology default (ID 0) -> Cost: 1
show ospf interface detail (HMAC-SHA2 Keychain Enabled
HMAC-SHA2-224 Keychain
user@host> show ospf interface detail Interface State Area DR ID BDR ID Nbrs ge-0/0/5.0 PtToPt 0.0.0.0 0.0.0.0 0.0.0.0 1 Type: P2P, Address: 14.14.14.14, Mask: 255.255.255.0, MTU: 1500, Cost: 1 Adj count: 1 Hello: 10, Dead: 40, ReXmit: 5, Not Stub Auth type: Cryptographic, Active key ID: 0, Auth algo: HMAC-SHA2-224 Protection type: None Topology default (ID 0) -> Cost: 1
HMAC-SHA2-256 Keychain
user@host> show ospf interface detail Interface State Area DR ID BDR ID Nbrs ge-0/0/5.0 PtToPt 0.0.0.0 0.0.0.0 0.0.0.0 1 Type: P2P, Address: 14.14.14.14, Mask: 255.255.255.0, MTU: 1500, Cost: 1 Adj count: 1 Hello: 10, Dead: 40, ReXmit: 5, Not Stub Auth type: Cryptographic, Active key ID: 0, Auth algo: HMAC-SHA2-256 Protection type: None Topology default (ID 0) -> Cost: 1
HMAC-SHA2-384 Keychain
user@host> show ospf interface detail Interface State Area DR ID BDR ID Nbrs ge-0/0/5.0 PtToPt 0.0.0.0 0.0.0.0 0.0.0.0 1 Type: P2P, Address: 14.14.14.14, Mask: 255.255.255.0, MTU: 1500, Cost: 1 Adj count: 1 Hello: 10, Dead: 40, ReXmit: 5, Not Stub Auth type: Cryptographic, Active key ID: 0, Auth algo: HMAC-SHA2-384 Protection type: None Topology default (ID 0) -> Cost: 1
HMAC-SHA2-512 keychain
user@host> show ospf interface detail Interface State Area DR ID BDR ID Nbrs ge-0/0/5.0 PtToPt 0.0.0.0 0.0.0.0 0.0.0.0 1 Type: P2P, Address: 14.14.14.14, Mask: 255.255.255.0, MTU: 1500, Cost: 1 Adj count: 1 Hello: 10, Dead: 40, ReXmit: 5, Not Stub Auth type: Cryptographic, Active key ID: 0, Auth algo: HMAC-SHA2-512 Protection type: None Topology default (ID 0) -> Cost: 1
show ospf interface detail (HMAC-SHA1 Authentication Algorithm Enabled for Virtual Link)
user@host> show ospf interface detail vl-2.2.2.2 PtToPt 0.0.0.0 0.0.0.0 0.0.0.0 1 Type: Virtual, Address: 15.15.15.11, Mask: 0.0.0.0, MTU: 0, Cost: 1 Transit Area: 0.0.0.1, Destination: 15.15.15.12 Adj count: 1 Hello: 10, Dead: 40, ReXmit: 5, Not Stub Auth Keychain name: red Auth type: Cryptographic, Active key ID: 3 Auth algo: hmac-sha1 Protection type: None, No eligible backup, No eligible remote backup Topology default (ID 0) -> Cost: 1 Protection type: None Topology default (ID 0) -> Cost: 1
show ospf interface detail (HMAC-SHA1 Authentication Algorithm Enabled for Sham Link)
user@host> show ospf interface detail shamlink.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: 0, Cost: 10 Local: 198.51.100.2, Remote: 198.51.100.4 Adj count: 1 Hello: 10, Dead: 40, ReXmit: 5, Not Stub Auth Keychain name: red Auth type: Cryptographic, Active key ID: 3 Auth algo: hmac-sha1 Protection type: None, No eligible backup, No eligible remote backup Topology default (ID 0) -> Cost: 10
Release Information
Command introduced before Junos OS Release 7.4.
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.