OSPF Operational Commands
OSPF Show Commands
OSPF Summary
Displays the OSPF protocol summary information.
Syntax:
| Option | Description |
|---|---|
|
Without any option, the command displays the information for all instances and address families. |
|
OSPF summary information for the given instance. |
|
OSPF summary information for the specified instance and address family. Supported AFI values are 'ipv4' and 'ipv6'. |
|
OSPF summary information for the specified address family and instance. Supported AFI values are 'ipv4' and 'ipv6'. |
Example: OSPF summary for the default instance
supervisor@rtbrick: op> show ospf summary
Global Information:
Neighbor State Information:
Full : 2
Loading : 0
Exchange : 0
ExStart : 0
TwoWay : 0
Init : 0
Attempt : 0
Down : 0
Instance: default, Address family: ipv4
General information:
Router ID: 198.51.100.11, Hostname: CBNG1, Area count: 2, Flood interval: 1000ms
Opaque capability: True, Segment routing capability: True
SR parameters:
SRGB base: 10000, SRGB range: 1000, SRGB label values: 10000-10999
Flags: OPAQUE|SR|-|-|-|ASBR|ABR, Cost: 4294967295
SPF initial delay: 50ms, SPF short delay: 200ms, SPF long delay: 5000ms
Area: 0.0.0.0
Interface count: 1
Interface: lo-0/0/0/0
Address: 198.51.100.11, State: P2P, Type: p2p, Priority: 1
Designated router: 0.0.0.0, Backup designated router: 0.0.0.0
Hello interval: 10s, Dead interval: 40s
Cost: 10000, MTU:
Area: 0.0.0.1
Interface count: 2
Interface: ifl-0/0/2/0
Address: 192.0.2.1, State: P2P, Type: p2p, Priority: 1
Designated router: 0.0.0.0, Backup designated router: 0.0.0.0
Hello interval: 10s, Dead interval: 40s
Cost: 10000, MTU: 1500
Interface: lo-0/0/0/1
Address: 198.51.100.12, State: P2P, Type: p2p, Priority: 1
Designated router: 0.0.0.0, Backup designated router: 0.0.0.0
Hello interval: 10s, Dead interval: 40s
Cost: 10000, MTU:
Instance: default, Address family: ipv6, Instance ID: 0
General information:
Router ID: 198.51.100.11, Hostname: CBNG1, Area count: 2, Flood interval: 1000ms
Opaque capability: False, Segment routing capability: True
SR parameters:
SRGB base: 10000, SRGB range: 1000, SRGB label values: 10000-10999
Flags: SR|-|-|-|-|ABR, Cost: 4294967295
SPF initial delay: 50ms, SPF short delay: 200ms, SPF long delay: 5000ms
Area: 0.0.0.0
Interface count: 2
Interface: ifl-0/0/2/100
Address: fe80::9819:2c00:6406:b503, State: BDR, Type: broadcast, Priority: 1
Designated router: 198.51.100.21, Backup designated router: 198.51.100.11
Hello interval: 10s, Dead interval: 40s
Cost: 10000, MTU: 1500
Interface: lo-0/0/0/0
Address: 2001:db8:0:1::11, State: P2P, Type: p2p, Priority: 1
Designated router: 0.0.0.0, Backup designated router: 0.0.0.0
Hello interval: 10s, Dead interval: 40s
Cost: 10000, MTU: 0
Area: 0.0.0.1
Interface count: 2
Interface: ifl-0/0/2/0
Address: fe80::9819:2cff:fe06:b503, State: DR, Type: broadcast, Priority: 1
Designated router: 198.51.100.11, Backup designated router: 0.0.0.0
Hello interval: 10s, Dead interval: 40s
Cost: 10000, MTU: 1500
Interface: lo-0/0/0/1
Address: 2001:db8:0:1::12, State: P2P, Type: p2p, Priority: 1
Designated router: 0.0.0.0, Backup designated router: 0.0.0.0
Hello interval: 10s, Dead interval: 40s
Cost: 10000, MTU: 0
To access the Operational State API that corresponds to this CLI, click
include::common:partial$operational_api_links.adoc[tag=show_ospf_summary].
OSPF Hostname
Displays the OSPF hostname information.
Syntax:
Example: OSPF hostname for the default instance
supervisor@rtbrick: op> show ospf hostname
Instance AFI Instance ID Router ID Hostname
default ipv4 198.51.100.11 CBNG1
default ipv4 198.51.100.21 CBNG2
default ipv6 0 198.51.100.11 CBNG1
default ipv6 0 198.51.100.21 CBNG2
OSPF Interface
Displays OSPF interface information.
Syntax:
| Option | Description |
|---|---|
|
Without any option, the command displays the interface information for all instances and address families. |
|
Displays the detailed interface information. |
|
Displays detailed information for the specified interface. Also, for the specified interface, you can display interface information with filter options: detail, ipv4, and ipv4 detail. |
|
OSPF interface information for the given instance. Also, for the specified instance, you can display interface information with filter options: interface name, detail, and ipv4 detail. |
|
Displays information for a specified interface for a given instance. |
|
Displays detailed information for a specified interface for a given instance. |
|
Displays OSPF interface information for the specified address family. Supported AFI values are 'ipv4' and 'ipv6'. You can display interface information for the specified address family using filters such as interface name, detail, and instance. |
Example 1: OSPF interface information for the default instance
supervisor@rtbrick: op> show ospf interface
Instance: default, Address family: ipv4
Interface Area IP Address State Type Cost Priority DR BDR MTU
ifl-0/0/2/0 0.0.0.1 192.0.2.1 P2P p2p 10000 1 0.0.0.0 0.0.0.0 1500
lo-0/0/0/0 0.0.0.0 198.51.100.11 P2P p2p 10000 1 0.0.0.0 0.0.0.0
lo-0/0/0/1 0.0.0.1 198.51.100.12 P2P p2p 10000 1 0.0.0.0 0.0.0.0
Instance: default, Address family: ipv6, Instance ID: 0
Interface Area IP Address State Type Cost Priority DR BDR MTU
ifl-0/0/2/0 0.0.0.1 fe80::9819:2cff:fe06:b503 DR broadcast 10000 1 198.51.100.11 0.0.0.0 1500
ifl-0/0/2/100 0.0.0.0 fe80::9819:2c00:6406:b503 BDR broadcast 10000 1 198.51.100.21 198.51.100.11 1500
lo-0/0/0/0 0.0.0.0 2001:db8:0:1::11 P2P p2p 10000 1 0.0.0.0 0.0.0.0 0
lo-0/0/0/1 0.0.0.1 2001:db8:0:1::12 P2P p2p 10000 1 0.0.0.0 0.0.0.0 0
Example 2: OSPF interface information
supervisor@rtbrick: op> show ospf interface ifl-0/0/2/0
Instance: default, Address family: ipv4
Interface Area IP Address State Type Cost Priority DR BDR MTU
ifl-0/0/2/0 0.0.0.1 192.0.2.1 P2P p2p 10000 1 0.0.0.0 0.0.0.0 1500
Instance: default, Address family: ipv6, Instance ID: 0
Interface Area IP Address State Type Cost Priority DR BDR MTU
ifl-0/0/2/0 0.0.0.1 fe80::9819:2cff:fe06:b503 DR broadcast 10000 1 198.51.100.11 0.0.0.0 1500
To access the Operational State API that corresponds to this CLI, click
include::common:partial$operational_api_links.adoc[tag=show_ospf_interface].
OSPF Neighbor
Displays OSPF neighbor information.
Syntax:
| Option | Description |
|---|---|
|
Without any option, the command displays the neighbor information for all instances. |
|
OSPF neighbor information for the given instance. |
|
OSPF neighbor information for the given area. |
|
Displays the detailed neighbor information. |
|
Displays the neighbor information for a specified interface. |
|
Displays detailed OSPF neighbor information for the given instance. |
|
Displays OSPF neighbor information for the specified interface for the given instance. |
|
Displays detailed OSPF neighbor information for the specified interface for the given instance. |
|
Displays detailed neighbor information for a specified interface. |
|
Displays OSPF neighbor information for the specified address family. Supported AFI values are 'ipv4' and 'ipv6'. You can display neighbor information for the specified address family using filters such as interface name, detail, and instance. |
|
Logs neighbor event information. |
Example: OSPF neighbor information for the default instance
supervisor@rtbrick: op> show ospf neighbor
Instance: default, Address family: ipv4
Address Interface Router Area State Priority DR BDR Uptime Expires
192.0.2.2 ifl-0/0/2/0 CBNG2 0.0.0.1 Full 1 0.0.0.0 0.0.0.0 0d:00h:00m:54s 36s
Instance: default, Address family: ipv6, Instance ID: 0
Address Interface Router Area State Priority DR BDR Uptime Expires
fe80::9819:2c00:6499:472d ifl-0/0/2/100 CBNG2 0.0.0.0 Full 1 198.51.100.21 198.51.100.11 0d:00h:00m:10s 35s
To access the Operational State API that corresponds to this CLI, click
include::common:partial$operational_api_links.adoc[tag=show_ospf_neighbor].
OSPF Segment Routing
OSPF Segment Routing Prefix Segment
Displays OSPF segment routing prefix segment information.
Syntax:
| Option | Description |
|---|---|
|
Without any option, the command displays the neighbor information for all instances. |
|
Displays the OSPF prefix segment information |
|
Displays the OSPF prefix segments for the specified instance and address family |
|
Displays Segment routing global block (SRGB) information for the specified instance address family. Supported AFI values are 'ipv4' and 'ipv6'. |
Example: OSPF neighbor information for the default instance
supervisor@rtbrick: op> show ospf segment-routing prefix-segment
Instance: default, Address family: ipv4, Area ID: 0.0.0.0
Advertising Router Prefix SID Flags
CBNG1 198.51.100.11/32 100 0
Instance: default, Address family: ipv4, Area ID: 0.0.0.1
Advertising Router Prefix SID Flags
CBNG1 198.51.100.11/32 100 0
CBNG2 198.51.100.21/32 200 0
Instance: default, Address family: ipv6, Instance ID: 0, Area ID: 0.0.0.0
Advertising Router Prefix SID Flags
CBNG1 2001:db8:0:1::11/128 101 0
CBNG2 2001:db8:0:1::21/128 201 0
Instance: default, Address family: ipv6, Instance ID: 0, Area ID: 0.0.0.1
Advertising Router Prefix SID Flags
CBNG1 2001:db8:0:1::11/128 101 0
CBNG1 2001:db8:0:1::21/128 201 64
OSPF Segment Routing Global Block
Displays OSPF segment routing global block (SRGB) information.
Syntax:
| Option | Description |
|---|---|
|
Without any option, the command displays the neighbor information for all instances. |
|
Displays Segment routing global block (SRGB) information |
|
Displays Segment routing global block (SRGB) information for the specified instance |
|
Displays Segment routing global block (SRGB) information for the specified instance address family. Supported AFI values are 'ipv4' and 'ipv6'. |
Example: OSPF neighbor information for the default instance
supervisor@rtbrick: op> show ospf segment-routing global-block
Instance: default, Address family: ipv4, Area ID: 0.0.0.0
Advertising Router SRGB Base SRGB Range
CBNG1 10000 1000
Instance: default, Address family: ipv4, Area ID: 0.0.0.1
Advertising Router SRGB Base SRGB Range
CBNG1 10000 1000
CBNG2 11000 1000
Instance: default, Address family: ipv6, Instance ID: 0, Area ID: 0.0.0.0
Advertising Router SRGB Base SRGB Range
CBNG1 10000 1000
CBNG2 11000 1000
Instance: default, Address family: ipv6, Instance ID: 0, Area ID: 0.0.0.1
Advertising Router SRGB Base SRGB Range
CBNG1 10000 1000
OSPF Database
Displays information from OSPF link-state database that contains data about link-state advertisements (LSAs).
Syntax:
| Option | Description |
|---|---|
|
Displays LSDB information for the specified advertising router. |
|
Displays the detailed LSDB information for the specified advertising router. |
|
Displays the LSDB information for the specified link-state ID for the advertising router. |
|
Displays the LSDB information for the specified LSA type for the advertising router. Link-state advertisement types include external, network, router, and summary. |
|
Displays detailed information from LSDB. |
|
Displays OSPF database information for the given instance. |
|
OSPF database information for a specific link-state identifier. |
|
OSPF database information for the specified link-state type. Link-state advertisement types include external, network, router and summary. |
|
Displays database information for the specified OSPF area. |
|
Displays LSDB information for the specified advertising router for a specified OSPF area. |
|
Displays detailed LSDB information for the specified OSPF area. |
|
Displays LSDB information for the specified link-state identifier for the specified OSPF area. |
|
Displays LSDB information for the specified link-state type for the specified OSPF area. Link-state advertisement types include external, network, router, and summary. |
|
Displays LSDB information for the specified advertising router for the given instance. |
|
Displays LSDB information for the specified area for the given instance. |
|
Displays LSDB information for the specified link-state identifier for the given instance. |
|
Displays LSDB information for the specified type of the given instance. Link-state advertisement types include external, network, router and summary. |
|
Displays LSDB neighbor information for the specified address family. Supported AFI values are 'ipv4' and 'ipv6'. You can display LSDB information for the specified address family using filters such as interface name, detail, and instance. |
Example 1: OSPF database information for the default instance
supervisor@rtbrick: op> show ospf database
Instance: default, Address family: ipv4, Area: 0.0.0.0
Type Link State ID Advertising Router Age Sequence Checksum Cost
Router 198.51.100.11 CBNG1 62 0x80000001 0xf4a7 -
Summary-Network 192.0.2.0 CBNG1 61 0x80000001 0x3d81 10000
Summary-Network 198.51.100.12 CBNG1 61 0x80000001 0xe72c 10000
Summary-Network 198.51.100.22 CBNG1 53 0x80000001 0x844e 20000
Summary-Asbr 198.51.100.21 CBNG1 53 0x80000001 0x7f8a 10000
Opaque-Area 4.0.0.0 CBNG1 62 0x80000001 0x1c15 -
Opaque-Area 7.0.0.100 CBNG1 62 0x80000001 0xf62e -
Instance: default, Address family: ipv4, Area: 0.0.0.1
Type Link State ID Advertising Router Age Sequence Checksum Cost
Router 198.51.100.11 CBNG1 58 0x80000002 0x1304 -
Router 198.51.100.21 CBNG2 59 0x80000002 0x7190 -
Summary-Network 192.0.2.4 CBNG2 59 0x80000001 0xd8d7 10000
Summary-Network 198.51.100.11 CBNG1 61 0x80000001 0xf123 10000
Summary-Network 198.51.100.21 CBNG2 59 0x80000001 0x51af 10000
Opaque-Area 4.0.0.0 CBNG1 62 0x80000001 0x1c15 -
Opaque-Area 4.0.0.0 CBNG2 65 0x80000001 0xa30 -
Opaque-Area 7.0.0.100 CBNG1 61 0x80000001 0xa98 -
Opaque-Area 7.0.0.200 CBNG2 59 0x80000001 0xa025 -
Instance: default, Address family: ipv4
Type Link State ID Advertising Router Age Sequence Checksum Cost
External 192.0.2.0 CBNG1 62 0x80000001 0x26c6 16777214
External 192.0.2.0 CBNG2 65 0x80000001 0xe9f8 16777214
External 192.0.2.4 CBNG1 62 0x80000001 0xfdea 16777214
External 192.0.2.4 CBNG2 65 0x80000001 0xc11d 16777214
External 198.51.100.11 CBNG1 62 0x80000001 0xda68 16777214
External 198.51.100.12 CBNG1 62 0x80000001 0xd071 16777214
External 198.51.100.21 CBNG2 65 0x80000001 0x3af4 16777214
External 198.51.100.22 CBNG2 65 0x80000001 0x30fd 16777214
Instance: default, Address family: ipv6, Instance ID: 0, Area: 0.0.0.0
Type Link State ID Advertising Router Age Sequence Checksum Cost
OSPFv3-Router 0.0.0.0 CBNG1 14 0x80000002 0xe3dc -
OSPFv3-Router 0.0.0.0 CBNG2 15 0x80000002 0xacf5 -
OSPFv3-Network 1.28.144.1 CBNG2 15 0x80000001 0x79b0 -
Inter-Area-Prefix 1.0.0.0 CBNG1 62 0x80000001 0x4f1d 10000
Inter-Area-Prefix 1.0.0.0 CBNG2 59 0x80000001 0x5c9a 10000
Inter-Area-Prefix 2.0.0.0 CBNG1 62 0x80000001 0xec23 10000
Intra-Area-Prefix 1.0.0.0 CBNG1 14 0x80000004 0x5421 -
Intra-Area-Prefix 1.0.0.0 CBNG2 15 0x80000003 0xc889 -
Intra-Area-Prefix 118.32.3.0 CBNG2 15 0x80000001 0x6448 -
OSPFv3-Router-Information 0.0.0.0 CBNG1 62 0x80000001 0x4349 -
OSPFv3-Router-Information 0.0.0.0 CBNG2 65 0x80000001 0x3164 -
E-Intra-Area-Prefix 1.0.0.0 CBNG1 62 0x80000001 0x7b8c -
E-Intra-Area-Prefix 1.0.0.0 CBNG2 60 0x80000001 0x9be3 -
Link 1.8.144.1 CBNG1 19 0x80000003 0x2e4a -
Link 1.28.144.1 CBNG2 20 0x80000002 0x2fdc -
Instance: default, Address family: ipv6, Instance ID: 0, Area: 0.0.0.1
Type Link State ID Advertising Router Age Sequence Checksum Cost
OSPFv3-Router 0.0.0.0 CBNG1 62 0x80000001 0x9632 -
Inter-Area-Prefix 1.0.0.0 CBNG1 62 0x80000001 0x5f0c 10000
Inter-Area-Prefix 2.0.0.0 CBNG1 62 0x80000001 0xd23e 10000
Inter-Area-Prefix 3.0.0.0 CBNG1 8 0x80000001 0x9831 20000
Inter-Area-Prefix 4.0.0.0 CBNG1 8 0x80000001 0x7455 20000
Intra-Area-Prefix 1.0.0.0 CBNG1 22 0x80000002 0x1cec -
OSPFv3-Router-Information 0.0.0.0 CBNG1 62 0x80000001 0x4349 -
E-Inter-Area-Prefix 1.0.0.0 CBNG1 62 0x80000001 0xdc06 -
E-Inter-Area-Prefix 2.0.0.0 CBNG1 8 0x80000001 0xde19 -
Link 1.8.0.0 CBNG1 22 0x80000002 0x5918 -
Example 2: OSPF database detailed information
supervisor@rtbrick: op> show ospf database detail
Instance: default, Address family: ipv4, Area: 0.0.0.0 LSAs
LSA ID: 198.51.100.11
Advertising router: CBNG1, LSA type: Router
Sequence number: 0x80000001, Checksum: 0xf4a7, LSA age: 63s
Length: 36, Options: *|O|-|-|-|-|E|*, Flags: -|-|E|B
Number of links: 1
Link ID: 198.51.100.11
Link data: 255.255.255.255, Type: Stub
Type of service: 0, Metric: 10000
LSA ID: 192.0.2.0
Advertising router: CBNG1, LSA type: Summary-Network
Sequence number: 0x80000001, Checksum: 0x3d81, LSA age: 62s
Length: 28, Options: *|O|-|-|-|-|-|*
Mask: 255.255.255.252, Metric: 10000
LSA ID: 198.51.100.12
Advertising router: CBNG1, LSA type: Summary-Network
Sequence number: 0x80000001, Checksum: 0xe72c, LSA age: 62s
Length: 28, Options: *|O|-|-|-|-|-|*
Mask: 255.255.255.255, Metric: 10000
LSA ID: 198.51.100.22
Advertising router: CBNG1, LSA type: Summary-Network
Sequence number: 0x80000001, Checksum: 0x844e, LSA age: 54s
Length: 28, Options: *|O|-|-|-|-|-|*
Mask: 255.255.255.255, Metric: 20000
LSA ID: 198.51.100.21
Advertising router: CBNG1, LSA type: Summary-Asbr
Sequence number: 0x80000001, Checksum: 0x7f8a, LSA age: 54s
Length: 28, Options: *|O|-|-|-|-|-|*
Mask: 0.0.0.0, Metric: 10000
LSA ID: 4.0.0.0
Advertising router: CBNG1, LSA type: Opaque-Area
Sequence number: 0x80000001, Checksum: 0x1c15, LSA age: 63s
Length: 56, Options: *|-|-|-|-|-|-|*
Hostname mapping:
Hostname: CBNG1, Router ID: 198.51.100.11
Segment routing range TLV:
Range size: 1000, Label: 10000
LSA ID: 7.0.0.100
Advertising router: CBNG1, LSA type: Opaque-Area
Sequence number: 0x80000001, Checksum: 0xf62e, LSA age: 63s
Length: 44, Options: *|-|-|-|-|-|-|*
Extended prefix TLV:
Prefix: 198.51.100.11/32
Route type: 1, AF: 0, Flags: 64
Prefix SID sub TLV:
Multi topology ID: 0, Algorithm: 0, Flags: 0, SID: 100
Instance: default, Address family: ipv4, Area: 0.0.0.1 LSAs
LSA ID: 198.51.100.11
Advertising router: CBNG1, LSA type: Router
Sequence number: 0x80000002, Checksum: 0x1304, LSA age: 59s
Length: 60, Options: *|O|-|-|-|-|E|*, Flags: -|-|E|B
Number of links: 3
Link ID: 198.51.100.21
Link data: 192.0.2.1, Type: P2P
Type of service: 0, Metric: 10000
Link ID: 192.0.2.0
Link data: 255.255.255.252, Type: Stub
Type of service: 0, Metric: 10000
Link ID: 198.51.100.12
Link data: 255.255.255.255, Type: Stub
Type of service: 0, Metric: 10000
LSA ID: 198.51.100.21
Advertising router: CBNG2, LSA type: Router, Router ID: CBNG2
Sequence number: 0x80000002, Checksum: 0x7190, LSA age: 60s
Interface: ifl-0/0/2/0, Neighbor address: 192.0.2.2
Length: 60, Options: *|O|-|-|-|-|E|*, Flags: -|-|E|B
Number of links: 3
Link ID: 198.51.100.11
Link data: 192.0.2.2, Type: P2P
Type of service: 0, Metric: 10000
Link ID: 192.0.2.0
Link data: 255.255.255.252, Type: Stub
Type of service: 0, Metric: 10000
Link ID: 198.51.100.22
Link data: 255.255.255.255, Type: Stub
Type of service: 0, Metric: 10000
LSA ID: 192.0.2.4
Advertising router: CBNG2, LSA type: Summary-Network, Router ID: CBNG2
Sequence number: 0x80000001, Checksum: 0xd8d7, LSA age: 60s
Interface: ifl-0/0/2/0, Neighbor address: 192.0.2.2
Length: 28, Options: *|O|-|-|-|-|-|*
Mask: 255.255.255.252, Metric: 10000
LSA ID: 198.51.100.11
Advertising router: CBNG1, LSA type: Summary-Network
Sequence number: 0x80000001, Checksum: 0xf123, LSA age: 62s
Length: 28, Options: *|O|-|-|-|-|-|*
Mask: 255.255.255.255, Metric: 10000
LSA ID: 198.51.100.21
Advertising router: CBNG2, LSA type: Summary-Network, Router ID: CBNG2
Sequence number: 0x80000001, Checksum: 0x51af, LSA age: 60s
Interface: ifl-0/0/2/0, Neighbor address: 192.0.2.2
Length: 28, Options: *|O|-|-|-|-|-|*
Mask: 255.255.255.255, Metric: 10000
LSA ID: 4.0.0.0
Advertising router: CBNG1, LSA type: Opaque-Area
Sequence number: 0x80000001, Checksum: 0x1c15, LSA age: 63s
Length: 56, Options: *|-|-|-|-|-|-|*
Hostname mapping:
Hostname: CBNG1, Router ID: 198.51.100.11
Segment routing range TLV:
Range size: 1000, Label: 10000
LSA ID: 4.0.0.0
Advertising router: CBNG2, LSA type: Opaque-Area, Router ID: CBNG2
Sequence number: 0x80000001, Checksum: 0xa30, LSA age: 66s
Interface: ifl-0/0/2/0, Neighbor address: 192.0.2.2
Length: 56, Options: *|-|-|-|-|-|-|*
Hostname mapping:
Hostname: CBNG2, Router ID: 198.51.100.21
Segment routing range TLV:
Range size: 1000, Label: 11000
LSA ID: 7.0.0.100
Advertising router: CBNG1, LSA type: Opaque-Area
Sequence number: 0x80000001, Checksum: 0xa98, LSA age: 62s
Length: 44, Options: *|-|-|-|-|-|-|*
Extended prefix TLV:
Prefix: 198.51.100.11/32
Route type: 3, AF: 0, Flags: 192
Prefix SID sub TLV:
Multi topology ID: 0, Algorithm: 0, Flags: 0, SID: 100
LSA ID: 7.0.0.200
Advertising router: CBNG2, LSA type: Opaque-Area, Router ID: CBNG2
Sequence number: 0x80000001, Checksum: 0xa025, LSA age: 60s
Interface: ifl-0/0/2/0, Neighbor address: 192.0.2.2
Length: 44, Options: *|-|-|-|-|-|-|*
Extended prefix TLV:
Prefix: 198.51.100.21/32
Route type: 3, AF: 0, Flags: 192
Prefix SID sub TLV:
Multi topology ID: 0, Algorithm: 0
Reserved: 0, Flags: 0, SID: 200
Instance: default, Address family: ipv4 LSAs
LSA ID: 192.0.2.0
Advertising router: CBNG1, LSA type: External
Sequence number: 0x80000001, Checksum: 0x26c6, LSA age: 63s
Length: 36, Options: *|O|-|-|-|-|-|*
Forwarding address: 0.0.0.0, Mask: 255.255.255.252, Route tag: 0
Metric: 16777214, Metric type: EXTERNAL_TYPE_1
LSA ID: 192.0.2.0
Advertising router: CBNG2, LSA type: External, Router ID: CBNG2
Sequence number: 0x80000001, Checksum: 0xe9f8, LSA age: 66s
Interface: ifl-0/0/2/0, Neighbor address: 192.0.2.2
Length: 36, Options: *|O|-|-|-|-|-|*
Forwarding address: 0.0.0.0, Mask: 255.255.255.252, Route tag: 0
Metric: 16777214, Metric type: EXTERNAL_TYPE_1
LSA ID: 192.0.2.4
Advertising router: CBNG1, LSA type: External
Sequence number: 0x80000001, Checksum: 0xfdea, LSA age: 63s
Length: 36, Options: *|O|-|-|-|-|-|*
Forwarding address: 0.0.0.0, Mask: 255.255.255.252, Route tag: 0
Metric: 16777214, Metric type: EXTERNAL_TYPE_1
LSA ID: 192.0.2.4
Advertising router: CBNG2, LSA type: External, Router ID: CBNG2
Sequence number: 0x80000001, Checksum: 0xc11d, LSA age: 66s
Interface: ifl-0/0/2/0, Neighbor address: 192.0.2.2
Length: 36, Options: *|O|-|-|-|-|-|*
Forwarding address: 0.0.0.0, Mask: 255.255.255.252, Route tag: 0
Metric: 16777214, Metric type: EXTERNAL_TYPE_1
LSA ID: 198.51.100.11
Advertising router: CBNG1, LSA type: External
Sequence number: 0x80000001, Checksum: 0xda68, LSA age: 63s
Length: 36, Options: *|O|-|-|-|-|-|*
Forwarding address: 0.0.0.0, Mask: 255.255.255.255, Route tag: 0
Metric: 16777214, Metric type: EXTERNAL_TYPE_1
LSA ID: 198.51.100.12
Advertising router: CBNG1, LSA type: External
Sequence number: 0x80000001, Checksum: 0xd071, LSA age: 63s
Length: 36, Options: *|O|-|-|-|-|-|*
Forwarding address: 0.0.0.0, Mask: 255.255.255.255, Route tag: 0
Metric: 16777214, Metric type: EXTERNAL_TYPE_1
LSA ID: 198.51.100.21
Advertising router: CBNG2, LSA type: External, Router ID: CBNG2
Sequence number: 0x80000001, Checksum: 0x3af4, LSA age: 66s
Interface: ifl-0/0/2/0, Neighbor address: 192.0.2.2
Length: 36, Options: *|O|-|-|-|-|-|*
Forwarding address: 0.0.0.0, Mask: 255.255.255.255, Route tag: 0
Metric: 16777214, Metric type: EXTERNAL_TYPE_1
LSA ID: 198.51.100.22
Advertising router: CBNG2, LSA type: External, Router ID: CBNG2
Sequence number: 0x80000001, Checksum: 0x30fd, LSA age: 66s
Interface: ifl-0/0/2/0, Neighbor address: 192.0.2.2
Length: 36, Options: *|O|-|-|-|-|-|*
Forwarding address: 0.0.0.0, Mask: 255.255.255.255, Route tag: 0
Metric: 16777214, Metric type: EXTERNAL_TYPE_1
Instance: default, Address family: ipv6, Area: 0.0.0.0, Instance ID: 0 LSAs
LSA ID: 0.0.0.0
Advertising router: CBNG1, LSA type: OSPFv3-Router
Sequence number: 0x80000002, Checksum: 0xe3dc, LSA age: 15s
Length: 40, Options: -|V6|E|-|-|R|-|-, Flags: -|-|-|B
Number of links: 1
Link Entry: 1
Type: Transit, Metric: 10000
Local interface ID: 26216449, Neighbor interface ID: 26221569, Neighbor router ID: 198.51.100.21
LSA ID: 0.0.0.0
Advertising router: CBNG2, LSA type: OSPFv3-Router, Router ID: CBNG2
Sequence number: 0x80000002, Checksum: 0xacf5, LSA age: 16s
Interface: ifl-0/0/2/100, Neighbor address: fe80::9819:2c00:6499:472d
Length: 40, Options: -|V6|E|-|-|R|-|-, Flags: -|-|-|B
Number of links: 1
Link Entry: 1
Type: Transit, Metric: 10000
Local interface ID: 26221569, Neighbor interface ID: 26221569, Neighbor router ID: 198.51.100.21
LSA ID: 1.28.144.1
Advertising router: CBNG2, LSA type: OSPFv3-Network, Router ID: CBNG2
Sequence number: 0x80000001, Checksum: 0x79b0, LSA age: 16s
Interface: ifl-0/0/2/100, Neighbor address: fe80::9819:2c00:6499:472d
Length: 32, Options: -|V6|E|-|-|R|-|-, Number of links: 2
Attached routers: 198.51.100.11, 198.51.100.21
LSA ID: 1.0.0.0
Advertising router: CBNG1, LSA type: Inter-Area-Prefix
Sequence number: 0x80000001, Checksum: 0x4f1d, LSA age: 63s
Length: 36
Metric: 10000, Prefix options: -|-|-|-|-|-, Prefix: 2001:db8:1:1::/64
LSA ID: 1.0.0.0
Advertising router: CBNG2, LSA type: Inter-Area-Prefix, Router ID: CBNG2
Sequence number: 0x80000001, Checksum: 0x5c9a, LSA age: 60s
Interface: ifl-0/0/2/100, Neighbor address: fe80::9819:2c00:6499:472d
Length: 44
Metric: 10000, Prefix options: -|-|LA|-|-|-, Prefix: 2001:db8:0:1::22/128
LSA ID: 2.0.0.0
Advertising router: CBNG1, LSA type: Inter-Area-Prefix
Sequence number: 0x80000001, Checksum: 0xec23, LSA age: 63s
Length: 44
Metric: 10000, Prefix options: -|-|LA|-|-|-, Prefix: 2001:db8:0:1::12/128
LSA ID: 1.0.0.0
Advertising router: CBNG1, LSA type: Intra-Area-Prefix
Sequence number: 0x80000004, Checksum: 0x5421, LSA age: 15s
Length: 52
Ref Type: OSPFv3-Router, Ref ID: 0.0.0.0, Ref Advertised Router: 198.51.100.11
Prefix Count: 1
Prefix List:
Prefix: 2001:db8:0:1::11/128, Metric: 10000, Prefix options: -|-|LA|-|-|-
LSA ID: 1.0.0.0
Advertising router: CBNG2, LSA type: Intra-Area-Prefix, Router ID: CBNG2
Sequence number: 0x80000003, Checksum: 0xc889, LSA age: 16s
Interface: ifl-0/0/2/100, Neighbor address: fe80::9819:2c00:6499:472d
Length: 52
Ref Type: OSPFv3-Router, Ref ID: 0.0.0.0, Ref Advertised Router: 198.51.100.21
Prefix Count: 1
Prefix List:
Prefix: 2001:db8:0:1::21/128, Metric: 10000, Prefix options: -|-|LA|-|-|-
LSA ID: 118.32.3.0
Advertising router: CBNG2, LSA type: Intra-Area-Prefix, Router ID: CBNG2
Sequence number: 0x80000001, Checksum: 0x6448, LSA age: 16s
Interface: ifl-0/0/2/100, Neighbor address: fe80::9819:2c00:6499:472d
Length: 44
Ref Type: OSPFv3-Network, Ref ID: 1.28.144.1, Ref Advertised Router: 198.51.100.21
Prefix Count: 1
Prefix List:
Prefix: 2001:db8:2:1::/64, Metric: 0, Prefix options: -|-|-|-|-|-
LSA ID: 0.0.0.0
Advertising router: CBNG1, LSA type: OSPFv3-Router-Information
Sequence number: 0x80000001, Checksum: 0x4349, LSA age: 63s
Length: 56
Hostname mapping:
Hostname: CBNG1, Router ID: 198.51.100.11
Segment routing range TLV:
Range size: 1000, Label: 10000
LSA ID: 0.0.0.0
Advertising router: CBNG2, LSA type: OSPFv3-Router-Information, Router ID: CBNG2
Sequence number: 0x80000001, Checksum: 0x3164, LSA age: 66s
Interface: ifl-0/0/2/100, Neighbor address: fe80::9819:2c00:6499:472d
Length: 56
Hostname mapping:
Hostname: CBNG2, Router ID: 198.51.100.21
Segment routing range TLV:
Range size: 1000, Label: 11000
LSA ID: 1.0.0.0
Advertising router: CBNG1, LSA type: E-Intra-Area-Prefix
Sequence number: 0x80000001, Checksum: 0x7b8c, LSA age: 63s
Length: 72
Prefix Count: 1
Prefix List:
Prefix: 2001:db8:0:1::11/128, Metric: 10000, Prefix options: -|-|LA|-|-|-
Extended prefix TLV:
Algorithm: 0, Flags: 0, SID: 101
LSA ID: 1.0.0.0
Advertising router: CBNG2, LSA type: E-Intra-Area-Prefix, Router ID: CBNG2
Sequence number: 0x80000001, Checksum: 0x9be3, LSA age: 61s
Interface: ifl-0/0/2/100, Neighbor address: fe80::9819:2c00:6499:472d
Length: 72
Prefix Count: 1
Prefix List:
Prefix: 2001:db8:0:1::21/128, Metric: 10000, Prefix options: -|-|LA|-|-|-
Extended prefix TLV:
Algorithm: 0, Flags: 0, SID: 201
LSA ID: 1.8.144.1
Advertising router: CBNG1, LSA type: Link, Router ID: 0.0.0.0
Sequence number: 0x80000003, Checksum: 0x2e4a, LSA age: 20s
Interface: ifl-0/0/2/100
Length: 56, Options: -|V6|E|-|-|R|-|-
Prefix Count: 1
Prefix List:
Prefix: 2001:db8:2:1::/64, Metric: 0, Prefix options: -|-|-|-|-|-
LSA ID: 1.28.144.1
Advertising router: CBNG2, LSA type: Link, Router ID: CBNG2
Sequence number: 0x80000002, Checksum: 0x2fdc, LSA age: 21s
Interface: ifl-0/0/2/100, Neighbor address: fe80::9819:2c00:6499:472d
Length: 56, Options: -|V6|E|-|-|R|-|-
Prefix Count: 1
Prefix List:
Prefix: 2001:db8:2:1::/64, Metric: 0, Prefix options: -|-|-|-|-|-
Instance: default, Address family: ipv6, Area: 0.0.0.1, Instance ID: 0 LSAs
LSA ID: 0.0.0.0
Advertising router: CBNG1, LSA type: OSPFv3-Router
Sequence number: 0x80000001, Checksum: 0x9632, LSA age: 63s
Length: 24, Options: -|V6|E|-|-|R|-|-, Flags: -|-|-|-
Number of links: 0
LSA ID: 1.0.0.0
Advertising router: CBNG1, LSA type: Inter-Area-Prefix
Sequence number: 0x80000001, Checksum: 0x5f0c, LSA age: 63s
Length: 36
Metric: 10000, Prefix options: -|-|-|-|-|-, Prefix: 2001:db8:2:1::/64
LSA ID: 2.0.0.0
Advertising router: CBNG1, LSA type: Inter-Area-Prefix
Sequence number: 0x80000001, Checksum: 0xd23e, LSA age: 63s
Length: 44
Metric: 10000, Prefix options: -|-|LA|-|-|-, Prefix: 2001:db8:0:1::11/128
LSA ID: 3.0.0.0
Advertising router: CBNG1, LSA type: Inter-Area-Prefix
Sequence number: 0x80000001, Checksum: 0x9831, LSA age: 9s
Length: 44
Metric: 20000, Prefix options: -|-|-|-|-|-, Prefix: 2001:db8:0:1::22/128
LSA ID: 4.0.0.0
Advertising router: CBNG1, LSA type: Inter-Area-Prefix
Sequence number: 0x80000001, Checksum: 0x7455, LSA age: 9s
Length: 44
Metric: 20000, Prefix options: -|-|-|-|-|-, Prefix: 2001:db8:0:1::21/128
LSA ID: 1.0.0.0
Advertising router: CBNG1, LSA type: Intra-Area-Prefix
Sequence number: 0x80000002, Checksum: 0x1cec, LSA age: 23s
Length: 64
Ref Type: OSPFv3-Router, Ref ID: 0.0.0.0, Ref Advertised Router: 198.51.100.11
Prefix Count: 2
Prefix List:
Prefix: 2001:db8:1:1::/64, Metric: 10000, Prefix options: -|-|-|-|-|-
Prefix: 2001:db8:0:1::12/128, Metric: 10000, Prefix options: -|-|LA|-|-|-
LSA ID: 0.0.0.0
Advertising router: CBNG1, LSA type: OSPFv3-Router-Information
Sequence number: 0x80000001, Checksum: 0x4349, LSA age: 63s
Length: 56
Hostname mapping:
Hostname: CBNG1, Router ID: 198.51.100.11
Segment routing range TLV:
Range size: 1000, Label: 10000
LSA ID: 1.0.0.0
Advertising router: CBNG1, LSA type: E-Inter-Area-Prefix
Sequence number: 0x80000001, Checksum: 0xdc06, LSA age: 63s
Length: 60
Prefix Count: 1
Prefix List:
Prefix: 2001:db8:0:1::11/128, Metric: 10000, Prefix options: -|-|LA|-|-|-
Extended prefix TLV:
Algorithm: 0, Flags: 0, SID: 101
LSA ID: 2.0.0.0
Advertising router: CBNG1, LSA type: E-Inter-Area-Prefix
Sequence number: 0x80000001, Checksum: 0xde19, LSA age: 9s
Length: 60
Prefix Count: 1
Prefix List:
Prefix: 2001:db8:0:1::21/128, Metric: 20000, Prefix options: -|-|-|-|-|-
Extended prefix TLV:
Algorithm: 0, Flags: 64, SID: 201
LSA ID: 1.8.0.0
Advertising router: CBNG1, LSA type: Link, Router ID: 0.0.0.0
Sequence number: 0x80000002, Checksum: 0x5918, LSA age: 23s
Interface: ifl-0/0/2/0
Length: 56, Options: -|V6|E|-|-|R|-|-
Prefix Count: 1
Prefix List:
Prefix: 2001:db8:1:1::/64, Metric: 0, Prefix options: -|-|-|-|-|-
Example 3: OSPF database for an advertising router
supervisor@rtbrick: op> show ospf database advertising-router 198.51.100.11
Instance: default, Address family: ipv4, Area: 0.0.0.0
Type Link State ID Advertising Router Age Sequence Checksum Cost
Router 198.51.100.11 CBNG1 65 0x80000001 0xf4a7 -
Summary-Network 192.0.2.0 CBNG1 64 0x80000001 0x3d81 10000
Summary-Network 198.51.100.12 CBNG1 64 0x80000001 0xe72c 10000
Summary-Network 198.51.100.22 CBNG1 56 0x80000001 0x844e 20000
Summary-Asbr 198.51.100.21 CBNG1 56 0x80000001 0x7f8a 10000
Opaque-Area 4.0.0.0 CBNG1 65 0x80000001 0x1c15 -
Opaque-Area 7.0.0.100 CBNG1 65 0x80000001 0xf62e -
Instance: default, Address family: ipv4, Area: 0.0.0.1
Type Link State ID Advertising Router Age Sequence Checksum Cost
Router 198.51.100.11 CBNG1 61 0x80000002 0x1304 -
Summary-Network 198.51.100.11 CBNG1 64 0x80000001 0xf123 10000
Opaque-Area 4.0.0.0 CBNG1 65 0x80000001 0x1c15 -
Opaque-Area 7.0.0.100 CBNG1 64 0x80000001 0xa98 -
Instance: default, Address family: ipv4
Type Link State ID Advertising Router Age Sequence Checksum Cost
External 192.0.2.0 CBNG1 65 0x80000001 0x26c6 16777214
External 192.0.2.4 CBNG1 65 0x80000001 0xfdea 16777214
External 198.51.100.11 CBNG1 65 0x80000001 0xda68 16777214
External 198.51.100.12 CBNG1 65 0x80000001 0xd071 16777214
Instance: default, Address family: ipv6, Instance ID: 0, Area: 0.0.0.0
Type Link State ID Advertising Router Age Sequence Checksum Cost
OSPFv3-Router 0.0.0.0 CBNG1 17 0x80000002 0xe3dc -
Inter-Area-Prefix 1.0.0.0 CBNG1 65 0x80000001 0x4f1d 10000
Inter-Area-Prefix 2.0.0.0 CBNG1 65 0x80000001 0xec23 10000
Intra-Area-Prefix 1.0.0.0 CBNG1 17 0x80000004 0x5421 -
OSPFv3-Router-Information 0.0.0.0 CBNG1 65 0x80000001 0x4349 -
E-Intra-Area-Prefix 1.0.0.0 CBNG1 65 0x80000001 0x7b8c -
Link 1.8.144.1 CBNG1 22 0x80000003 0x2e4a -
Instance: default, Address family: ipv6, Instance ID: 0, Area: 0.0.0.1
Type Link State ID Advertising Router Age Sequence Checksum Cost
OSPFv3-Router 0.0.0.0 CBNG1 65 0x80000001 0x9632 -
Inter-Area-Prefix 1.0.0.0 CBNG1 65 0x80000001 0x5f0c 10000
Inter-Area-Prefix 2.0.0.0 CBNG1 65 0x80000001 0xd23e 10000
Inter-Area-Prefix 3.0.0.0 CBNG1 11 0x80000001 0x9831 20000
Inter-Area-Prefix 4.0.0.0 CBNG1 11 0x80000001 0x7455 20000
Intra-Area-Prefix 1.0.0.0 CBNG1 25 0x80000002 0x1cec -
OSPFv3-Router-Information 0.0.0.0 CBNG1 65 0x80000001 0x4349 -
E-Inter-Area-Prefix 1.0.0.0 CBNG1 65 0x80000001 0xdc06 -
E-Inter-Area-Prefix 2.0.0.0 CBNG1 11 0x80000001 0xde19 -
Link 1.8.0.0 CBNG1 25 0x80000002 0x5918 -
OSPF SPF Result
Displays SPF results.
Syntax:
| Option | Description |
|---|---|
|
Without any option, the command displays the SPF result of all instances. |
|
Displays SPF result for the specified area. |
|
Name of the instance |
|
Displays SPF result for the specified node identifier. |
|
Displays SPF result for the specified node identifier for a specified area. |
|
Displays SPF result for the specified area for a given instance. |
|
Displays SPF result for the specified node identifier for a given instance. |
|
Displays SPF result information for the specified address family. Supported AFI values are 'ipv4' and 'ipv6'. You can display SPF result information for the specified address family using filters such as interface name, detail, and instance. |
Example 1: OSPF SPF Result for the default instance
supervisor@rtbrick: op> show ospf spf result
Instance: default, Address family: ipv4, Area: 0.0.0.0
Node ID Type Cost Advertising Router Flags Neighbor Node Interface Nexthop
198.51.100.11 router 0 CBNG1 -|-|E|B - local -
Instance: default, Address family: ipv4, Area: 0.0.0.1
Node ID Type Cost Advertising Router Flags Neighbor Node Interface Nexthop
198.51.100.11 router 0 CBNG1 -|-|E|B - local -
198.51.100.21 router 10000 CBNG2 -|-|E|B 198.51.100.21 ifl-0/0/2/0 192.0.2.2
Instance: default, Address family: ipv6, Area: 0.0.0.0, Instance ID: 0
Node ID Type Cost Advertising Router Flags Neighbor Node Interface Nexthop
198.51.100.11 router 0 CBNG1 -|-|-|B - local -
1.28.144.1 network 10000 CBNG2 -|-|-|- - local -
198.51.100.21 router 10000 CBNG2 -|-|-|B 198.51.100.21 ifl-0/0/2/100 fe80::9819:2c00:6499:472d
Instance: default, Address family: ipv6, Area: 0.0.0.1, Instance ID: 0
Node ID Type Cost Advertising Router Flags Neighbor Node Interface Nexthop
198.51.100.11 router 0 CBNG1 -|-|-|- - local -
Example 2: OSPF SPF Result for the specified node identifier for the given area
supervisor@rtbrick: op> show ospf spf result area 0.0.0.0 node-id 198.51.100.11
Instance: default, Address family: ipv4, Area: 0.0.0.0
Node ID Type Cost Advertising Router Flags Neighbor Node Interface Nexthop
198.51.100.11 router 0 CBNG1 -|-|E|B - local -
Instance: default, Address family: ipv6, Area: 0.0.0.0, Instance ID: 0
Node ID Type Cost Advertising Router Flags Neighbor Node Interface Nexthop
198.51.100.11 router 0 CBNG1 -|-|-|B - local -
OSPF SPF Log
Displays SPF Log information.
Syntax:
| Option | Description |
|---|---|
|
Without any option, the command displays the SPF log of all instances. |
|
Displays SPF log for the specified instance. |
|
Displays SPF log information for the specified address family. Supported AFI values are 'ipv4' and 'ipv6'. You can display SPF log information for the specified address family using filters such as interface name, detail, and instance. |
Example 1: OSPF SPF Result for the default instance
supervisor@rtbrick: op> show ospf spf log
Instance: default
Router ID: 0.0.0.0
Schedule timestamp: 2026-06-05 14:48:00, Area ID: 0.0.0.0, LSA type: Unknown
Reason: ABR Status change, Back off timer: 50, LSA count: 1
LS ID: 0.0.0.0, Number of schedule request: 2
SPF start time: 2026-06-05 14:48:00, Number of nodes: 0, Number of links: 0
Number of stub links: 0, SPF init time: 0 Timer Value, SPF run time: 0 Timer Value
Router LSA change count: -, Network LSA change count: -
Prefix changes: 1, Sequence number: 1
Router ID: 0.0.0.0
Schedule timestamp: 2026-06-05 14:48:00, Area ID: 0.0.0.1, LSA type: Unknown
Reason: ABR Status change, Back off timer: 50, LSA count: 1
LS ID: 0.0.0.0, Number of schedule request: 2
SPF start time: 2026-06-05 14:48:00, Number of nodes: 0, Number of links: 0
Number of stub links: 0, SPF init time: 0 Timer Value, SPF run time: 0 Timer Value
Router LSA change count: -, Network LSA change count: -
Prefix changes: 1, Sequence number: 2
Router ID: 0.0.0.0
Schedule timestamp: 2026-06-05 14:48:00, Area ID: 0.0.0.0, LSA type: Unknown
Reason: ABR Status change, Back off timer: 50, LSA count: 2
LS ID: 0.0.0.0, Number of schedule request: 3
SPF start time: 2026-06-05 14:48:00, Number of nodes: 1, Number of links: 0
Number of stub links: 0, SPF init time: 79us, SPF run time: 1048us
Router LSA change count: 1, Network LSA change count: -
Prefix changes: 1, Sequence number: 3
Router ID: 0.0.0.0
Schedule timestamp: 2026-06-05 14:48:00, Area ID: 0.0.0.1, LSA type: Unknown
Reason: ABR Status change, Back off timer: 50, LSA count: 2
LS ID: 0.0.0.0, Number of schedule request: 3
SPF start time: 2026-06-05 14:48:00, Number of nodes: 1, Number of links: 0
Number of stub links: 0, SPF init time: 13us, SPF run time: 939us
Router LSA change count: 1, Network LSA change count: -
Prefix changes: 1, Sequence number: 4
Router ID: 198.51.100.11
Schedule timestamp: 2026-06-05 14:48:00, Area ID: 0.0.0.0, LSA type: Router
Reason: Router LSA change, Back off timer: 200, LSA count: 1
LS ID: 198.51.100.11, Number of schedule request: 1
SPF start time: 2026-06-05 14:48:00, Number of nodes: 1, Number of links: 0
Number of stub links: 1, SPF init time: 15us, SPF run time: 892us
Router LSA change count: 1, Network LSA change count: -
Prefix changes: 1, Sequence number: 5
Router ID: 198.51.100.11
Schedule timestamp: 2026-06-05 14:48:00, Area ID: 0.0.0.1, LSA type: Router
Reason: Router LSA change, Back off timer: 200, LSA count: 1
LS ID: 198.51.100.11, Number of schedule request: 1
SPF start time: 2026-06-05 14:48:00, Number of nodes: 1, Number of links: 0
Number of stub links: 2, SPF init time: 10us, SPF run time: 788us
Router LSA change count: 1, Network LSA change count: -
Prefix changes: 1, Sequence number: 6
Router ID: 198.51.100.11
Schedule timestamp: 2026-06-05 14:48:00, Area ID: 0.0.0.1, LSA type: Link
Reason: Unknown map - (value) 0xa, Back off timer: 200, LSA count: 1
LS ID: 1.8.0.0, Number of schedule request: 1
SPF start time: 2026-06-05 14:48:00, Number of nodes: 1, Number of links: 0
Number of stub links: 0, SPF init time: 14us, SPF run time: 874us
Router LSA change count: 1, Network LSA change count: -
Prefix changes: 1, Sequence number: 7
Router ID: 198.51.100.11
Schedule timestamp: 2026-06-05 14:48:00, Area ID: 0.0.0.0, LSA type: Link
Reason: Unknown map - (value) 0xa, Back off timer: 200, LSA count: 1
LS ID: 1.8.144.1, Number of schedule request: 1
SPF start time: 2026-06-05 14:48:00, Number of nodes: 1, Number of links: 0
Number of stub links: 0, SPF init time: 13us, SPF run time: 209us
Router LSA change count: 1, Network LSA change count: -
Prefix changes: 1, Sequence number: 8
Router ID: 198.51.100.21
Schedule timestamp: 2026-06-05 14:48:04, Area ID: 0.0.0.1, LSA type: Opaque-Area
Reason: RI LSA change, Back off timer: 5000, LSA count: 4
LS ID: 4.0.0.0, Number of schedule request: 4
SPF start time: 2026-06-05 14:48:09, Number of nodes: 2, Number of links: 2
Number of stub links: 4, SPF init time: 56us, SPF run time: 790us
Router LSA change count: 4, Network LSA change count: -
Prefix changes: 2, Sequence number: 9
Router ID: 198.51.100.11
Schedule timestamp: 2026-06-05 14:48:40, Area ID: 0.0.0.1, LSA type: Link
Reason: Unknown map - (value) 0xa, Back off timer: 50, LSA count: 1
LS ID: 1.8.0.0, Number of schedule request: 1
SPF start time: 2026-06-05 14:48:40, Number of nodes: 1, Number of links: 0
Number of stub links: 0, SPF init time: 17us, SPF run time: 227us
Router LSA change count: 1, Network LSA change count: -
Prefix changes: 1, Sequence number: 10
Router ID: 198.51.100.11
Schedule timestamp: 2026-06-05 14:48:40, Area ID: 0.0.0.0, LSA type: Link
Reason: Unknown map - (value) 0xa, Back off timer: 50, LSA count: 1
LS ID: 1.8.144.1, Number of schedule request: 1
SPF start time: 2026-06-05 14:48:40, Number of nodes: 1, Number of links: 0
Number of stub links: 0, SPF init time: 26us, SPF run time: 202us
Router LSA change count: 1, Network LSA change count: -
Prefix changes: 1, Sequence number: 11
Router ID: 198.51.100.21
Schedule timestamp: 2026-06-05 14:48:43, Area ID: 0.0.0.0, LSA type: Link
Reason: Unknown map - (value) 0xa, Back off timer: 5000, LSA count: 4
LS ID: 1.28.144.1, Number of schedule request: 4
SPF start time: 2026-06-05 14:48:48, Number of nodes: 2, Number of links: 0
Number of stub links: 0, SPF init time: 25us, SPF run time: 220us
Router LSA change count: 2, Network LSA change count: -
Prefix changes: 2, Sequence number: 12
Router ID: 198.51.100.21
Schedule timestamp: 2026-06-05 14:48:48, Area ID: 0.0.0.0, LSA type: Router
Reason: Router LSA change, Back off timer: 5000, LSA count: 3
LS ID: 0.0.0.0, Number of schedule request: 3
SPF start time: 2026-06-05 14:48:53, Number of nodes: 3, Number of links: 4
Number of stub links: 0, SPF init time: 32us, SPF run time: 709us
Router LSA change count: 4, Network LSA change count: 1
Prefix changes: 2, Sequence number: 13
OSPF Route
Displays OSPF routing table information.
Syntax:
| Option | Description |
|---|---|
|
Without any option, the command displays the OSPF route information for all instances. |
|
OSPF route information for the given area. |
|
OSPF route information for the given instance. |
|
Displays OSPF route information for the specified address family and instance. Supported AFI values are 'ipv4' and 'ipv6'. |
|
Displays OSPF route information for the specified address family (AFI), sub-address family (SAFI), and instance. Supported AFI values are 'ipv4' and 'ipv6'. Supported SAFI values are 'unicast', and 'labeled-unicast''. |
|
Displays OSPF route information for the specified label and instance. |
|
Displays OSPF route information for the specified MPLS unicast label or type for the instance. |
|
Displays OSPF route information for the specified match prefix. |
|
Displays information for OSPF route type. The route types include |
|
Displays OSPF route information for the specified address family (AFI) and sub-address family (SAFI). Supported AFI values are 'ipv4' and 'ipv6'. Supported SAFI values are 'unicast', and 'labeled-unicast'' |
|
Displays information about the OSPF-labeled routes. |
|
Displays information about OSPF MPLS routes. |
|
Displays the OSPF Area Border Router (ABR) information. Refer to section "3.1.7. OSPF Route ABR" for the interface configuration details. |
|
Displays Autonomous System Border Router information. Refer to section "3.1.7. OSPF Route ABR" for the interface configuration details. |
Example: OSPF route information for the default instance
supervisor@rtbrick: op> show ospf route
Instance: default, AFI: ipv4, SAFI: unicast
Prefix Area Type Cost Next Hop Interface
192.0.2.0/30 0.0.0.1 ospf-direct 10000 n/a local
198.51.100.11/32 0.0.0.0 ospf-direct 10000 n/a local
198.51.100.12/32 0.0.0.1 ospf-direct 10000 n/a local
198.51.100.21/32 external-type-1 16777215 192.0.2.2 ifl-0/0/2/0
198.51.100.22/32 0.0.0.1 intra-area 20000 192.0.2.2 ifl-0/0/2/0
Instance: default, AFI: ipv4, SAFI: labeled-unicast
Prefix Area Type Cost Next Hop Interface
198.51.100.11/32 0.0.0.0 ospf-direct 10000 n/a local
Instance: default, AFI: ipv6, SAFI: unicast, Instance ID: 0
Prefix Area Type Cost Next Hop Interface
2001:db8:0:1::11/128 0.0.0.0 ospf-direct 10000 n/a local
2001:db8:0:1::12/128 0.0.0.1 ospf-direct 10000 n/a local
2001:db8:0:1::21/128 0.0.0.0 intra-area 20000 fe80::9819:2c00:6499:472d ifl-0/0/2/100
2001:db8:0:1::22/128 0.0.0.0 inter-area 20000 fe80::9819:2c00:6499:472d ifl-0/0/2/100
2001:db8:1:1::/64 0.0.0.1 ospf-direct 10000 n/a local
2001:db8:2:1::/64 0.0.0.0 ospf-direct 10000 n/a local
Instance: default, AFI: ipv6, SAFI: labeled-unicast, Instance ID: 0
Prefix Area Type Cost Next Hop Interface
2001:db8:0:1::11/128 0.0.0.0 ospf-direct 10000 n/a local
2001:db8:0:1::21/128 0.0.0.0 intra-area 20000 n/a ifl-0/0/2/100
Instance: default, AFI: mpls, SAFI: unicast
Label Type Next Hop Interface
label:10100 ospf-direct n/a local
label:10100,bos:1 ospf-direct n/a local
Instance: default, AFI: mpls, SAFI: unicast, Instance ID: 0
Label Type Next Hop Interface
label:10101 ospf-direct n/a local
label:10101,bos:1 ospf-direct n/a local
label:10201 intra-area fe80::9819:2c00:6499:472d ifl-0/0/2/100
label:10201,bos:1 intra-area fe80::9819:2c00:6499:472d ifl-0/0/2/100
OSPF Route Area Border
Displays the OSPF Area Border Router (ABR) information.
Syntax:
Example: OSPF Route ABR information
supervisor@rtbrick: op> show ospf route area-border
198.51.100.11 0 198.51.100.11 -|-|E|B local -
198.51.100.11 0 198.51.100.11 -|-|E|B local -
198.51.100.21 10000 198.51.100.21 -|-|E|B ifl-0/0/2/0 192.0.2.2
198.51.100.11 0 198.51.100.11 -|-|-|B local -
198.51.100.21 10000 198.51.100.21 -|-|-|B ifl-0/0/2/100 fe80::9819:2c00:6499:472d
OSPF Route Autonomous System Boundary
Displays Autonomous System Boundary Router information.
Syntax:
Example: OSPF Route ASBR information
supervisor@rtbrick: op> show ospf route autonomous-system-boundary
Instance: default, Address family: ipv4
Node ID Cost Advertising Router Flags Interface Nexthop
198.51.100.21 10000 198.51.100.21 -|-|E|B ifl-0/0/2/0 192.0.2.2
OSPF LSA Request List
Displays the list of all link-state advertisements (LSAs) requests that have been sent or received by a router.
Syntax:
| Option | Description |
|---|---|
|
Without any option, this command displays the list of all link-state advertisement (LSA) requests that have been sent from the router. |
|
Provides detailed information on the requests that have been sent from the router. |
|
OSPF request-list information for the given area. |
|
OSPF request-list information for the given instance. |
|
Displays request-list information for the specified address family. Supported AFI values are 'ipv4' and 'ipv6'. |
Example 1: OSPF LSA requests sent to a neighbor
supervisor@rtbrick: op> show ospf request-list
No pending LSA requests
Example 2: Detailed information for OSPF LSA requests sent to a neighbor
supervisor@rtbrick: op> show ospf request-list detail
No pending LSA requests
OSPF Transmission List
Displays the list of all LSAs waiting to be re-sent or transmitted from the router.
Syntax:
| Option | Description |
|---|---|
|
Without any option, this command displays the transmit list of all link-state advertisements (LSA). |
|
OSPF transmit-list information for the given area. |
|
OSPF transmit-list information for the given instance. |
|
Displays transmit-list information for the specified address family. Supported AFI values are 'ipv4' and 'ipv6'. |
Example: OSPF LSA requests waiting to be transmitted.
supervisor@rtbrick: op> show ospf transmit-list
No pending LSA transmissions
OSPF Statistics
Displays OSPF statistics information.
Syntax:
| Option | Description |
|---|---|
|
Displays packet statistics information for the specified interface. |
|
Displays detailed packet statistics information for the specified interface. |
|
Displays packet statistics information for the specified neighbor. |
|
Displays detailed packet statistics information for the specified neighbor. |
|
Displays packet statistics information for the specified address family. Supported AFI values are 'ipv4' and 'ipv6'. |
supervisor@rtbrick: op> show ospf statistics interface ifl-0/0/2/0 detail
Instance: default, Address family: ipv4
Interface: ifl-0/0/2/0, Peer address: 192.0.2.2
Hello packet:
Received packets: 9, Sent packets: 9, Total errors: 0, Unsupported option: 0
Area mismatch: 0, Area type option mismatch: 0, Dead interval mismatch: 0
Hello interval mismatch: 0, Mask mismatch: 0, Self router ID: 0
Obj add fail: 0, Source address mismatch: , Misc: 0
DD packet:
Received packets: 2, Sent packets: 3, Total errors: 0, Unsupported option: 0
Invalid state packet received: 0, MTU mismatch: 0, DD obj add fail: 0, Misc: 0, Negotiation fail: 0
Master bit mismatch: 0, Exchange state init pkt: 0, Capabilities mismatch: 0
Expected seq mismatch: 0, Full state init pkt: 0, Invalid lsa: 0, Invalid external lsa: 0,
LSDB Absent: 0, Lsa lookup fail: 0, Ls req add fail: 0
LS request packet:
Received packets: 1, Sent packets: 1, Total errors: 0, Invalid LSA type: 0
Invalid state packet received: 0, LSA lookup error: 0, LSA lookup fail: 0
LSA obj add fail: 0, Misc: 0
LS update packet:
Received packets: 3, Sent packets: 2, Total errors: 0, Invalid LSA type: 0
Zero length LSA: 0, LSA length exceeded: 0, LSA checksum fail: 0
Invalid state packet received: 0, LSA obj add fail: 0, Invalid LSA payload: 0, Misc: 0
Ls ack packet:
Received packets: 2, Sent packets: 3, Total errors: 0, LSA obj add fail: 0
Invalid state packet received: 0, Misc: 0
Sanity errors:
Payload max len error: 0, Payload min len error: 0, Invalid version: 0
Invalid auth data len: 0, Auth data missing: 0, Invalid packet min len: 0
Invalid area ID: 0, Invalid network mask: 0, Authentication fail: 0
OSPF Clear Commands
Clear OSPF Neighbor
Clear OSPF neighbor state information.
Syntax:
| Option | Description |
|---|---|
|
Without any option, the command clears all the OSPF neighbors. |
|
Clears OSPF neighbor information for the specified instance. |
|
Clears OSPF neighbor for the specified address family. Supported AFI values are 'ipv4' and 'ipv6'. Supported AFI values are 'ipv4' and 'ipv6'. When using an IPv6 address family with OSPFv3, an instance ID ranging from 0 to 31 must be specified. |
|
Clears OSPF neighbor for the specified area of the specified instance and address family. |
|
Clears OSPF neighbor for the specified interface for the specified area and address family of the specified instance. |
|
Forcefully clears all the OSPF neighbors. This may impact DR/BDR election. |
|
Forcefully clears the neighbor for the specified instance. |
|
Forcefully clears OSPF neighbor for the specified address family. |
|
Forcefully clears OSPF neighbor for the specified area of the specified instance and address family. |
|
Forcefully clears OSPF neighbor for a specific interface and area of the specified instance and address family. |
Example:
supervisor@rtbrick>SPINE01: cfg> clear ospf neighbor instance default ipv6 instance-id 0 area 0 interface ifl-0/0/0/1
Triggered clear neighbor successfully
To access the Operational State API that corresponds to this CLI, click
include::common:partial$operational_api_links.adoc[tag=clear_ospf_neighbor].
Clear OSPF Statistics
Clear the OSPF statistics for all instances or a specified instance.
Syntax:
| Option | Description |
|---|---|
|
Without any option, the command clears all the OSPF statistics. |
|
Clears OSPF statistics information for the specified instance. |
|
Clears OSPF statistics for the specified address family of the specified instance. Supported AFI values are 'ipv4' and 'ipv6'. When using an IPv6 address family with OSPFv3, an instance ID ranging from 0 to 31 must be specified. |
|
Clears OSPF statistics for the specified area of the specified instance and address family. |
|
Clears OSPF statistics for the specified interface for the specified area of the specified instance and address family. |
Example:
supervisor@rtbrick>SPINE01: cfg> clear ospf statistics instance default ipv6 instance-id 0 area 0.0.0.0 interface ifl-0/0/0/1
Cleared statistics for all ipv6 neighbors under Instance [default] Area [0.0.0.0] Interface [ifl-0/0/0/1]
Clear OSPF Database
Clear the OSPF database for all instances.
Syntax:
| Option | Description |
|---|---|
|
Without any option, the command clears all the OSPF database information. |
|
Clears OSPF database for the specified address family. Supported AFI values are 'ipv4' and 'ipv6'. Supported AFI values are 'ipv4' and 'ipv6'. When using an IPv6 address family with OSPFv3, an instance ID ranging from 0 to 31 must be specified. |
|
Clears OSPF database for the specified area of the specified instance and address family. |
Example:
supervisor@rtbrick>SPINE01: cfg> clear ospf database ipv6 instance default instance-id 0
Triggered clear database successfully