OcNOS DC : Layer 3 Guide : Open Shortest Path First Command Reference : OSPFv2 Commands
OSPFv2 Commands
This chapter provides an alphabetized reference for each of the OSPFv2 commands. It includes the following commands:
area authentication
Use this command to enable authentication for an OSPF area. Specifying the area authentication sets the authentication to Type 1 authentication or simple text password authentication (details in RFC 2328). Setting up a Type 1 authentication configures a 64-bit field for that particular network. All packets sent on this network must have this configured value in their OSPF header. This allows only routers that have the same passwords to join the routing domain. Give all routers that are to communicate with each other through OSPF the same authentication password.
Use the ip ospf authentication-key command to specify a simple text password.
Use the ip ospf message-digest-key command to specify an MD5 password.
Use the no parameter to remove the authentication specification for an area.
Command Syntax
area (A.B.C.D|<0-4294967295>) authentication
area (A.B.C.D|<0-4294967295>) authentication message-digest
no area (A.B.C.D|<0-4294967295>) authentication message-digest
Parameters
A.B.C.D
OSPF Area ID in IPv4 address format.
<0-4294967295>
OSPF Area ID as 4-octet unsigned integer value.
message-digest
Enables MD5 authentication in the specified area ID.
Default
Null authentication
Command Mode
Router mode
Applicability
This command was introduced before OcNOS version 1.3.
Examples
#configure terminal
(config)#router ospf 100
(config-router)#area 1 authentication message-digest
 
(config)#router ospf 100
(config-router)#no area 1 authentication
area default-cost
Use this command to specify a cost for the default summary route sent into a stub or NSSA area. This command provides the metric for the summary default route, generated by the area border router, into the NSSA or stub area. Use this option only on an area border router that is attached to the NSSA or stub area. Refer to the RFC 3101 for information on NSSA.
Use the no form of this command to remove the assigned default-route cost.
Command Syntax
area (A.B.C.D|<0-4294967295>) default-cost <0-16777215>
no area (A.B.C.D|<0-4294967295>) default-cost
Parameters
A.B.C.D
OSPF Area ID in IPv4 address format.
<0-4294967295>
OSPF Area ID as a decimal value.
default-cost
Indicates the cost for the default summary route used for a stub or NSSA area.
<0-16777215>
Stub's advertised default summary cost. The default is 1.
Default
By default, route cost is 1
Command Mode
Router mode
Applicability
This command was introduced before OcNOS version 1.3.
Examples
This example sets the default-cost to 10 for area 1.
#configure terminal
(config)#router ospf 100
(config-router)#area 1 default-cost 10
 
(config)#router ospf 100
(config-router)#no area 1 default-cost
area interface
Use this command to enable OSPF routing on the current interface.
Use no form of this command to disable OSPF routing on the current interface.
Command Syntax
area (A.B.C.D|<0-4294967295>) interface IFNAME
no area (A.B.C.D|<0-4294967295>) interface IFNAME
Parameters
A.B.C.D
OSPF area ID as an IPv4 address.
<0-4294967295>
OSPF area ID as a decimal value.
IFNAME
Specify the interface name.
Default
No default value is specified
Command Mode
Router mode
Applicability
This command was introduced in OcNOS-OTN version 4.2.
Examples
#configure terminal
(config)#router ospf 100
(config-router)#area 1 interface xe1
area interface authentication
Use this command to send and receive OSPF packets with the specified authentication method on the current interface.
Use no form of this command to stop sending and receiving OSPF packets with the specified authentication method on the current interface.
Command Syntax
area (A.B.C.D|<0-4294967295>) interface IFNAME authentication (null|message-digest|)
no area (A.B.C.D|<0-4294967295>) interface IFNAME authentication
Parameters
A.B.C.D
OSPF area ID as an IPv4 address.
<0-4294967295>
OSPF area ID as a decimal value.
IFNAME
Specify the interface name.
null
Use no authentication.
message-digest
Use message digest authentication.
Default
No default value is specified
Command Mode
Router mode
Applicability
This command was introduced in OcNOS-OTN version 4.2.
Examples
#configure terminal
(config)#router ospf 100
(config-router)#area 1 interface xe1 authentication null
area interface network-type
Use this command to set the OSPF network type on the current interface.
Use no form of this command to unset the OSPF network type on the current interface.
Command Syntax
area (A.B.C.D|<0-4294967295>) interface IFNAME network-type (broadcast|non-broadcast|point-to-multipoint (non-broadcast|)|point-to-point)
no area (A.B.C.D|<0-4294967295>) interface IFNAME network-type
Parameters
A.B.C.D
OSPF area ID as an IPv4 address.
<0-4294967295>
OSPF area ID as a decimal value.
IFNAME
Specify the interface name.
broadcast
Sets the network type to broadcast.
non-broadcast
Sets the network type to NBMA.
point-to-multipoint
 
Sets the network type to point-to-multipoint..
non-broadcast
 
Sets the network type to NBMA.
point-to-point
Sets the network type to point-to-point.
Default
No default value is specified
Command Mode
Router mode
Applicability
This command was introduced in OcNOS-OTN version 4.2.
Examples
#configure terminal
(config)#router ospf 100
(config-router)#area 1 interface xe1 network-type point-to-point
area interface passive
Use this command to suppress sending hello packets on the current interface.
Use no form of this command to unsuppress sending Hello packets on the current interface.
Command Syntax
area (A.B.C.D|<0-4294967295>) interface IFNAME passive
no area (A.B.C.D|<0-4294967295>) interface IFNAME passive
Parameters
A.B.C.D
OSPF area ID as an IPv4 address.
<0-4294967295>
OSPF area ID as a decimal value.
IFNAME
Specify the interface name.
Default
No default value is specified
Command Mode
Router mode
Applicability
This command was introduced in OcNOS-OTN version 4.2.
Examples
#configure terminal
(config)#router ospf 100
(config-router)#area 1 interface xe1 passive
area filter-list
Use this command to configure a filter to advertise summary routes on an Area Border Router (ABR).
This command suppresses incoming and outgoing summary routes between this area and other areas. You use this command in conjunction with the prefix-list and access-list commands.
Use the no form of this command to remove a filter.
Command Syntax
area (A.B.C.D|<0-4294967295>) filter-list prefix WORD (in|out)
area (A.B.C.D|<0-4294967295>) filter-list access WORD (in|out)
no area (A.B.C.D|<0-4294967295>) filter-list prefix WORD
no area (A.B.C.D|<0-4294967295>) filter-list prefix WORD (in|out)
no area (A.B.C.D|<0-4294967295>) filter-list access WORD (in|out)
Parameters
A.B.C.D
OSPF area ID as an IPv4 address.
<0-4294967295>
OSPF area ID as a decimal value.
prefix
Use prefix list to filter summary.
WORD
Name of the prefix list.
access
Use access list to filter summary.
WORD
Name of the access list.
in
Filter routes from other areas into this area.
out
Filter routes from this area into other areas.
Default
No default value is specified
Command Mode
Router mode
Applicability
This command was introduced before OcNOS version 1.3.
Examples
#configure terminal
(config)#access-list 1 deny 172.22.0.0
(config)#router ospf 100
(config-router)#area 1 filter-list access 1 in
area nssa
Use this command to set an area as a Not-So-Stubby-Area (NSSA). There are no external routes in an OSPF stub area, so you cannot redistribute from another protocol into a stub area. An NSSA allows external routes to be flooded within the area. These routes are then leaked into other areas. However, the external routes from other areas still do not enter the NSSA. You can configure an area to be a stub area or an NSSA, but not both.
This command simplifies administration when connecting a central site using OSPF to a remote site that is using a different routing protocol. You can extend OSPF to cover the remote connection by defining the area between the central router and the remote router as a NSSA.
Use the no form of this command to remove this designation.
Command Syntax
area (A.B.C.D|<0-4294967295>) nssa {translator-role (candidate|always)| stabilityinterval < 0-2147483647>|no-redistribution|default-information-originate (metric < 0-16777214>|metric-type <1-2>|metric <0-16777214> metric-type <1-2>|metric-type< 1-2> metric <0-16777214>|)|no-summary}
area (A.B.C.D|<0-4294967295>) nssa {translator-role (candidate|always|never)| stabilityinterval < 0-2147483647>|no-redistribution|default-information-originate (metric < 0-16777214>|metric-type <1-2>|metric <0-16777214> metric-type <1-2>|metric-type< 1-2> metric <0-16777214>|)|no-summary}
no area (A.B.C.D|<0-4294967295>) nssa
no area (A.B.C.D|<0-4294967295>) nssa {translator-role|stability-interval|no-redistribution |default-information-originate (route-map |) |no-summary}
Parameters
A.B.C.D
OSPF Area ID in IPv4 address format.
<0-4294967295>
OSPF Area ID as a decimal value.
translator-role
 
NSSA-ABR translator role
candidate
Translate NSSA-LSA to Type-5 LSA if router is elected.
never
Do not translate NSSA-LSA to Type-5 LSA.
always
Always translate NSSA-LSA to Type-5 LSA.
stability-interval
 
Stability timer for a NSSA area. If an elected translator determines its services are no longer required, it continues to perform its duties for this time interval. This minimizes excess flushing of translated Type-7 LSAs and provides a more stable translator transition.
<0-2147483647>
 
Stability interval in seconds.
no-redistribution
Do not redistribute into the NSSA.
default-information-originate
 
Originate Type-7 default LSA into the NSSA.
metric
Specify metric for default routes.
<0-16777214>
 
Specify metric value.
metric-type
Specify metric type (see RFC 3101).
<1-2>
Specify metric type:
1: Type 1 external route
2: Type 2 external route
route-map
OSPF default Route map reference.
WORD
Pointer to route-map entries.
no-summary
Do not inject inter-area routes into the NSSA.
Default
No default value is specified
Command Mode
Router mode
Applicability
This command was introduced before OcNOS version 1.3.
Examples
(config)#router ospf 100
(config-router)#area 3 nssa translator-role candidate no-redistribution default-information-originate metric 34 metric-type 2
area range
Use this command to summarize OSPF routes at an area boundary. A single summary route is then advertised to other areas by the Area Border Routers (ABRs). Routing information is condensed at area boundaries and outside the area. If the network numbers in an area are assigned in a way such that they are contiguous, the ABRs can be configured to advertise a summary route that covers all the individual networks within the area that fall into the specified range.
Use the no parameter with this command to disable this function.
Command Syntax
area (A.B.C.D|<0-4294967295>) range (A.B.C.D/M | A.B.C.D A.B.C.D)
area (A.B.C.D|<0-4294967295>) range (A.B.C.D/M | A.B.C.D A.B.C.D) non-advertise
area (A.B.C.D|<0-4294967295>) range A.B.C.D A.B.C.D non-advertise
no area (A.B.C.D|<0-4294967295>) range (A.B.C.D/M | A.B.C.D A.B.C.D)
no area (A.B.C.D|<0-4294967295>) range (A.B.C.D/M | A.B.C.D A.B.C.D) not-advertise
Parameters
A.B.C.D
Area range prefix or length e.g. X.X.X.X/length
A.B.C.D
Area range prefix e.g. A.B.C.D
<0-4294967295>
OSPF Area ID as a decimal value.
A.B.C.D/M
The area range prefix and length.
not-advertise
Does not advertise this range.
Default
Range is advertised by default.
Command Mode
Router mode
Applicability
This command was introduced before OcNOS version 1.3.
Examples
#configure terminal
(config)#router ospf 100
(config-router)#area 1 range 192.16.0.0/24
 
(config)#router ospf 100
(config-router)#no area 1 range 192.16.0.0/24
 
 
area shortcut
Use this command to configure the short-cutting mode of an area. An area shortcut enables traffic to go through the non-backbone area with a lower metric whether or not an ABR router is attached to the backbone area.
Use the no form of this command to disable this function.
Command Syntax
area (A.B.C.D|<0-4294967295>) shortcut (default|enable|disable)
no area (A.B.C.D|<0-4294967295>) shortcut
Parameters
A.B.C.D
OSPF Area ID in IPv4 address format.
<0-4294967295>
OSPF Area ID as a decimal value.
default
Sets default short-cutting behavior.
enable
Forces short-cutting through the area.
disable
Disables short-cutting through the area.
Command Mode
Router mode
Applicability
This command was introduced before OcNOS version 1.3.
Examples
#configure terminal
(config)#router ospf 100
(config-router)#area 1 shortcut default
(config)#router ospf 100
(config-router)#area 52 shortcut disable
(config)#router ospf 100
(config-router)#no area 42 shortcut
area stub
Use this command to define an area as a stub area. There are two stub area router configuration commands: the stub and default-cost commands. In all routers attached to the stub area, configure the area by using the stub option of the area command. For an area border router (ABR) attached to the stub area, use the area default-cost command.
Use the no-summary parameter with this command to define a totally stubby area. Define an area as a totally stubby area when routers in the area do not need to learn about summary LSAs from other areas.
Use the no form of this command to disable this function.
Command Syntax
area (A.B.C.D|<0-4294967295>) stub
area (A.B.C.D|<0-4294967295>) stub no-summary
no area (A.B.C.D|<0-4294967295>) stub
no area (A.B.C.D|<0-4294967295>) stub no-summary
Parameters
A.B.C.D
OSPF Area ID in IPv4 address format.
<0-4294967295>
OSPF Area ID as a decimal value.
no-summary
Stops an ABR from sending summary link advertisements into the stub area.
Default
By default, no stub area is defined.
Command Mode
Router mode
Applicability
This command was introduced before OcNOS version 1.3.
Examples
#configure terminal
(config)#router ospf 100
(config-router)#area 1 stub no-summary
area virtual-link
Use this command to configure a link between two backbone areas that are physically separated through other non-backbone area.
In OSPF, all non-backbone areas must be connected to a backbone area. If the connection to the backbone is lost, the virtual link repairs the connection. Configure virtual links between any two backbone routers that have an interface to a common non-backbone area. The protocol treats these routers joined by a virtual link as if they were connected by an unnumbered point-to-point network.
Configure the hello-interval to be the same for all routers attached to a common network. A short hello-interval results in the router detecting topological changes faster but also an increase in the routing traffic. The retransmit-interval is the expected round-trip delay between any two routers in a network. Set the value to be greater than the expected round-trip delay to avoid needless retransmissions.
The transmit-delay is the time taken to transmit a link state update packet on the interface. Before transmission, the link state advertisements in the update packet, are incremented by this amount. Set the transmit-delay to be greater than zero. Also, take into account the transmission and propagation delays for the interface. Include the transit area ID and the corresponding virtual link neighbor’s router ID in each virtual link neighbor to properly configure a virtual link.
Use the no parameter with this command to remove a virtual link.
Command Syntax
area (A.B.C.D|<0-4294967295>) virtual-link A.B.C.D
area (A.B.C.D|<0-4294967295>) virtual-link A.B.C.D authentication (message-digest|null|)
area (A.B.C.D|<0-4294967295>) virtual-link A.B.C.D authentication-key LINE
area (A.B.C.D|<0-4294967295>) virtual-link A.B.C.D message-digest-key <1-255> md5 LINE
area (A.B.C.D|<0-4294967295>) virtual-link A.B.C.D {dead-interval <1-65535>|hello-interval <1-65535>|retransmit-interval <1-3600>|transmit-delay <1-3600>}
area (A.B.C.D|<0-4294967295>) virtual-link A.B.C.D {fall-over bfd}
no area (A.B.C.D|<0-4294967295>) virtual-link A.B.C.D
no area (A.B.C.D|<0-4294967295>) virtual-link A.B.C.D authentication
no area (A.B.C.D|<0-4294967295>) virtual-link A.B.C.D authentication-key
no message-digest-key <1-255>
no area (A.B.C.D|<0-4294967295>) virtual-link A.B.C.D {dead-interval |hello-interval |retransmit-interval |transmit-delay }
no area (A.B.C.D|<0-4294967295>) virtual-link A.B.C.D {fall-over bfd}
Parameters
A.B.C.D
OSPF Area ID in IPv4 address format.
<0-4294967295>
OSPF Area ID as a decimal value.
A.B.C.D
Specify IP address of the virtual link neighbor.
authentication
Enable authentication on this virtual link
message-digest
 
Cryptographic authentication.
null
Null authentication.
authentication-key
 
Set authentication key.
LINE
Authentication key ID of 8 characters.
message-digest-key
 
Set message digest key.
<1-255>
Set message digest key.
md5
Specify the MD5 key.
LINE
MD5 key.
dead-interval
The interval during which no packets are received and after which the router acknowledges a neighboring router as off-line.
<1-65535>
The interval in seconds. The default is 40 seconds.
hello-interval
The interval the router waits before it sends a hello packet.
<1-65535>
The interval in seconds. The default is 10 seconds.
retransmit-interval
 
The interval the router waits before it retransmits a packet.
<1-3600>
The interval in seconds. The default is 5 seconds.
transmit-delay
The interval the router waits before it transmits a packet.
<1-3600>
The interval in seconds. The default is 1 second
fall-over
Specify fall-over detection.
bfd
Bidirectional Forwarding Detection (BFD)
Default
Default intervals:
Dead interval : 40 seconds
Hello interval: 10 seconds
Retransmit interval: 5 seconds
Transmit delay: 1 second
Command Mode
Router mode
OcNOS version 1.3
This command was introduced before OcNOS version 1.3.
Examples
#configure terminal
(config)#router ospf 100
(config-router)#area 1 virtual-link 10.10.11.50 hello 5 dead 10
 
The below example shows the differences between with and without encrypted passwords.
0x - Already encrypted password
WORD - Authentication key (without encryption, ie doesn’t begin with 0x)
(config-router)#area 0.0.0.1 virtual-link 2.2.2.2 authentication authentication-key 0x1234567891234567
 
(config-router)#area 0.0.0.1 virtual-link 2.2.2.2 authentication authentication-key test
auto-cost reference bandwidth
Use this command to control how OSPF calculates the default metric for the interface.
Use the no form of this command to assign cost based only on the interface bandwidth.
Command Syntax
auto-cost reference-bandwidth <1-4294967>
no auto-cost reference-bandwidth
Parameters
<1-4294967>
The reference bandwidth in Mbps per second. The default is 100 Mbps.
Default
By default, OSPF calculates the OSPF metric for an interface by dividing the reference bandwidth by the interface bandwidth. The default value for the reference bandwidth is 100Mbps. The auto-cost command is used to differentiate high bandwidth links. For multiple links with high bandwidth, specify a larger reference bandwidth value to differentiate cost on those links.
Command Mode
Router mode
Applicability
This command was introduced before OcNOS version 1.3.
Examples
#configure terminal
(config)#router ospf 100
(config-router)#auto-cost reference-bandwidth 50
 
(config)#router ospf 100
(config-router)#no auto-cost reference-bandwidth
bfd all-interfaces
Use this command to enable Bidirectional Forwarding Detection (BFD) on all interfaces.
Use the no form of this command to disable BFD.
Command Syntax
bfd all-interfaces
no bfd all-interfaces
Parameters
None
Default
No default value is specified
Command Mode
Router mode
Applicability
This command was introduced before OcNOS version 1.3.
Examples
#configure terminal
(config)#router ospf 100
(config-router)#bfd all-interfaces
 
(config)#router ospf 100
(config-router)#no bfd all-interfaces
capability cspf
Use this command to enable the CSPF (Constrained Shortest Path First) feature for an OSPFv2 or OSPFv3 instance.
Use the no parameter with this command to disable CSPF functionality for the OSPFv2 or OSPFv3 instance.
Command Syntax
capability cspf
no capability cspf
Parameters
None
Default
By default, CSPF functionality for the OSPFv2 or OSPFv3 instance is enabled.
Command Mode
Router mode
Applicability
This command was introduced before OcNOS version 1.3.
Examples
#configure terminal
(config)#router ospf 100
(config-router)#capability cspf
 
(config)#router ospf 100
(config-router)#no capability cspf
capability lls
Use this command to enable link-local signaling feature on OSPF router.
Use no parameter to disable link-local signaling feature on OSPF router.
Command Syntax
capability lls
no capability lls
Parameters
None
Default
By default, capability lls is enabled
Command Mode
Router mode
Applicability
This command was introduced before OcNOS version 1.3.
Examples
#configure terminal
(config)#router ospf 100
(config-router)#capability lls
 
(config-router)#no capability lls
 
capability opaque
Use this command to enable opaque-LSAs which are Type 9, 10 and 11 LSAs that deliver information used by external applications.
Use the no form of this command to disable the feature.
Command Syntax
capability opaque
no capability opaque
Parameters
None
Default
By default, opaque-LSA is enabled.
Command Mode
Router mode
Applicability
This command was introduced before OcNOS version 1.3.
Examples
#configure terminal
(config)#router ospf 100
(config-router)#capability opaque
 
(config)#router ospf 100
(config-router)#no capability opaque
capability restart
Use this command to enable OSPF graceful restart or restart signaling. If a router is not restart-enabled, it cannot enter graceful restart mode and act as a helper.
Use the no parameter with this command to disable the features.
Command Syntax
capability restart graceful
no capability restart graceful
Parameters
graceful
Specify enabling OSPF graceful restart feature.
Default
By default, OSPF graceful restart or restart signaling is enabled.
Command Mode
Router mode
Applicability
This command was introduced before OcNOS version 1.3.
Examples
#configure terminal
(config)#router ospf 100
(config-router)#capability restart graceful
 
(config)#router ospf 100
(config-router)#no capability restart graceful
capability traffic-engineering
Use this command to enable traffic engineering feature on OSPF router.
Use no parameter to disable traffic engineering feature on OSPF router.
Command Syntax
capability traffic-engineering
no capability traffic-engineering
Parameters
None
Default
No default value is specified
Command Mode
Router mode
Applicability
This command was introduced before OcNOS version 1.3.
Examples
#configure terminal
(config)#router ospf
(config-router)#capability traffic-engineering
 
(config-router)#no capability traffic-engineering
capability vrf-lite
Use this command to apply multi-VRF capability to OSPF process or to decouple the PE router from the VPN backbone.
Use no parameter to deny multi-VRF capability to OSPF process or to avoid decoupling the PE router from the VPN backbone.
Command Syntax
capability vrf-lite
no capability vrf-lite
Parameters
None
Default
No default value is specified
Command Mode
Router mode
Applicability
This command was introduced before OcNOS version 1.3.
Examples
#configure terminal
(config)#router ospf
(config-router)#capability vrf-lite
 
(config-router)#no capability vrf-lite
 
clear ip ospf
Use this command to clear and restart all OSPF routing processes or a given OSPF routing process.
Command Syntax
clear ip ospf (<0-65535>|) process
Parameter
<0-65535>
Specify the process ID.
Command Mode
Privileged Exec Mode
Applicability
This command was introduced before OcNOS version 1.3.
Examples
#clear ip ospf process
#clear ip ospf 555 process
compatible rfc1583
Use this command to restore the method used to calculate summary route costs per RFC.
RFC 1583 specified a method for calculating the metrics for summary routes based on the minimum metric of the component paths available. RFC 2328 specifies a method for calculating metrics based on maximum cost. With this change, it is possible that all of the ABRs in an area might not be upgraded to the new code at the same time. This command addresses this issue and allows the selective disabling of RFC 2328 compatibility.
Use the no parameter with this command to disable RFC 1583 compatibility.
Command Syntax
compatible rfc1583
no compatible rfc1583
Parameters
None
Default
By default, OSPF is RFC 2328 compatible
Command Mode
Router mode
Applicability
This command was introduced before OcNOS version 1.3.
Examples
#configure terminal
(config)#router ospf 100
(config-router)#compatible rfc1583
 
(config)#router ospf 100
(config-router)#no compatible rfc1583
debug ospf
Use this command to specify debugging options for OSPF.
Use the no parameter with this command to disable this function.
Command Syntax
debug ospf (all|bfd|database-timer|events|ifsm|lsa|nfsm|nsm| packet|route|sr|)
debug ospf rib ({interface|redistribute}|)
no debug ospf (all|bfd|database-timer|events|ifsm|lsa|nfsm|nsm| packet|route|sr|)
no debug all ospf
no debug all
no debug ospf rib ({interface|redistribute}|)
Parameters
all
Enable or disable debugging for ifsm, nsfm, lsa, nsm, events, and route.
bfd
Debug Bidirectional Forwarding Detection (BFD)
database-timer
 
Debug OSPF rate-limiting values for LSA throttling (see debug ospf database-timer rate-limit)
events
Debug OSPF events information (see debug ospf events)
ifsm
Debug OSPF Interface State Machine (see debug ospf ifsm)
lsa
Debug OSPF Link State Advertisement (see debug ospf lsa)
nfsm
Debug OSPF Neighbor State Machine (see debug ospf nfsm)
nsm
Debug OSPF NSM information (see debug ospf nsm)
packet
Debug OSPF packets (see debug ospf packet)
route
Debug OSPF route information (see debug ospf route)
rib
Debug OSPF RIB information
sr
Debug OSPF segment routing information
interface
Debug OSPF RIB interface
redistribute
Debug OSPF RIB redistribute
Command Mode
Privileged Exec mode and Configure mode
Applicability
This command was introduced before OcNOS version 1.3.
Examples
#debug ospf all
 
#debug ospf bfd
#no debug ospf bfd
debug ospf database-timer rate-limit
Use this command to log when link-state advertisement (LSA) rate-limiting timers will expire. These messages are logged only when debug ospf lsa generate or debug ospf lsa refresh is enabled
Use the no parameter with this command to disable this function.
Command Syntax
debug ospf database-timer rate-limit
no debug ospf database-timer rate-limit
Parameters
None
Command Mode
Privileged Exec mode and Configure mode
Applicability
This command was introduced before OcNOS version 1.3.
Examples
#debug ospf database-timer rate-limit
 
 
debug ospf events
Use this command to specify debugging options for OSPF event troubleshooting. Use this command without parameters to turn on all the options.
Use the no parameter with this command to disable this function.
Command Syntax
debug ospf events ({abr|asbr|lsa|nssa|os|router|vlink}|)
no debug ospf events ({abr|asbr|lsa|nssa|os|router|vlink}|)
Parameters
abr
Debug OSPF ABR events.
asbr
Debug ASBR events.
lsa
Debug LSA events.
nssa
Debug NSSA events.
os
Debug OS interaction events.
router
Debug other router events.
vlink
Debug virtual link events.
Command Mode
Privileged Exec mode and Configure mode
Applicability
This command was introduced before OcNOS version 1.3.
Examples
#no debug ospf event abr
#debug ospf event asbr
#debug ospf event lsa
#no debug ospf event nssa
#debug ospf event os
#debug ospf event router
#debug ospf event vl
debug ospf ifsm
Use this command to specify debugging options for OSPF Interface Finite State Machine (IFSM) troubleshooting.
Use the no parameter with this command to disable this function.
Command Syntax
debug ospf ifsm ({events|status|timers}|)
no debug ospf ifsm ({events|status|timers}|)
Parameters
events
Debug IFSM event information
status
Debug IFSM status information
timers
Debug IFSM timer information
Command Mode
Privileged Exec mode and Configure mode
Applicability
This command was introduced before OcNOS version 1.3.
Examples
#no debug ospf ifsm events
#debug ospf ifsm status
#debug ospf ifsm timers
debug ip ospf graceful-restart
Use this command to specify debugging option for OSPF graceful restart.
Use the no parameter with this command to disable this function.
Command Syntax
debug ip ospf graceful-restart (detail|terse|)
no debug ip ospf graceful-restart (detail|terse|)
Parameters
detail
Debug OSPF graceful restart detail information
terse
Debug OSPF graceful restart summary information
Command Mode
Privileged Exec mode and Configure mode
Applicability
This command was introduced before OcNOS version 1.3.
Examples
#debug ip ospf graceful-restart detail
 
debug ip ospf lfa
Use this command to specify the debugging options for OSPFv2 Loop-free Alternate path
Use the no parameter with this command to disable this function.
Command Syntax
debug ip ospf lfa
no debug ip ospf lfa
Parameters
None
Command Mode
Privileged Exec mode and Configure mode
Applicability
This command was introduced before OcNOS version 1.3.
Examples
#debug ip ospf lfa
 
debug ip ospf redist
Use this command to display debugging option for OSPF redistribute information
Use the no parameter with this command to disable this function.
Command Syntax
debug ip ospf redist (detail|terse|)
no debug ip ospf redist (detail|terse|)
Parameters
detail
Debug OSPF redistribute detail information
terse
Debug OSPF redistribute summary information
Command Mode
Privileged Exec mode and Configure mode
Applicability
This command was introduced before OcNOS version 1.3.
Examples
#debug ip ospf redistribute detail
 
debug ip ospf retransmission
Use this command to display debug logs of OSPF retransmission information.
Use the no parameter with this command to disable this function.
Command Syntax
debug ip ospf retransmission
no debug ip ospf retransmission
Parameters
None
Command Mode
Privileged Exec mode and Configure mode
Applicability
This command was introduced before OcNOS version 1.3.
Examples
#debug ip ospf retransmission
 
debug ospf lsa
Use this command to specify debugging options for OSPF Link State Advertisements (LSA) troubleshooting.
Use the no parameter with this command to disable this function.
Command Syntax
debug ospf lsa ({flooding|generate|install|maxage|refresh}|)
no debug ospf lsa ({flooding|generate|install|maxage|refresh}|)
Parameters
flooding
Debug LSA flooding.
generate
Debug LSA generation.
install
Debug LSA installation.
maxage
Debug the maximum age processing.
refresh
Debug LSA refresh.
Command Mode
Privileged Exec mode and Configure mode
Applicability
This command was introduced before OcNOS version 1.3.
Examples
#no debug ospf lsa refresh
#debug ospf lsa flooding
#debug ospf lsa install
#debug ospf lsa maxage
#debug ospf lsa generate
debug ospf nfsm
Use this command to specify debugging options for OSPF Neighbor Finite State Machines (NFSMs).
Use the no parameter with this command to disable this function.
Command Syntax
debug ospf nfsm ({events|status|timers}|)
no debug ospf nfsm ({events|status|timers}|)
Parameters
events
Debug NFSM event information
status
Debug NFSM status information
timers
Debug NFSM timer information
Command Mode
Privileged Exec mode Configure mode
Applicability
This command was introduced before OcNOS version 1.3.
Examples
#debug ospf nfsm events
#no debug ospf nfsm timers
debug ospf nsm
Use this command to specify debugging options for OSPF NSM information.
Use the no parameter with this command to disable this function.
Command Syntax
debug ospf nsm ({interface|redistribute}|)
no debug ospf nsm ({interface|redistribute}|)
Parameters
interface
Debug NSM interface information.
redistribute
Debug NSM redistribute information.
Command Mode
Privileged Exec mode and Configure mode
Applicability
This command was introduced before OcNOS version 1.3.
Example
The debug ospf nsm command enables the display of debug information related to NSM.
#debug ospf nsm interface
#no debug ospf nsm redistribute
debug ospf packet
Use this command to specify debugging options for OSPF packets.
Use the no parameter with this command to disable this function.
Command Syntax
debug ospf packet ({hello|dd|ls-request|ls-update|ls-ack|send|recv|detail}|)
no debug ospf packet ({hello|dd|ls-request|ls-update|ls-ack|send|recv|detail}|)
Parameters
hello
Debug OSPF hello packets.
dd
Debug OSPF database.
ls-request
Debug OSPF link state requests.
ls-update
Debug OSPF link state updates.
ls-ack
Debug OSPF link state acknowledgments.
send
Debug OSPF sent packets.
recv
Debug OSPF received packets.
detail
Debug OSPF detailed information.
Command Mode
Privileged Exec mode and Configure mode
Applicability
This command was introduced before OcNOS version 1.3.
Examples
#debug ospf packet detail
#debug ospf packet dd send detail
#no debug ospf packet ls-request recv detail
debug ospf rib
Use this command to display debug information about the interaction between the OSPF process and the Routing Information Base (RIB).
Use no parameter of this command to disable debugging output.
Command Syntax
debug ospf rib ({interface|redistribute}|)
no debug ospf rib ({interface|redistribute}|)
debug ip ospf redistribute
no debug ip ospf redistribute
Parameters
interface
Debug RIB interface information.
redistribute
Debug RIB redistribute information.
Command Mode
Privileged Exec mode and Configure mode
Applicability
This command was introduced before OcNOS version 1.3.
Example
#debug ospf rib interface
#no debug ospf rib redistribute
debug ospf route
Use this command to debug route calculation. Use this command without parameters to turn on all the options.
Use the no parameter with this command to disable this function.
Command Syntax
debug ospf route ({ase|ia|install|spf}|)
no debug ospf route ({ase|ia|install|spf}|)
Parameters
ase
Debug OSPF external route calculation.
ia
Debug OSPF Inter-Area route calculation.
install
Debug OSPF route installation.
spf
Debug OSPF SPF calculation.
Command Mode
Privileged Exec mode and Configure mode
Applicability
This command was introduced before OcNOS version 1.3.
Examples
#debug ospf route
#no debug ospf route ia
#debug ospf route install
default-information originate
Use this command to create a default external route into an OSPF routing domain.
Use the no parameter with this command to disable this feature.
The system acts like an Autonomous System Boundary Router (ASBR) when you use the default-information originate command to redistribute routes into an OSPF routing domain. An ASBR does not by default generate a default route into the OSPF routing domain.
When you give the default-information originate command, also specify a route-map to avoid a dependency on the default network in the routing table.
Command Syntax
default-information originate
default-information originate {metric <0-16777214>|metric-type (1|2)|?route-map WORD|always}
no default-information originate
no default-information originate {metric|metric-type|?route-map|always}
Parameters
always
Used to advertise the default route regardless of whether there is a default route.
metric
Sets the OSPF metric used in creating the default route.
<0-16777214>
 
Sets the OSPF metric used in creating the default route. The default metric value is 10. The value used is specific to the protocol.
metric-type
The external link type associated with the default route advertised into the OSPF routing domain (see RFC 3101).
1
Sets OSPF External Type 1 metric.
2
Sets OSPF External Type 2 metric (default).
route-map
Route map.
WORD
Specify the name of route map.
Default
Sets the OSPF metric used in creating the default route. The default metric value is 10.
The value used is specific to the protocol. metric-type The external link type associated with the default route advertised into the OSPF routing domain (see RFC 3101).
By default, 2 Sets OSPF External Type 2 metric.
Command Mode
Router mode
Applicability
This command was introduced before OcNOS version 1.3.
Examples
#configure terminal
(config)#router ospf 100
(config-router)#default-information originate always metric 23 metric-type 2 route-map myinfo
 
(config)#router ospf 100
(config-router)#no default-information originate metric metric-type route-map
default-metric
Use this command to set a default metric for OSPF.
A default metric facilitates redistributing routes with incompatible metrics. If the metrics do not convert, the default metric provides an alternative. Use this command to use the same metric value for all redistributed routes. Use this command in conjunction with the redistribute command.
Use the no parameter with this command to return to the default state.
Command Syntax
default-metric <1-16777214>
no default-metric
Parameters
<1-16777214>
Default metric value.
Default
Built-in, automatic metric translations, as appropriate for each routing protocol.
Command Mode
Router mode
Applicability
This command was introduced before OcNOS version 1.3.
Examples
#configure terminal
(config)#router ospf 100
(config-router)#default-metric 100
distance
Use this command to set OSPF administrative distances.
The administrative distance rates the trustworthiness of a routing information source. A higher distance value means a lower trust rating. For example, an administrative distance of 255 means that the routing information source cannot be trusted and should be ignored.
Use the no form of this command to restore the default value (110).
Command Syntax
distance <1-255>
distance <1-255> A.B.C.D/M (WORD|)
distance ospf {intra-area <1-255>|inter-area <1-255>|external <1-255>}
no distance <1-255>
no distance <1-255> A.B.C.D/M (WORD|)
no distance ospf {intra-area |inter-area |external}
Parameters
<1-255>
Used alone, this parameter specifies a default administrative distance used when no other specification exists for a routing information source.
intra-area
Routes within an area.
<1-255>
Distance for all routes within an area
inter-area
Routes from one area to another area.
<1-255>
Distance for all routes from one area to another area.
external
Routes from other routing domains learned by redistribution.
<1-255>
Distance for routes from other routing domains learned by redistribution.
A.B.C.D/M
Distance for routes to prefixes whose nexthop matches this address.
WORD
Name of access list to apply to route updates.
Default
By default, distance for each type of route (intra-, inter-, or external) is 110
Command Mode
Router mode
Applicability
This command was introduced before OcNOS version 1.3.
Examples
#configure terminal
(config)#router ospf 100
(config-router)#distance ospf inter-area 20 intra-area 10 external 40
distribute-list
Use this command to filter networks in routing updates. This command redistributes other routing protocols into the OSPF routing table.
Use the no parameter with this command to disable this function.
Command Syntax
distribute-list WORD out (kernel|connected|static|rip|bgp|isis|ospf (<0-65535>|))
distribute-list WORD in
no distribute-list WORD out (kernel|connected|static|rip|bgp|isis|ospf (<0-65535>|))
no distribute-list WORD in
Parameters
WORD
Specify the name of the access list.
in
Filter incoming routing updates.
out
Filter outgoing routing updates.
kernel
Specify kernel routes.
connected
Specify connected routes.
static
Specify static routes.
rip
Specify RIP routes.
bgp
Specify BGP routes.
isis
Specify IS-IS routes.
ospf
Specify OSPF process.
<0-65535>
Specify OSPF process ID <1-65535>. If not specified, this command redistribute OSPF instance with process ID 0.
Default
No default value is specified
Command Mode
Router mode
Applicability
This command was introduced before OcNOS version 1.3.
Examples
The following example shows the distribution of BGP routing updates based on the access list list1 (network 172.10.0.0).
#configure terminal
(config)#access-list list1 permit 172.10.0.0
(config)#router ospf 100
(config-router)#distribute-list list1 out bgp
(config-router)#redistribute bgp
enable db-summary-opt
Use this command to enable the database summary list optimization for OSPFv2.
When this feature is enabled, the database exchange process is optimized by removing the LSA from the database summary list for the neighbor, if the LSA instance in database summary list is the same as or less recent than the listed LSA in the database description packet received from the neighbor.
Use the no form of this command to disable database summary list optimization.
Command Syntax
enable db-summary-opt
no enable db-summary-opt
Parameters
None
Default
By default, database summary list optimization for OSPFv2 is disabled
Command Mode
Router mode
Applicability
This command was introduced before OcNOS version 1.3.
Examples
#configure terminal
(config)#router ospf
(config-router)#enable db-summary-opt
(config-router)#no enable db-summary-opt
fast-reroute keep-all-paths
Use this command to enable fast rerouting on all OSPF interfaces.
Use the no parameter with this command to disable fast rerouting.
Command Syntax
fast-reroute keep-all-paths
no fast-reroute keep-all-paths
Parameters
None
Defaults
By default, fast rerouting is disabled
Command Mode
Router mode
Applicability
This command was introduced before OcNOS version 1.3.
Examples
#configure terminal
(config)#router ospf 200
(config-router)#fast-reroute keep-all-paths
fast-reroute tie-break
Use this command to set the tie-breaking policy for selecting a fast reroute repair path. You assign a priority to each type of repair path.
Use the no parameter with this command to set the tie-breaking policy for a specific type of repair path to its default priority. To set all types of repair paths to their default priorities, do not specify a repair path with the no form of this command.
Command Syntax
fast-reroute tie-break (primary-path|interface-disjoint|node-protecting|broadcast-interface-disjoint) index <1-10>
no fast-reroute tie-break
no fast-reroute tie-break (primary-path|interface-disjoint|node-protecting|broadcast-interface-disjoint) index <1-10>
Parameters
primary-path
Use a path from the Equal-Cost Multipath Path (ECMP) set. An ECMP found during the primary shortest path first (SPF) repair might not be desirable in networks where traffic exceeds the capacity of any single link.
interface-disjoint
 
Do not select point-to-point interfaces that have no alternate next hop for rerouting if the primary gateway fails, thus protecting the interface.
node-protecting
 
Bypass the primary-path gateway router which might not protect the router that is the next hop in the primary path.
broadcast-interface-disjoint
 
Do not use the interface if connected to a broadcast network. Repair paths protect links when a repair path and a protected primary path use different next-hop interfaces. However, on broadcast interfaces, if the repair path is computed via the same interface as the primary path, but their next-hop gateways are different, the router is protected but the link might not be.
index
Tie break priority. A lower value has higher preference.
<1-10>
Range of priority values.
Defaults
By default, LFA backup path is calculated based on interface-disjoint.
The default priority scheme is:
1. primary-path
2. interface-disjoint
3. node-protecting
4. broadcast-interface-disjoint
Command Mode
Router mode
Applicability
This command was introduced before OcNOS version 1.3.
Examples
#configure terminal
(config)#router ospf 200
(config-router)#fast-reroute tie-break interface-disjoint index 1
host area
Use this command to configure a stub host entry belonging to a particular area.
Using this command, you can advertise specific host routes in the router-LSA as stub link. Since stub host belongs to the specified router, specifying cost is not important.
Use the no form of this command to remove the host area configuration.
Command Syntax
host A.B.C.D area (A.B.C.D|<0-4294967295>)
host A.B.C.D area (A.B.C.D|<0-4294967295>) cost <0-65535>
no host A.B.C.D area (A.B.C.D|<0-4294967295>)
no host A.B.C.D area (A.B.C.D|<0-4294967295>) cost
Parameters
A.B.C.D
Specify IP address of the host.
area
Set the OSPF area ID
A.B.C.D
OSPF Area ID in IPv4 address format.
<0-4294967295>
 
OSPF Area ID as a decimal value.
cost
Specify cost for stub host entry.
<0-65535>
Specify cost for stub host entry.
Default
No host entry is configured
Command Mode
Router mode
Applicability
This command was introduced before OcNOS version 1.3.
Examples
#configure terminal
(config)#router ospf 100
(config-router)#host 172.16.10.100 area 1
(config-router)#host 172.16.10.101 area 2 cost 10
ip ospf authentication
Use this command to send and receive OSPF packets with the specified authentication method on the current interface.
Use the no parameter with this command to disable the authentication.
Command Syntax
ip ospf authentication (null|message-digest|)
ip ospf A.B.C.D authentication (null|message-digest|)
no ip ospf (A.B.C.D|) authentication
Parameters
A.B.C.D
The IP address of the interface.
null
Use no authentication.
message-digest
Use message digest authentication.
Default
No default value is specified
Command Mode
Interface mode
Applicability
This command was introduced before OcNOS version 1.3.
Examples
In this example, interface eth0 is configured to have no authentication. This will override any text or MD5 authentication configured on this interface.
#configure terminal
(config)#interface eth0
(config-if)#ip ospf authentication null
ip ospf authentication-key
Use this command to specify an OSPF authentication password for neighboring routers.
This command creates a password (key) that is inserted into the OSPF header when OcNOS originates packets. Assign a separate password to each network for different interfaces. All neighboring routers on the same network with the same password exchange OSPF routing data.
The key can be used only when authentication is enabled for an area with the area authentication command.
Simple password authentication allows a password to be configured for each area. Configure the routers in the same routing domain with the same password.
Use the no parameter with this command to remove an OSPF authentication password.
Command Syntax
ip ospf (A.B.C.D|) authentication-key WORD
no ip ospf (A.B.C.D|) authentication-key
Parameters
A.B.C.D
The IP address of the interface.
authentication-key
Specify the authentication password.
WORD
Specify the OSPF Encrypted password (key) of 8 bytes.
Default
By default, no password used when exchanging OSPF routing data
Command Mode
Interface mode
Applicability
This command was introduced before OcNOS version 1.3.
Examples
In the following example, an authentication key test is created on interface eth0 in area 0. Note that first authentication is enabled for area 0.
#configure terminal
(config)#router ospf 100
(config-router)#network 10.10.10.0/24 area 0
(config-router)#area 0 authentication
(config-router)#exit
(config)#interface eth0
(config-if)#ip ospf 3.3.3.3 authentication-key test
 
OcNOS#sh run int xe1
!
interface xe1
ip ospf authentication
ip ospf authentication-key 0x94eebee8c349a4b0
!
(config)#int xe1
(config-if)#ip ospf authentication-key 0x94eebee8c349a4b0 - encrypted password of 16 characters which can be obtained from sh run <int>
 
ip ospf bfd
Use this command to enable Bidirectional Forwarding Detection (BFD).
Use this command with either the no or disable parameter to disable BFD.
Command Syntax
ip ospf bfd (disable|)
no ip ospf bfd (disable|)
Parameters
disable
Specify to disable BFD.
Default
By default, ip ospf bfd is disabled
Command Mode
Interface mode
Applicability
This command was introduced before OcNOS version 1.3.
Examples
#configure terminal
(config)#interface eth0
(config-if)#ip ospf bfd
ip ospf cost
Use this command to explicitly specify the cost of the link-state metric in a router-LSA.
The interface cost indicates the overhead required to send packets across an interface. This cost is stated in the Router-LSA’s link. The cost is inversely proportional to the bandwidth of an interface. By default, the cost of an interface is calculated based on the bandwidth (108/ bandwidth). Use this command to set the cost manually.
Use the no parameter with this command to reset the cost to its default value.
Command Syntax
ip ospf (A.B.C.D|) cost <1-65535>
no ip ospf (A.B.C.D|) cost
Parameters
A.B.C.D
The IP address of the interface.
<1-65535>
Specify the link-state metric.
Default
By default, the cost of an interface is calculated based on the bandwidth (108/ bandwidth). The default cost value is 10.
Command Mode
Interface mode
Applicability
This command was introduced before OcNOS version 1.3.
Examples
The following example shows setting the cost as 10 on interface eth0 for IP address 10.10.10.50.
#configure terminal
(config)#interface eth0
(config-if)#ip ospf 10.10.10.50 cost 10
ip ospf database-filter
Use this command to turn on the LSA database-filter for a particular interface.
OSPF floods new LSAs over all interfaces in an area, except the interface on which the LSA arrives. This redundancy ensures robust flooding. However, too much redundancy can waste bandwidth and might lead to excessive link and CPU usage in certain topologies, resulting in destabilizing the network. To avoid this, use this command to block flooding of LSAs over specified interfaces.
Use the no parameter with this command to turn off the filter.
Command Syntax
ip ospf (A.B.C.D|) database-filter all out
no ip ospf (A.B.C.D|) database-filter
Parameters
A.B.C.D
The IP address of the interface.
Default
Disabled, all outgoing LSAs are flooded to the interface.
Command Mode
Interface mode
Applicability
This command was introduced before OcNOS version 1.3.
Examples
#configure terminal
(config)#interface eth0
(config-if)#ip ospf database-filter all out
ip ospf dead-interval
Use this command to set the interval during which the router waits to receive an OSPF hello packet from the neighbor before declaring the neighbor down. This value is advertised in the router’s hello packets. It must be a multiple of hello-interval and be the same for all routers on a specific network.
Use the no parameter with this command to return to the default time. If you have configured this command specifying the IP address of the interface and want to remove the configuration, use the no parameter with the specified IP address (no ip ospf dead-interval A.B.C.D).
Command Syntax
ip ospf (A.B.C.D|) dead-interval <1-65535>
no ip ospf (A.B.C.D|) dead-interval
Parameters
A.B.C.D
The IP address of the interface.
dead-interval
Specify the interval.
<1-65535>
Specify the interval in seconds.
Default
By default, dead interval is 40 seconds
Command Mode
Interface mode
Applicability
This command was introduced before OcNOS version 1.3.
Examples
The following example shows configuring dead-interval for 10 seconds on eth0 interface.
#configure terminal
(config)#interface eth0
(config-if)#ip ospf dead-interval 10
ip ospf disable
Use this command to completely disable OSPF packet processing on an interface.
This command overrides the network command.
Use the no option with this command to return to the default setting.
Command Syntax
ip ospf disable all
no ip ospf disable all
Parameters
None
Default
By default, this feature is disabled
Command Mode
Interface mode
Applicability
This command was introduced before OcNOS version 1.3.
Example
#configure terminal
(config)#interface eth0
(config-if)#ip ospf disable all
ip ospf fast-reroute per-prefix candidate disable
Use this command to prohibit the interface from being used as the next hop in a repair path.
Use the no option with this command to use the interface as the next hop in a repair path.
Command Syntax
ip ospf fast-reroute per-prefix candidate disable
no ip ospf fast-reroute per-prefix candidate disable
Parameters
None
Default
No default value is specified
Command Mode
Interface mode
Applicability
This command was introduced before OcNOS version 1.3.
Example
#configure terminal
(config)#interface eth0
(config-if)#ip ospf fast-reroute per-prefix candidate disable
ip ospf flood-reduction
Use this command to enable flood reduction on an interface. When this command is configured, an LSA sent out on the interface is set with the DNA bit in the LSA age field. The LSA is not refreshed every refresh interval if there is no change in LSA. Only changed LSAs are sent out on the interface
Use the no option with this command to disable flood reduction on an interface.
Command Syntax
ip ospf flood-reduction
no ip ospf flood-reduction
Parameters
None
Default
By default, flood reduction on an interface is disabled
Command Mode
Interface mode
Applicability
This command was introduced before OcNOS version 1.3.
Example
#configure terminal
(config)#interface eth1
(config-if)#ip ospf flood-reduction
 
(config-if)#no ip ospf flood-reduction
ip ospf hello-interval
Use this command to specify the interval between hello packets.
The hello-interval is advertised in the hello packets. Configure the same hello-interval for all routers on a specific network. A shorter hello interval ensures faster detection of topological changes but results in more routing traffic.
Use the no parameter with this command to return to the default time.
Command Syntax
ip ospf (A.B.C.D|) hello-interval <1-65535>
no ip ospf (A.B.C.D|) hello-interval
Parameters
A.B.C.D
The IP address of the interface.
hello-interval
Specify the interval.
<1-65535>
Specify the interval in seconds.
Default
By default, hello interval is 10 seconds
Command Mode
Interface mode
Applicability
This command was introduced before OcNOS version 1.3.
Examples
The following example shows setting the hello-interval for 3 seconds on interface eth0.
#configure terminal
(config)#interface eth0
(config-if)#ip ospf hello-interval 3
ip ospf multi-area
Use this command to enable multi-area adjacency on point-to-point network and other network types. Multi-area adjacency establishes adjacency between the Area Border Routers (ABRs). The interface of the ABR where this command is configured, shall be associated with multiple areas.
Use the no parameter to disable multi-area adjacency on the given interface on point-to-point network.
Command Syntax
ip ospf <0-65535> multi-area (A.B.C.D|<0-4294967295>)(neighbor A.B.C.D |)
no ip ospf <0-65535> multi-area (A.B.C.D|<0-4294967295>)
no ip ospf <0-65535> multi-area (A.B.C.D|<0-4294967295>) neighbor
Parameters
<0-65535>
OSPF process ID.
A.B.C.D
OSPF area ID in IP address format.
<0-4294967295>
OSPF area ID as a decimal value.
A.B.C.D
Neighbor IP address.
Note: The neighbor parameter is mandatory to create redundant Multi-Area adjacencies in one Area.
Default
By default, multi-area adjacency is disabled
Command Mode
Interface mode
Applicability
This command was introduced before OcNOS version 1.3.
Examples
#configure terminal
(config)#interface eth1
(config-if)#ip ospf 0 multi-area 1
 
(config-if)#no ip ospf 0 multi-area 1
ip ospf message-digest-key
Use this command to register an MD5 key for OSPF authentication.
Use the no parameter with this command to remove an MD5 key.
Message Digest Authentication is cryptographic authentication. A key (password) and key-id are configured on each router. The router uses an algorithm based on the OSPF packet, the key, and the key-id to generate a message digest that is appended to the packet.
Use this command for uninterrupted transitions between passwords. This is helpful for administrators who want to change the OSPF password without disrupting communication. The system begins a rollover process until all the neighbors have adopted the new password. This allows neighboring routers to continue communication while the network administrator is updating them with a new password. The router will stop sending duplicate packets once it detects that all of its neighbors have adopted the new password.
Maintain only one password per interface, removing the old password whenever you add a new one. This prevents the local system from continuing to communicate with the system that is using the old password. Removing the old password also reduces overhead during rollover. All neighboring routers on the same network must have the same password value to enable exchange of OSPF routing data.
Command Syntax
ip ospf (A.B.C.D|) message-digest-key <1-255> md5 WORD
no ip ospf (A.B.C.D|) message-digest-key <1-255>
Parameters
A.B.C.D
IPv4 address of the interface.
message-digest-key
 
Specify a key ID.
<1-255>
Specify a key ID.
md5
Specify a key (password).
WORD
Specify an encrypted password (key).
Default
By default, MD5 key for OSPF authentication is disabled.
Command Mode
Interface mode
Applicability
This command was introduced before OcNOS version 1.3.
Examples
The following example shows OSPF authentication on the interface eth0 when IP address has not been specified.
#configure terminal
(config)#interface eth0
(config-if)#ip ospf authentication message-digest
(config-if)#ip ospf message-digest-key 1 md5 yourpass
 
(config-if)#sh run int xe1
 
!
 
interface xe1
 
ip ospf authentication
 
ip ospf authentication-key 0x94eebee8c349a4b0
 
ip ospf message-digest-key 1 md5 0x94eebee8c349a4b0
 
!
 
(config-if)#ip ospf message-digest-key 1 md5 0x94eebee8c349a4b0 - encrypted password of 16 characters which can be obtained from sh run <int>
The following example shows OSPF authentication on the interface eth0 for the IP address 1.1.1.1. (If the interface has two IP addresses assigned-- 1.1.1.1 & 2.2.2.2, OSPF authentication will be enabled only for the IP address 1.1.1.1)
(config)#interface eth0
(config-if)#ip ospf 1.1.1.1 authentication message-digest
(config-if)#ip ospf 1.1.1.1 message-digest-key 2 md5 yourpass
ip ospf mtu
Use this command to set MTU size for OSPF to construct packets based on this value. Whenever OSPF constructs packets, it uses interface MTU size as Maximum IP packet size. This command forces OSPF to use the specified value overriding the actual interface MTU size.
This command does not configure the MTU settings in the kernel. OSPF does not recognize MTU size changes made in the kernel until the MTU size is updated through this command.
Use the no parameter with this command to return to the default value.
Command Syntax
ip ospf mtu <576-65535>
no ip ospf mtu
Parameters
mtu
Specify an MTU size.
<576-65535>
Specify an MTU size.
Default
By default, OSPF uses interface MTU derived from the kernel.
Command Mode
Interface mode
Applicability
This command was introduced before OcNOS version 1.3.
Examples
#configure terminal
(config)#interface eth0
(config-if)#ip ospf mtu 1480
ip ospf mtu-ignore
Use this command to configure OSPF so that it does not check the MTU size during DD (Database Description) exchange.
Use the no form of this command to make OSPF check the MTU size during DD exchange.
Command syntax
ip ospf (A.B.C.D|) mtu-ignore
no ip ospf (A.B.C.D|) mtu-ignore
Parameters
A.B.C.D
IP address of the interface.
Default
By default, during the DD exchange process, OSPF checks the MTU size described in DD packets received from its neighbor. If the MTU size does not match the interface MTU, the neighbor adjacency is not established. Using this command makes OSPF ignore this check and allows establishing of adjacency regardless of MTU size in the DD packet.
Command Mode
Interface mode
Applicability
This command was introduced before OcNOS version 1.3.
Examples
#configure terminal
(config)#interface eth0
(config-router)#ip ospf mtu-ignore
ip ospf network
Use this command to set the OSPF network type.
Use the no parameter with this command to return to the default value.
Command Syntax
ip ospf network (broadcast|non-broadcast|point-to-multipoint|point-to-point)
ip ospf network point-to-multipoint non-broadcast
no ip ospf network
Parameters
broadcast
Sets the network type to broadcast.
non-broadcast
Sets the network type to NBMA.
point-to-multipoint
 
Sets the network type to point-to-multipoint.
non-broadcast
 
Sets the network type to NBMA.
point-to-point
Sets the network type to point-to-point.
Default
By default, OSPF network type is broadcast
Command Mode
interface mode
Applicability
This command was introduced before OcNOS version 1.3.
Examples
The following example shows setting the network to point-to-point type on the eth0 interface.
#configure terminal
(config)#interface eth0
(config-if)#ip ospf network point-to-point
ip ospf priority
Use this command to set the router priority to determine the designated router (DR) for the network.
A router with the higher router priority becomes the DR. If the priority is the same for two routers, the router with the higher router ID takes precedence.
Only routers with a nonzero priority value are eligible to become the designated or backup designated router. Configure router priority for broadcast or NBMA networks only and not for point-to-point networks.
Use the no parameter with this command to return to the default value.
Command Syntax
ip ospf (A.B.C.D|) priority <0-255>
no ip ospf (A.B.C.D|) priority
Parameters
A.B.C.D
The IP address of the interface.
priority
Specify the router priority of the interface.
<0-255>
Specify the router priority of the interface. The default value is 1.
Default
By default, ip ospf priority is 1
Command Mode
Interface mode
Applicability
This command was introduced before OcNOS version 1.3.
Examples
The following example shows setting the OSPF priority value to 3 on the eth0 interface.
#configure terminal
(config)#interface eth0
(config-if)#ip ospf priority 3
ip ospf retransmit-interval
Use this command to specify the time between link-state advertisement (LSA) retransmissions for adjacencies belonging to the interface.
After sending an LSA to a neighbor, the router keeps the LSA until it receives an acknowledgement. If the router does not receive an acknowledgement during the retransmit interval, it retransmits the LSA. Set the retransmission interval value conservatively to avoid needless retransmission. The interval should be greater than the expected round-trip delay between two routers.
Use the no parameter with this command to return to the default value.
Command Syntax
ip ospf (A.B.C.D|) retransmit-interval <1-3600>
no ip ospf (A.B.C.D|) retransmit-interval
Parameters
A.B.C.D
The IPv4 address of the interface.
retransmit-interval
 
Specify the interval.
<1-3600>
Specify the interval in seconds.
Default
By default, retransmit interval is 5 seconds
Command Mode
Interface mode
Applicability
This command was introduced before OcNOS version 1.3.
Examples
The following example shows setting the ospf retransmit interval to 6 seconds on the eth0 interface.
#configure terminal
(config)#interface eth0
(config-if)#ip ospf retransmit-interval 6
ip ospf transmit-delay
Use this command to set the estimated time it takes to transmit a link-state-update packet on the interface.
The transmit delay value adds a specified time to the age field of an update. If the delay is not added, the time in which the LSA transmits over the link is not considered. This command is especially useful for low speed links. Add transmission and propagation delays when setting the transmit delay value.
Use the no parameter with this command to return to the default value.
Command Syntax
ip ospf (A.B.C.D|) transmit-delay <1-65535>
no ip ospf (A.B.C.D|) transmit-delay
Parameters
A.B.C.D
The IPv4 address of the interface.
transmit-delay
Specify the time to transmit a link-state update.
<1-65535>
Specify the time in seconds to transmit a link-state update.
Default
By default, transmit delay is 1 second
Command Mode
Interface mode
Applicability
This command was introduced before OcNOS version 1.3.
Examples
The following example shows setting the OSPF transmit delay time to 3 seconds on the eth0 interface.
#configure terminal
(config)#interface eth0
(config-if)#ip ospf transmit-delay 3
log-adjacency-changes
Use this command for the router to send a SYSLOG message when an OSPF neighbor goes up or down.
Use no parameter of this command to stop sending SYSLOG message.
Command Syntax
log-adjacency-changes (brief|detail|)
no log-adjacency-changes
Parameters
brief
Sends a SYSLOG message for each state change, not just when a neighbor goes up or down.
detail
Sends a SYSLOG message for each state change, not just when a neighbor goes up or down.
Default
Default option is brief.
Command Mode
Router mode
Applicability
This command was introduced before OcNOS version 1.3.
Examples
#configure terminal
(config)#router ospf 100
(config-router)#log-adjacency-changes
(config-router)#log-adjacency-changes detail
 
(config-router)#no log-adjacency-changes
(config-router)#no log-adjacency-changes detail
 
max-concurrent-dd
Use this command to limit the number of Database Descriptors (DD) that can be processed concurrently.
This command is useful when a router's performance is affected from simultaneously bringing up several OSPF adjacencies. This command limits the maximum number of DD exchanges that can occur concurrently per OSPF instance, thus allowing for all of the adjacencies to come up.
Use the no option with this command to remove the limit.
Command Syntax
max-concurrent-dd <1-65535>
no max-concurrent-dd
Parameters
<1-65535>
Specify the number of DD processes.
Default
By default, max concurrent dd value is 64
Command Mode
Router mode
Applicability
This command was introduced before OcNOS version 1.3.
Examples
The following example set the max-concurrent-dd value to 4.
#configure terminal
(config)#router ospf 100
(config-router)#max-concurrent-dd 4
maximum-area
Use this command to configure the maximum number of OSPF areas.
Use the no parameter with this command to disable the limit.
Command Syntax
maximum-area <1-4294967294>
no maximum-area
Parameters
<1-4294967294>
Specify the maximum number of OSPF areas.
Default
By default, ospf maximum area is 4294967294
Command Mode
Router mode
Applicability
This command was introduced before OcNOS version 1.3.
Examples
#configure terminal
(config)#router ospf 100
(config-router)#maximum-area 5
max-metric
Use this command to advertise a maximum cost i.e 65535 for the LSA's that the router generates. This feature can be configured for in a router-LSA, summary-LSA, external-LSA and stub links.
It also provides support to configure an on-startup time. On-startup time is a one-time event which occurs when the node is up initially. The time configured will be the duration till which the router advertises its LSA’s with the maximum cost.
Based on the metric that is advertised, the neighboring OSPF routers re-trigger their SPF's, and calculate routes that don't pass through the new router.
Use the no parameter with this command to remove the configuration.
Command Syntax
max-metric router-lsa (on-startup (<5-86400>)|) ({ external-lsa (<1-16777215>|) | summary-lsa (<1-16777215>|) | include-stub }|)
no max-metric router-lsa (on-startup |) ({ external-lsa | summary-lsa | include-stub }|)
Parameters
router-lsa router-lsa
external-lsa External LSA max metric. <0-16777215> External LSA max metric
values
include-stub Set the metric of a stub link in the router LSA to the default
max-metric value
on-startup Startup metric values for router LSA
summary-lsa Summary LSA max metric. <0-16777215> Summary LSA max metric
values
Default
No default value.
Command Mode
Router mode
Applicability
This command was introduced before OcNOS version 6.0.0.
Examples
 
OcNOS(config)#router ospf 1
OcNOS(config-router)#max-metric router-lsa summary-lsa 2000 external-lsa 300 include-stub
OcNOS(config-router)#commit
OcNOS(config-router)#
OcNOS(config-router)#do sh run ospf
!
router ospf 1
max-metric router-lsa include-stub external-lsa 300 summary-lsa 2000
redistribute connected
network 100.0.0.0/24 area 0.0.0.0
network 133.0.0.0/24 area 0.0.0.0
!
 
OcNOS(config-router)#no max-metric router-lsa
OcNOS(config-router)#commit
OcNOS(config-router)#do sh run ospf
!
router ospf 1
redistribute connected
network 100.0.0.0/24 area 0.0.0.0
network 133.0.0.0/24 area 0.0.0.0
!
 
OcNOS(config-router)#max-metric router-lsa on-startup 300 external-lsa 200
OcNOS(config-router)#commit
OcNOS(config-router)#
OcNOS(config-router)#do sh run ospf
!
router ospf 1
max-metric router-lsa
max-metric router-lsa on-startup 300 external-lsa 200
redistribute connected
network 100.0.0.0/24 area 0.0.0.0
network 133.0.0.0/24 area 0.0.0.0
!
 
OcNOS(config-router)#no max-metric router-lsa on-startup
OcNOS(config-router)#commit
OcNOS(config-router)#
OcNOS(config-router)#do sh run ospf
!
router ospf 1
max-metric router-lsa
redistribute connected
network 100.0.0.0/24 area 0.0.0.0
network 133.0.0.0/24 area 0.0.0.0
!
neighbor
Use this command to configure OSPF routers interconnecting to NBMA (Non-Broadcast Multi-Access) networks. Include one neighbor entry for each known non-broadcast network neighbor. Configure the neighbor address on the primary address of the interface.
Use the no parameter with this command to remove a configuration.
Command Syntax
neighbor A.B.C.D {cost <1-65535> | priority <0-255>| poll-interval <1-2147483647>}
no neighbor A.B.C.D { cost | priority | poll-interval}
no neighbor A.B.C.D
Parameters
A.B.C.D
Specify the interface IP address of the neighbor.
priority
Specify the router priority of the non-broadcast neighbor associated with the specified IP address.This parameter does not apply to point-to-multipoint interfaces.
<0-255>
Specify the router priority value of the non-broadcast neighbor associated with the specified IP address.
poll-interval
The reduced rate at which routers continue to send hello packets when a neighboring router has become inactive.
<1-2147483647>
 
Dead neighbor polling interval in seconds. Set this value much larger than hello interval.
Default
The default priority is 0 and polling interval is 120 seconds.
Command Mode
Router mode
Applicability
This command was introduced before OcNOS version 1.3.
Examples
This example shows neighbor configured with a priority value and poll interval time.
#configure terminal
(config)#router ospf 100
(config-router)#neighbor 1.2.3.4 priority 1 poll-interval 90
network
Use this command to enable OSPF routing with a specified area ID (and optionally an instance ID) on interfaces with IP addresses that match the specified network address.
OSPF routing is enabled per IPv4 subnet basis. You define the network address using the prefix length or a subnet mask.
Use the no parameter with this command to disable OSPF routing on the interfaces.
Command Syntax
Network address defined using the prefix length:
network A.B.C.D/M area (A.B.C.D|<0-4294967295>) (instance-id <0-255>|)
no network A.B.C.D/M area (A.B.C.D|<0-4294967295>) (instance-id)
Network address defined using subnet mask:
network A.B.C.D A.B.C.D area (A.B.C.D|<0-4294967295>) (instance-id <0-255>|)
no network A.B.C.D A.B.C.D area (A.B.C.D|<0-4294967295>) (instance-id)
Parameters
A.B.C.D/M
IPv4 network address with prefix length.
A.B.C.D
IPv4 network address.
A.B.C.D
Subnet mask where the bits on left side are set to 1 to represent the network part and the bits on the right side are set to 0 to represent the host part.
area
OSPF area ID
A.B.C.D
OSPF area ID in IPv4 address format.
<0-4294967295>
 
OSPF area ID as a decimal value.
instance-id
Instance ID
<0-255>
Instance ID value.
Default
No network area is configured
Command Mode
Router mode
Applicability
This command was introduced before OcNOS version 1.3.
Examples
The following the use of the network command with OSPF multiple-instance support disabled.
#configure terminal
(config-router)#network 10.0.0.0/8 area 3
(config-router)#network 10.0.0.0/8 area 1.1.1.1
The following shows the use of the network command with OSPF multiple-instance support enabled.
(config)#router ospf 100
(config-router)#network 10.0.0.0/8 area 3 instance-id 4
ospf abr-type
Use this command to set an OSPF Area Border Router (ABR) type.
Use the no parameter with this command to revert the ABR type to the default setting (cisco).
Specifying the ABR type allows better functioning in a multi-vendor environment. The ABR types are:
Cisco (RFC 3509): A router is considered an ABR if it has more than one area actively attached and one of them is the backbone area.
IBM (RFC 3509): A router is considered an ABR if it has more than one area actively attached and the backbone area is configured. In this case the configured backbone need not be actively connected.
Standard (RFC 2328): A router is considered an ABR if it has more than one area actively attached to it.
Command Syntax
ospf abr-type (cisco|ibm|standard|shortcut)
no ospf abr-type
Parameters
cisco
Specify an alternative ABR using Cisco implementation. This is the default ABR type.
ibm
Specify an alternative ABR using IBM implementation.
standard
Specify a standard ABR.
shortcut
Shortcut ABR.
Default
By default, ABR type is Cisco
Command Mode
Router mode
Applicability
This command was introduced before OcNOS version 1.3.
Examples
#configure terminal
(config)#router ospf 100
(config-router)#ospf abr-type ibm
ospf area-interface-config-mode
Use this command to attach the interface to the router OSPF area. When this is enabled, any existing configuration of router ospf attached to the interface is erased.
Use no form of this command to disable. When this is disabled, any existing configuration of interface attached to the router ospf is erased.
Command Syntax
ospf area-interface-config-mode
no ospf area-interface-config-mode
Parameters
None
Default
None
Command Mode
Configure mode
Applicability
This command was introduced before OcNOS-OTN version 4.2.
Examples
#configure terminal
(config)#ospf area-interface-config-mode
ospf flood-reduction
Use this command to Enable flood reduction on all OSPF interface. When this command is configured, an LSA sent out on the OSPF interface is set with the DNA bit in the LSA age field. If there is no change in LSA, it is not refreshed every refresh interval. LSAs are sent out on the interface only if there is a change in an LSA
Use the no option with this command to disable flood reduction on all OSPF interfaces.
Command Syntax
ospf flood-reduction
no ospf flood-reduction
Parameters
None
Default
By default, flood reduction on all OSPF interfaces is disabled
Command Mode
Router mode
Applicability
This command was introduced before OcNOS version 1.3.
Examples
#configure terminal
(config)#router ospf 100
(config-router)#ospf flood-reduction
 
(config-router)#no ospf flood-reduction
ospf restart grace-period
Use this command to set the grace period for restarting the router.
If graceful restart is enabled, NSM is notified about the grace period. If the OSPF daemon unexpectedly shuts down, NSM sends this value to the OSPF daemon when it comes up again which uses this value to end the graceful state.
Use the no parameter with this command to revert to the default.
Command Syntax
ospf restart grace-period <1-1800>
no ospf restart grace-period
Parameters
grace-period
Specify the grace period.
<1-1800>
Specify the grace period in seconds.
Default
The default grace period for restarting the OSPF router is 120 seconds.
Command Mode
Configure mode
Applicability
This command was introduced before OcNOS version 1.3.
Examples
#configure terminal
(config)#ospf restart grace-period 250
ospf restart helper
Use this command to configure the helper behavior for graceful restart.
Use the no parameter with this command to revert to default.
Command Syntax
ospf restart helper max-grace-period <2-1800>
ospf restart helper never (router-id A.B.C.D|)
no ospf restart helper never
no ospf restart helper (never router-id (A.B.C.D | all) | max-grace-period|)
Parameters
max-grace-period
 
Help only if received grace-period is less than this value.
<2-1800>
 
Help only if received grace-period is less than this value.
never
Prevent the neighbor from entering helper mode.
router-id
Neighbor to never to act as helper.
A.B.C.D
Router ID of neighbor to never to act as helper.
all
All neighbors to never to act as helper.
Default
By default, router behave as helper. To disable it as helper, ospf restart helper never command should be configured. ospf restart helper max-grace-period – Max-grace-period to function as helper. If not configured, value will be the grace-period in restarting node.
Command Mode
Configure mode
Applicability
This command was introduced before OcNOS version 1.3.
Examples
#configure terminal
(config)#ospf restart helper never router-id 1.1.1.1
 
#configure terminal
(config)#ospf restart helper only-reload max-grace-period 200
 
#configure terminal
(config)#no ospf restart helper never router-id all
ospf router-id
Use this command to specify a router ID for the OSPF process.
Configure each router with a unique router ID. In an OSPF router process which has active neighbors, a new router ID is used at the next reload or when you start the OSPF manually.
Use the no parameter with this command to force OSPF to use the previous router ID.
Command Syntax
ospf router-id A.B.C.D
router-id A.B.C.D
 
no ospf router-id
no router-id (A.B.C.D|)
Parameters
A.B.C.D
Specify the router ID in IPv4 address format.
Default
No default value is specified
Command Mode
Router mode
Applicability
This command was introduced before OcNOS version 1.3.
Examples
The following example shows a specified router ID 2.3.4.5.
#configure terminal
(config)#router ospf 100
(config-router)#ospf router-id 2.3.4.5
overflow database
Use this command to limit the maximum number of LSAs that can be supported by the OSPF instance.
Use the no parameter with this command to have an unlimited number of LSAs.
Command Syntax
overflow database <0-4294967294> (hard|soft|)
no overflow database
Parameters
<0-4294967294>
 
The maximum number of LSAs
hard
Shutdown occurs if the number of LSAs exceeds the specified value.
soft
Warning message appears if the number of LSAs exceeds the specified value.
Default
No default value is specified. unlimited number of LSAs.
Command Mode
Router mode
Applicability
This command was introduced before OcNOS version 1.3.
Examples
The following example shows setting the database overflow to 5 and shutting down in that event.
#configure terminal
(config)#router ospf 100
(config-router)#overflow database 5 hard
overflow database external
Use this command to limits the number of AS-external-LSAs a router can receive once it is in the wait state.
Use the no parameter with this command to revert to default.
Command Syntax
overflow database external <0-2147483647> <0-65535>
no overflow database external
Parameters
<0-2147483647>
The maximum number of LSAs. This value should be the same on all routers in the AS.
<0-65535>
The number of seconds the router waits before trying to exit the database overflow state. If this parameter is 0, the router exits the overflow state only after an explicit administrator command.
Default
The default OSPF exit overflow interval is 0 second and number of external LSDB limit is unlimited.
Command Mode
Router mode
Applicability
This command was introduced before OcNOS version 1.3.
Examples
The following example shows setting the maximum number of LSAs to 5 and the time to recover from overflow state to be 3.
#configure terminal
(config)#router ospf 100
(config-router)#overflow database external 5 3
passive-interface
Use this command to suppress sending Hello packets on all interfaces or on a specified interface.
This command configures OSPF on simplex Ethernet interfaces. Since a simplex interface represents only one network segment between two devices, configure the transmitting interface as a passive interface. This ensures that OSPF does not send hello packets for the transmitting interface. Both the devices can see each other via the hello packet generated for the receiving interface.
Use the no form with this command to resume sending hello packets on all interfaces, or on a specified interface.
Note: The command passive-interface alone configures all interfaces as non-passive.
Command Syntax
passive-interface
passive-interface IFNAME (enable|)
passive-interface IFNAME A.B.C.D (enable|)
no passive-interface
no passive-interface IFNAME
no passive-interface IFNAME A.B.C.D
Parameters
enable
Enable passive interface
IFNAME
The name of the interface.
A.B.C.D
IPv4 address of the interface.
Default
The default OSPF exit overflow interval is 0 second and number of external LSDB limit is 100000.
Command Mode
Router mode
Applicability
This command was introduced before OcNOS version 1.3.
Examples
(config)#router ospf 100
(config-router)#passive-interface eth0 enable
redistribute
This command redistributes routes from a routing protocol, static route, and kernel route into an OSPF routing table.
Use the no parameter with this command to disable this function.
Command Syntax
redistribute (connected|static|rip|bgp|isis|ospf (<1-65535>|)) {metric <0-16777214>|metric-type (1|2)|?route-map WORD|tag <0-4294967295>}
no redistribute (connected|static|rip|bgp|isis|ospf (<1-65535>|)) metric|metric-type|?route-map|tag}
Parameters
connected
Specify connected routes.
static
Specify static routes.
rip
Specify RIP routes.
bgp
Specify BGP routes.
isis
Specify IS-IS routes.
ospf
Specify OSPF process.
<1-65535>
Specify an OSPF process ID to redistribute a particular OSPF instance into another OSPF instance. If not specified, this command redistribute OSPF instance with process ID 0.
metric
Specify the external metric.
<0-16777214>
 
Specify the external metric.
metric-type
Specify the external metric-type (see RFC 3101):
1
Set OSPF External Type 1 metrics.
2
Set OSPF External Type 2 metrics.
route-map
Specify a route map reference.
WORD
Specify name of the route-map.
tag
Tag value to use as a “match” value for controlling redistribution via route maps
<0-4294967295>
 
Specify the route tag.
Default
No default value is specified
Command Mode
Router mode
Applicability
This command was introduced before OcNOS version 1.3.
Examples
(config)#router ospf 100
(config-router)#redistribute bgp metric 12
The following example shows redistributing OSPF instance 2 into OSPF instance 1.
#configure terminal
(config)#router ospf 1
(config-router)#redistribute ospf 2
The following example shows redistributing OSPF instance 2 into OSPF instance 1, with an external metric of 10, metric type 1, a route-map named rmp1, and an external route tag of 3.
#configure terminal
(config)#router ospf 1
(config-router)#redistribute ospf 2 metric 10 metric-type 1 route-map rmp1 tag 3
 
restart ip ospf graceful
Use this command to restart OSPF gracefully.
After this command is executed, the router immediately shuts down. NSM is notified that OSPF has shut down gracefully. NSM preserves routes installed by OSPF until the grace period expires.
Command Syntax
restart ip ospf graceful (grace-period <2-1800>|)
Parameters
grace-period
Specify a grace period.
<2-1800>
Specify a grace period in seconds.
Default
By default, restart ospf graceful is disabled. Default value of grace-period is 120 seconds.
Command Mode
Privileged Exec mode and Exec mode
Applicability
This command was introduced before OcNOS version 1.3.
Examples
#restart ip ospf graceful grace-period 200
router ospf
Use this command to enter router mode and to configure an OSPF routing process.
Specify the process ID to configure multiple instances of OSPF. When running a single instance of OSPF, you do not need to specify a process ID.
Use the no parameter with this command to terminate an OSPF routing process.
Note: The CSPF database is maintained globally within OSPF. Removing any OSPF instance from a multi-instance setup impacts all CSPF LSP sessions and disrupts all ingress sessions. As a result, it is possible to restore only those sessions that still have a valid path after removing the OSPF instance.
Command Syntax
router ospf
router ospf <1-65535>
 
no router ospf
no router ospf <1-65535>
Parameters
<1-65535>
Process ID; should be unique for each routing process.
Default
No routing process defined
Command Mode
Configure mode
Applicability
This command was introduced before OcNOS version 1.3.
Examples
This example shows the use of the router ospf command to enter router mode. Note the change in the prompt.
#configure terminal
(config)#router ospf 100
(config-router)#
show debugging ospf
Use this command to display the set OSPF debugging option.
Command Syntax
show debugging ospf
Parameters
None
Command Mode
Privileged Exec mode
Applicability
This command was introduced before OcNOS version 1.3.
Example
This is a sample output from the show debugging ospf command. Some lines in this output wrap around, they might not wrap around in the actual display.
#show debugging ospf
OSPF debugging status:
OSPF packet Link State Update debugging is on
OSPF all events debugging is on
show ip ospf
Use this command to display general information about all OSPF routing processes.
Command Syntax
show ip ospf (<0-65535>|)
Parameters
<0-65535>
The ID of the router process for which information will be displayed. If this parameter is specified, only the information for the specified routing process is displayed.
Command Mode
Privileged Exec mode
Applicability
This command was introduced before OcNOS version 1.3.
Examples
#show ip ospf 1
Routing Process "ospf 1" with ID 4.1.1.1
Process uptime is 1 minute
Process bound to VRF default
Conforms to RFC2328, and RFC1583 Compatibility flag is disabled
Supports only single TOS(TOS0) routes
Supports opaque LSA
Supports Graceful Restart
This router is an ASBR (injecting external routing information)
SPF schedule delay min 0 secs 500 msecs
SPF schedule delay max 50 secs 0 msecs
Refresh timer 10 secs
Number of incomming current DD exchange neighbors 0/5
Number of outgoing current DD exchange neighbors 0/5
Initial LSA throttle delay 10 secs 0 msecs
Minimum hold time for LSA throttle 20 secs 0 msecs
Maximum wait time for LSA throttle 45 secs 0 msecs
Minimum LSA arrival 1 secs 0 msecs
Number of external LSA 5. Checksum 0x010632
Number of opaque AS LSA 0. Checksum 0x000000
Number of non-default external LSA 5
External LSA database is unlimited.
Number of LSA originated 6
Number of LSA received 0
Number of areas attached to this router: 1
Area 0 (BACKBONE)
Number of interfaces in this area is 1(1)
Number of fully adjacent neighbors in this area is 0
Area has no authentication
SPF algorithm last executed 00:00:47.558 ago
SPF algorithm executed 2 times
Number of LSA 1. Checksum 0x0041e0
OSPF Routing Process Fields
Table 1-13 explains the routing process fields.
 
Table 1-13: show ip ospf output details 
Field
Description
Routing Process with ID
OSPF process identifier and router identifier.
Process is not up
OSPF process is not running.
Process uptime is
OSPF process running time.
Process bound to VRF
VRF name
Router is in Graceful Restart
When in graceful restart.
Router is in Restart Signaling
When in restart signalling.
Bidirectional Forwarding Detection is configured
When BFD is enabled.
Conforms to RFC2328, and RFC1583 Compatibility flag is enabled
RFC compatibility.
Supports only single TOS (TOS0) routes
OSPF TOS-based routing was never deployed.
Supports opaque LSA
When opaque LSAs are supported.
Do not support Restarting
When restart is not supported.
Supports Graceful Restart
Method of restart in process.
Supports Restart Signaling
Method of restart in signaling process.
This router is an ABR, ABR Type is
Type of ABR:
Standard (RFC2328)
Alternative Cisco (RFC3509)
Alternative IBM (RFC3509)
Alternative Shortcut
This router is an ASBR (injecting external routing information)
Type of router function in the process.
SPF schedule delay initial
Initial SPF schedule delay.
SPF schedule delay min
Minimum delay between receiving a change to SPF calculation.
SPF schedule delay max
Maximum delay between receiving a change to SPF calculation.
Refresh timer
LSA refresh interval.
Number of incoming current DD exchange neighbors
Incoming neighbor Database Descriptors and maximum concurrent DDs.
Number of outgoing current DD exchange neighbors
Outgoing neighbor Database Descriptors and maximum concurrent DDs.
Initial LSA throttle delay
Initial delay for the generation of LSAs.
Minimum hold time for LSA throttle
Minimum hold time between generation of the same LSA.
Maximum wait time for LSA throttle
Maximum wait time between generation of the same LSA.
Minimum LSA arrival
Minimum time between reception of new LSAs during flooding.
Number of external LSA
Number of AS external LSAs and checksum.
Number of opaque AS LSA
Number of AS opaque LSAs and checksum.
Number of non-default external LSA
For database overflow, number of non-default external LSAs.
External LSA database is unlimited
When the external LSA database is unlimited.
External LSA database limit
Maximum number of LSAs in database.
Exit database overflow state interval is
Exit database overflow state interval.
Exit database overflow state interval is not configured
When the exit database overflow state interval is not set.
OSPF is [not] in database overflow state now
Whether OSPF is in database overflow state now.
Next attempt to exit database overflow state in
How long until OSPF tries to exit the database overflow state.
LSDB database overflow limit
Maximum number of LSAs that can be supported by the OSPF instance.
LSDB exceed overflow limit
Whether OSPF is exceeding the maximum number of LSAs.
Number of LSA originated
LSAs originated by the OSPF instance.
Number of LSA received
LSAs received by the OSPF instance.
Number of areas attached to this router
As stated
Next fields are repeated for each area
As stated
Area
Area identifier.
(BACKBONE)
Area is a backbone.
no-summary
Area is a stub and does no import summaries.
(Inactive)
Area is not active.
Number of interfaces in this area is
Number of interfaces in this area.
Number of fully adjacent neighbors in this area
As stated.
Number of fully adjacent virtual neighbors through this area
As stated.
Area has no authentication
Area does not use authentication.
Area has simple password authentication
Area uses password authentication.
Area has message digest authentication
Area uses MD5 authentication.
SPF algorithm last executed
As stated.
SPF algorithm executed
As stated.
Number of LSA
Number of LSAs in area link-state database and checksum.
End of area field
As stated.
NSSA Translator Role is
candidate: Translate Type-7 LSAs to Type-5 if router is elected.
never: Do not translate Type-7 LSAs to Type-5.
always: Always translate Type-7 LSAs to Type-5.
NSSA Translator State is
disabled: Router is not a border router.
enabled: Router is a border router.
elected: Router has been elected to be an NSSA translator.
Stability Interval
If an elected translator determines its services are no longer required, how long it continues to perform its services.
Number of NSSA Translator Events
As stated.
Shortcutting mode
Shortcut ABR that installs inter-area routes through non-backbone areas if non-backbone paths are really better:
 
Default
Enabled
Disabled
S-bit consensus
Whether other ABR agrees on S-bit:
 
ok
no
Dste Status
Whether DSTE is enabled or disabled.
 
show ip ospf border-routers
Use this command to display the ABRs and ASBRs for OSPF instances.
Command Syntax
show ip ospf (<0-65535>|) border-routers
Parameters
<0-65535>
The ID of the router process for which information will be displayed.
Command Mode
Privileged Exec mode
Applicability
This command was introduced before OcNOS version 1.3.
Example
This is a sample output from the show ip ospf border-routers command.
#show ip ospf border-routers
OSPF process 1 internal Routing Table
Codes: i - Intra-area route, I - Inter-area route
i 10.15.0.1 [10] via 10.10.0.1, eth0, ASBR, Area 0.0.0.0
i 172.16.10.1 [10] via 10.10.11.50, eth1, ABR, ASBR, Area 0.0.0.0
Border Router Fields
Table 1-14 explains the border router fields.
 
Table 1-14: border router output details
Field
Description
Code
i: Intra-area route
I: Inter-area route
Router ID
Router identifier of the destination
Cost
Cost of using this route.
via
Next hop IP address toward the destination.
is directly connected
Destination is directly connected.
Interface
Outgoing interface name.
Type
Router type of the destination: ABR or ASBR.
through Transit Area
Next hop is an area that carries traffic that neither originates nor terminates in the area itself.
Area
Area identifier from which this route was learned.
Transit
Area is a transit area.
show ip ospf database brief
Use this command to display a summary of the OSPF database.
Command Syntax
show ip ospf database (self-originate|max-age|adv-router A.B.C.D|)
show ip ospf <0-65535> database(self-originate|max-age|adv-router A.B.C.D|)
Parameters
self-originate
Self-originated link states.
max-age
LSAs which have reached the maximum age (3600 seconds).
A.B.C.D
IPv4 address of the advertising router.
<0-65535>
ID of the router process
Command Mode
Privileged Exec mode
Applicability
This command was introduced before OcNOS version 1.3.
Examples
#show ip ospf database
OSPF Router process 100 with ID (100.100.100.72)
Router Link States (Area 0.0.0.0)
Link ID ADV Router Age Seq# CkSum Link count
10.100.12.57 10.100.12.57 930 0x80000003 0x90de 2
100.100.100.72 100.100.100.72 933 0x80000004 0x7592 2
Net Link States (Area 0.0.0.0)
Link ID ADV Router Age Seq# CkSum
10.100.10.72 100.100.100.72 933 0x80000001 0x0bef
Summary Link States (Area 0.0.0.0)
Link ID ADV Router Age Seq# CkSum Route
10.60.0.0 10.100.12.57 928 0x80000001 0x5108 10.60.0.0/24
71.87.120.0 10.100.12.57 928 0x80000001 0xc2c5 71.87.120.0/24
127.0.0.1 10.100.12.57 928 0x80000001 0x23fb 127.0.0.1/32
OSPF Database Fields
Table 1-15 explains the fields for each database entry.
 
Table 1-15: ospf database output details
Field
Description
Link ID
The meaning of this field depends on the type of Link-State Advertisement (LSA).
 
Type 1: Router LSA (depends on the type of network to which the router connects):
Point-to-point network: neighbor’s router ID.
Transit network: IP address of the designated router’s interface.
Stub network: IP network or subnet address
Virtual link: Neighbor’s Router ID.
 
Type 2: Network LSA: The IP address of the designated router’s interface.
Type 3: Summary LSA: The IP address of the network or subnet being advertised.
ADV Router
The ID of the router advertising the LSA.
Age
The age of the LSA.
Seq#
The sequence number of the LSA. This number increments each time a new instance of the LSA originates. This update helps other routers identify the most recent instance of the LSA.
CkSum
The fetch checksum of the complete LSA except the Age field.
Link count
Total number of links.
Route
Summary prefix address.
show ip ospf database detail
Use this command to display details of the OSPF database.
Command Syntax
show ip ospf database (asbr-summary|external|network|router|summary|nssa-external|opaque-link|opaque-area|opaque-as) (self-originate|adv-router A.B.C.D|)
show ip ospf <0-65535> database (asbr-summary|external|network|router|summary) (self-originate|adv-router A.B.C.D|)
show ip ospf database (asbr-summary|external|network|router|summary|nssa-external|opaque-link|opaque-area|opaque-as) A.B.C.D (self-originate|adv-router A.B.C.D|)
show ip ospf <0-65535> database (asbr-summary|external|network|router|summary|nssa-external|opaque-link|opaque-area|opaque-as) A.B.C.D (self-originate|adv-router A.B.C.D|)
Parameters
<0-65535>
The ID of the router process for which information should be displayed.
asbr-summary
Type 4 ASBR summary LSAs.
external
Type 5 external LSAs.
network
Type 2 network LSAs.
router
Type 1 router LSAs.
summary
Type 3 summary LSAs.
nssa-external
Type 7 NSSA external LSAs.
opaque-link
Type 9 LSAs which are not flooded beyond the local network.
opaque-area
Type 10 LSAs which are not flooded beyond the borders of their area.
opaque-as
Type 11 LSAs which are flooded throughout the AS.
A.B.C.D
Link state ID as an IP address.
self-originate
Display self-originated link states.
adv-router
Advertising router link states.
A.B.C.D
IPv4 address of advertising router.
Command Mode
Privileged Exec mode
Applicability
This command was introduced before OcNOS version 1.3.
Example: external and self-originate Parameters
This is sample output with the external and self-originate parameters.
#show ip ospf database external self-originate
 
OSPF Router process 100 with ID (10.10.11.50)
 
AS External Link States
LS age: 298
Options: 0x2 (*|-|-|-|-|-|E|-)
LS Type: AS-external-LSA
Link State ID: 10.10.100.0 (External Network Number)
Advertising Router: 10.10.11.50
LS Seq Number: 80000001
Checksum: 0x7033
Length: 36
Network Mask: /24
Metric Type: 2 (Larger than any link state path)
TOS: 0
Metric: 20
Forward Address: 10.10.11.50
External Route Tag: 0
Example: opaque-as and self-originate Parameters
This is sample output with the opaque-as and self-originate parameters.
#show ip ospf database opaque-as self-originate
OSPF Router process 100 with ID (10.10.11.50)
AS-Global Opaque-LSA
LS age: 325
Options: 0x2 (*|-|-|-|-|-|E|-)
LS Type: AS-external Opaque-LSA
Link State ID: 11.10.9.23 (AS-external Opaque-Type/ID)
Opaque Type: 11
Opaque ID: 657687
Advertising Router: 10.10.11.50
LS Seq Number: 80000001
Checksum: 0xb018
Length: 25
Example: adv-router Parameter
This is a sample output with the adv-router parameter.
#show ip ospf database nssa-external adv-router 10.10.11.50
OSPF Router process 100 with ID (10.10.11.50)
NSSA-external Link States (Area 0.0.0.0)
NSSA-external Link States (Area 0.0.0.1 [NSSA])
LS age: 78
Options: 0x0 (*|-|-|-|-|-|-|-)
LS Type: AS-NSSA-LSA
Link State ID: 0.0.0.0 (External Network Number For NSSA)
Advertising Router: 10.10.11.50
LS Seq Number: 80000001
Checksum: 0xc9b6
Length: 36
Network Mask: /0
Metric Type: 2 (Larger than any link state path)
TOS: 0
Metric: 1
NSSA: Forward Address: 0.0.0.0
OSPF Router process 100 with ID (10.10.11.50)
NSSA-external Link States (Area 0.0.0.0)
NSSA-external Link States (Area 0.0.0.1 [NSSA])
LS age: 78
Options: 0x0 (*|-|-|-|-|-|-|-)
LS Type: AS-NSSA-LSA
Link State ID: 0.0.0.0 (External Network Number For NSSA)
Example: router and Link State ID Parameters
This is sample output with the router and link state ID parameters.
#show ip ospf database router 10.10.11.50
OSPF Router process 100 with ID (10.10.11.50)
Router Link States (Area 0.0.0.0)
LS age: 878
Options: 0x2 (*|-|-|-|-|-|E|-)
Flags: 0x3 : ABR ASBR
LS Type: router-LSA
Link State ID: 10.10.11.50
Advertising Router: 10.10.11.50
LS Seq Number: 80000004
Checksum: 0xe39e
Length: 36
Number of Links: 1
Link connected to: Stub Network
(Link ID) Network/subnet number: 10.10.10.0
(Link Data) Network Mask: 255.255.255.0
Number of TOS metrics: 0
TOS 0 Metric: 10
Router Link States (Area 0.0.0.1)
LS age: 877
Options: 0x2 (*|-|-|-|-|-|E|-)
Flags: 0x3 : ABR ASBR
LS Type: router-LSA
Link State ID: 10.10.11.50
Advertising Router: 10.10.11.50
LS Seq Number: 80000003
Example: adv-router Parameter
This is sample output using the adv-router parameter for flood reduction.
#show ip ospf database summary adv-router 10.10.11.50
 
OSPF Router process 100 with ID (10.10.11.50)
Summary Link States (Area 0.0.0.0)
LS age: 1(DoNotAge)
Options: 0x2 (*|-|-|-|-|-|E|-)
LS Type: summary-LSA
Link State ID: 10.10.11.0 (summary Network Number)
Advertising Router: 10.10.11.50
LS Seq Number: 80000001
Checksum: 0x36ac
Length: 28
Network Mask: /24
TOS: 0 Metric: 10
Summary Link States (Area 0.0.0.1)
LS age: 989
Options: 0x2 (*|-|-|-|-|-|E|-)
LS Type: summary-LSA
Link State ID: 10.10.11.0 (summary Network Number)
Advertising Router: 10.10.11.50
LS Seq Number: 80000001
Checksum: 0x36ac
Length: 28
Network Mask: /24
TOS: 0 Metric: 10
 
#show ip ospf database external self-originate
 
OSPF Router process 100 with ID (10.10.11.50)
 
AS External Link States
LS age: 298
Options: 0x2 (*|-|-|-|-|-|E|-)
LS Type: AS-external-LSA
Link State ID: 10.10.100.0 (External Network Number)
Advertising Router: 10.10.11.50
LS Seq Number: 80000001
Checksum: 0x7033
Length: 36
Network Mask: /24
Metric Type: 2 (Larger than any link state path)
TOS: 0
Metric: 20
Forward Address: 10.10.11.50
External Route Tag: 0
 
Database Detail Header Fields
Table 1-16 explains the fields for each database entry.
 
Table 1-16: ospf database detail header fields
Field
Description
LS age
Age of the LSA in seconds. “Do Not Age” is displayed if the DNA bit is set.
Options
LSA options as explained in Table 1-17.
Flags
ABR: Area border router
ASBR: AS boundary router
VL-endpoint: Endpoint of an active virtual link that is using the described area as a transit area
Shortcut: shortcut ABR
NSSA-Translator: NSSA border router with NSSA Translate or State enabled
LS Type
Type of LSA:
 
Router-LSA
Network-LSA
Summary-LSA
ASBR-summary-LSA
AS-external-LSA
AS-NSSA-LSA
Link-Local Opaque-LSA
Area-Local Opaque-LSA
AS-external Opaque-LSA
Link State ID
Identifier of the router described by the LSA.
Opaque Type
Opaque type used to identify the application type of the LSA:
 
9: link-local scope
10: area-local scope
11: LSA flooded throughout the AS
Opaque ID
Identifier used to differentiate LSAs of the same type.
Advertising Router
Identifier of the router that originated the LSA.
LS Seq Number
Sequence number of the LSA. This number increments each time a new instance of the LSA originates. This update helps other routers identify the most recent instance of the LSA.
Checksum
Checksum of the entire LSA, except the LS age field.
Length
Length of the LSA
I LSA
Indication LSA: ASBR set the infinity metric to tell all routers in the backbone not to originate DNA LSAs.
OSPF LSA Option Bits
Table 1-17 explains the fields for each database entry.
 
Table 1-17: ospf LSA option bits output details 
Bit
Description
DN
Used in L3 VPNs. When a route learned from a customer network via OSPF is advertised across a BGP/VPN using Multiprotocol BGP and advertised back to a customer network via OSPF, a loop can happen where the OSPF route is redistributed back to the VPN service provider network via BGP. The DN-bit prevents this type of routing loop. When an OSPF router receives a Type 3, 5, or 7 LSA with the DN-bit set, it foes use that LSA for OSPF route calculations.
O
Originating router supports Type 9, 10, and 11 Opaque LSAs.
DC
Originating router supports OSPF over Demand Circuits.
L
Whether the OSPF packet contains a Link-Local Signaling (LLS) data block. This bit is set only in Hello and database description packets.
N/P
The N-bit is used only in Hello packets when the originating router supports Type-7 NSSA-External-LSAs. Neighboring routers with mismatched N-bit will not form a neighbor relationship. This restriction ensures that all OSPF routers within an area support NSSA capabilities. When the N-bit is set, the E-bit must be 0.
The P-bit is used only in Type-7 NSSA-External-LSA headers. Due to this reason, the N- and P-bits share the same position in the options field. The P (Propagate) bit is set to inform an NSSA ABR to translate Type-7 LSAs into Type-5 LSAs.
MC
Originating router supports multicast extensions to OSPF (MOSPF)
E
Originating router accepts AS External LSAs. The bit is set in all AS External LSAs and in all LSAs originated in the backbone and non-stub areas; and is be set to 0 in all Hellos and LSAs originated within a stub area. Additionally, this bit is used in Hello packets to indicate the capability of a router interface to send and receive Type-5 AS-External-LSAs. Neighboring routers with mismatched E-bit do not form a neighbor relationship. This restriction ensures that all OSPF routers within an area support the stub capabilities.
T
Originating router supports Multitopology OSPF (MT-OSPF.) Older OSPF specifications used this bit when the originating router support TOS-based routing. However, OSPF TOS-based routing was never deployed; therefore the T-bit was never used.
Type 1 Router LSAs (“router” Parameter)
Table 1-18 explains the fields for each database entry.
 
Table 1-18: router LSAs
Field
Description
Number of Links
Number of router links the LSA describes.
Link connected to
Description of the router link:
 
another Router (point-to-point)
a Transit Network
Stub Network
a Virtual Link
(Link ID)
Identifier of the router to which the link connects:
 
Neighboring Router ID
Designated Router address
Network/subnet number
Neighboring Router ID
(Link Data)
Extra information:
 
Router Interface address
Network Mask
Number of TOS metrics
Number of TOS (Type of Service) metrics for this link, not including the metric for TOS 0.
TOS 0 Metric
Cost of using this router link for TOS 0.
Type 2 Net Link States (“network” Parameter)
Table 1-19 explains the fields for each database entry.
 
Table 1-19: net LSAs
Field
Description
Network Mask
IP address mask for the network.
Attached Router
Identifiers of each router attached to the network.
Type 3 Summary LSAs (“summary” Parameter) and Type 4 ASBR Summary LSAs (“asbr-summary” Parameter)
Table 1-20 explains the fields for each database entry.
 
Table 1-20: summary and ASBR summary link states
Field
Description
Network Mask
For Type 3 LSAs, the destination network's IP address mask. Not meaningful for Type 4 link state advertisements.
TOS: 0 Metric
Cost of using this router link for TOS 0.
Type 5 AS External LSAs (“external” Parameter)
Table 1-21 explains the fields for each database entry.
 
Table 1-21: external LSAs
Field
Description
Network Mask
IP address mask for the advertised destination
Metric Type
1: Type 1 external metric that is comparable directly (without translation) to the link state metric
2: Type 2 external metric that is considered larger than any link state path
TOS
Always zero.
Metric
The cost of this route.
Forward Address
Data traffic for the advertised destination is forwarded to this address.
External Route Tag
Custom field attached to each external route whose use is defined by the application.
Type 7 NSSA External Link States (“nssa-external” Parameter)
Table 1-22 explains the fields for each database entry.
 
Table 1-22: NSSA external LSAs
Field
Description
Network Mask
IP address mask for the advertised destination
Metric Type
1: Type 1 external metric that is comparable directly (without translation) to the link state metric
2: Type 2 external metric that is considered larger than any link state path
Metric
The cost of this route.
NSSA: Forward Address
Data traffic for the advertised destination is forwarded to this address.
External Route Tag
Custom field attached to each external route whose use is defined by the application.
 
show ip ospf igp-shortcut-lsp
Use this command to show the IGP shortcut LSP used by OSPF.
Command Syntax
show ip ospf igp-shortcut-lsp
Parameters
None
Command Mode
Exec mode
Applicability
This command was introduced before OcNOS version 1.3.
Example
#show ip ospf igp-shortcut-lsp
Tunnel-endpoint Tunnel-id Tunnel-metric
8.8.8.8 101 2 active
Table 1-23 explains the fields in the output.
 
Table 1-23: show ip ospf igp-shortcut-lsp output details
Field
Description
Tunnel-endpoint
Tunnel endpoint address of ospf.
Tunnel-id
Tunnel address (destination port) for the session.
Tunnel-metric
Number of tunnel-metric.
active/inactive
Whether the tunnel is active or inactive.
 
show ip ospf igp-shortcut-route
Use this command to show the IGP shortcut route calculated by OSPF.
Command Syntax
show ip ospf (<0-65535>|) igp-shortcut-route
Parameters
<0-65535>
ID of the router process.
Command Mode
Exec mode
Applicability
This command was introduced before OcNOS version 1.3.
Example
#show ip ospf igp-shortcut-route
OSPF process 0:
8.8.8.8/32 [2] tunnel-id: 101, 8.8.8.8
15.15.15.15/32 [0] tunnel-id: 101, 8.8.8.8
20.20.15.0/24 [0] tunnel-id: 101, 8.8.8.8
Table 1-24 explains the fields in the output.
 
Table 1-24: show ip igp-shortcut-route output details
Field
Description
OSPF process
OSPF process identifier.
Destination
IP address of the destination port.
Metric
Number of tunnel metric.
Tunnel-ID
Tunnel address (destination port) for the session.
Tunnel-End-Point
Tunnel endpoint address of ospf.
show ip ospf interface
Use this command to display interface information for OSPF.
Command Syntax
show ip ospf interface (IFNAME|)
Parameters
IFNAME
Interface name.
Command Mode
Privileged Exec mode and Exec mode
Applicability
This command was introduced before OcNOS version 1.3.
Example
#show ip ospf interface
eth1 is up, line protocol is up
Internet Address 10.100.10.72/24, Area 0.0.0.0, MTU 1500
Router ID 100.100.100.72, Network Type BROADCAST, Cost: 10, TE Metric 0
Transmit Delay is 1 sec, State DR, Priority 1
   Holddown timer : 50 seconds, Remaining time =  30seconds
Designated Router (ID) 100.100.100.72, Interface Address 10.100.10.72
Backup Designated Router (ID) 10.100.12.57, Interface Address 10.100.10.105
Timer intervals configured, Hello 10, Dead 40, Wait 40, Retransmit 5
Hello due in 00:00:05
Neighbor Count is 1, Adjacent neighbor count is 1
Crypt Sequence Number is 0
Hello received 19 sent 106, DD received 4 sent 3
LS-Req received 1 sent 1, LS-Upd received 3 sent 3
LS-Ack received 2 sent 3, Discarded 0
OSPF Interface Fields
Table 1-25 explains the fields for each interface entry.
 
Table 1-25: OSPF interface output details
Field
Description
Internet address
IP address and subnet mask of the interface.
Area
OSPF area to which the interface belongs.
MTU
Maximum Transmission Unit (MTU) of the interface.
Transmit Delay
Transmit delay of the interface.
Priority
OSPF priority of the interface used for election of Designated Router (DR) and Backup Designated Router (BDR).
Hello
OSPF hello-interval.
Dead
OSPF dead-interval.
Wait
Hello wait-interval.
Retransmit
The period, in seconds, for which the router waits between retransmissions of OSPF packets that have not been acknowledged.
Hello due in
Time period for which router expects to receive hello packet.
Neighbor Count
OSPF neighbor count.
Adjacent neighbor
OSPF adjacent neighbor count.
Crypt Sequence Number
Used for authentication.
Hello received
Number of Hello packets and DD packets sent and received.
LS-Req
Number of LSA requests and LSA updates sent and received.
LS-Ack
Number of LSA acknowledgments sent and received number of LSA acknowledgment discards.
Example: DoNotAge
The following is sample output of this command when DoNotAge is enabled:
#show ip ospf interface eth1
eth1 is up, line protocol is up
Internet Address 1.1.1.1/24, Area 0.0.0.0, MTU 1500
Process ID 0, Router ID 33.33.33.33, Network Type BROADCAST, Cost: 10
Transmit Delay is 1 sec, State Waiting, Priority 1, TE Metric 0
No designated router on this network
No backup designated router on this network
Timer intervals configured, Hello 10, Dead 40, Wait 40, Retransmit 5
Hello due in 00:00:02
Neighbor Count is 0, Adjacent neighbor count is 0
Crypt Sequence Number is 1106347721
Hello received 0 sent 1, DD received 0 sent 0
LS-Req received 0 sent 0, LS-Upd received 0 sent 0
LS-Ack received 0 sent 0, Discarded 0
Reduce LSA flooding
Example: Hello Suppression
The following is sample output of this command when Hello-Suppression is enabled:
#sh ip os interface
p7p1 is up, line protocol is up
Internet Address 14.1.1.2/24, Area 0.0.0.0, MTU 1500
Process ID 1, VRF (default), Router ID 2.2.2.2, Network Type POINTOMULTIPOINT, Cost:
1
Reduce LSA flooding.
Transmit Delay is 1 sec, State Point-To-Point, TE Metric 1
Timer intervals configured, Hello 30, Dead 120, Wait 120, Retransmit 5
Hello due in 00:00:03
Neighbor Count is 1, Adjacent neighbor count is 1
Suppress hello for 1 neighbor(s)
Hello received 5 sent 8, DD received 8 sent 6
LS-Req received 2 sent 2, LS-Upd received 8 sent 9
LS-Ack received 6 sent 6, Discarded 0
No authentication
show ip ospf multi-area-adjacencies
Use this command to display multi-area adjacency information for OSPF.
Command Syntax
show ip ospf (<0-65535>|) multi-area-adjacencies
Parameters
<0-65535>
The ID of the router process for which information should be displayed.
Command Mode
Privileged Exec mode and Exec mode
Applicability
This command was introduced before OcNOS version 1.3.
Example
The following is a sample output of this command:
#show ip ospf 1 multi-area-adjacencies
 
Multi-area-adjacency on interface eth1 to neighbor 20.20.20.10
Internet Address 20.20.20.11/24, Area 0.0.0.1, MTU 1500
Process ID 1, Router ID 10.10.10.10, Network Type POINTOPOINT, Cost: 10
Transmit Delay is 1 sec, State Point-To-Point
Timer intervals configured, Hello 10, Dead 40, Wait 40, Retransmit 5
Hello due in 00:00:02
Neighbor Count is 0, Adjacent neighbor count is 0
Crypt Sequence Number is 1229928206
Hello received 0 sent 513, DD received 0 sent 0
LS-Req received 0 sent 0, LS-Upd received 0 sent 0
LS-Ack received 0 sent 0, Discarded 0
Table 1-26 explains the fields for each adjacency entry.
 
Table 1-26: show ip ospf multi-area-adjacencies output details 
Field
Description
Multi-area-adjacency
Specifies the interface name and the router ID to which it is connected.
Internet Address
As Stated
Area
As Stated
MTU
Maximum Transmission Unit in bytes.
Process ID
The Process Identifier.
Router ID
As Stated
Network Type
In multi-area adjacencies, this is a point-to-point network with the neighbor.
Cost
A reference bandwidth of 100 Mbps for cost calculation. The formula to calculate the cost is reference bandwidth divided by interface bandwidth.
Transmit Delay
A stated
State
As stated
Timer intervals configured
Hello timer = 10, Dead timer = 40, Wait timer = 40, Retransmit timer = 5
Hello due in
Countdown timer for a Hello message from the neighbor.
Neighbor Count
The number of neighbor.
Adjacent neighbor count
The number of neighbors participating in adjacencies.
Crypt Sequence Number
The 32-bit cryptographic sequence number appended on each OSPF protocol packet.
Hello received, sent
Hello packets sent and received.
DD received, sent
Database Description packets sent and received.
LS-Req received, sent
Link State Request packets sent and received.
LS-Upd received, sent
Link State Update packets sent and received.
LS-Ack received, sent, discarded
Link State Acknowledgement packets sent, received, or discarded.
show ip ospf neighbor
Use this command to display information about OSPF neighbors.
Command Syntax
show ip ospf (<0-65535>|) neighbor
show ip ospf (<0-65535>|) neighbor all
show ip ospf (<0-65535>|) neighbor interface A.B.C.D
show ip ospf (<0-65535>|) neighbor A.B.C.D
show ip ospf (<0-65535>|) neighbor A.B.C.D detail
show ip ospf (<0-65535>|) neighbor detail
show ip ospf (<0-65535>|) neighbor detail all
Parameters
<0-65535>
The ID of the router process
all
Include downstatus neighbor
A.B.C.D
IPv4 address
detail
Details of neighbors
Command Mode
Privileged Exec mode and Exec mode
Applicability
This command was introduced before OcNOS version 1.3.
Example
#show ip ospf neighbor
 
Total number of full neighbors: 3
OSPF process 1 VRF(default):
Neighbor ID Pri State Dead Time Address Interface Instance ID
1.1.1.1 1 Full/ - inactive 14.1.1.1 p7p1 0
3.3.3.3 1 Full/ - 00:01:41 15.1.1.2 p8p1 0
3.3.3.3 1 Full/ - inactive 15.1.1.2 VLINK0
OSPF Neighbor Fields
Table 1-27 explains the fields for each neighbor entry.
 
Table 1-27: OSPF neighbor output details
Field
Description
OSPF process
OSPF process identifier.
Neighbor ID
OSPF router identifier of the neighbor.
Pri
OSPF priority of the neighbor.
State
State of the OSPF neighbor:
 
DependUpon: dummy state
 
Down: no OSPF neighbors detected at this instant
 
Attempt: in an NBMA environment, the router sends unicast hello packets every poll interval to the neighbor, from which hellos have not been received within the dead interval
 
Init: hello packet received, but the receiving router's ID was not included in the hello packet
 
2-Way: bi-directional communication established between two routers
 
ExStart: master and slave roles determined
 
Exchange: database description packets (DBD) sent
 
Loading: exchange of LSRs (link state request) and LSUs (link state update) packets
 
Full: routers fully adjacent with each other.
Dead Time
If a new Hello is not received within this duration, the neighbor is declared dead.
Address
IP address of neighbor’s interface attached to the network.
Interface
The interface attached to the network on which the neighbor is located.
Instance ID
Instance identifier for the session.
Example: Detail Parameter
This is sample output from the command when the detail parameter is specified:
#show ip ospf neighbor detail
Neighbor 10.10.10.50, interface address 10.10.10.50
In the area 0.0.0.0 via interface eth0
Neighbor priority is 1, State is Full, 5 state changes
DR is 10.10.10.50, BDR is 10.10.10.10
Options is 0x42 (*|O|-|-|-|-|E|-)
Dead timer due in 00:00:38
Neighbor is up for 00:53:07
Database Summary List 0
Link State Request List 0
Link State Retransmission List 0
Crypt Sequence Number is 0
Thread Inactivity Timer on
Thread Database Description Retransmission off
OSPF Neighbor Detail Fields
Table 1-28 explains the fields for each neighbor detail entry.
 
Table 1-28: OSPF neighbor output detail 
Field
Description
Neighbor
OSPF router identifier of the neighbor.
interface address
IP address of the neighbor interface.
In the area
Area and interface through which the OSPF neighbor is known.
Neighbor priority
OSPF priority of the neighbor.
State
OSPF state as explained in Table 1-27.
state changes
Number of state changes since the neighbor was created.
Hello is suppressed
Hello suppression is enabled.
Poll interval
Poll timer value.
DR is
Router ID of the designated router for the interface.
BDR is
Router ID of the backup designated router for the interface.
Options
LSA options as explained in Table 1-17.
LLS Options
LSDB Resynchronization (LR)
Restart Signal (RS-bit)
Whether link-local signalling (LLS) and out-of-band (OOB) link-state database resynchronization are performed for nonstop forwarding (NSF).
OOB-Resync in progress (receiver)/last OOB-Resync
Last successful OOB resynchronization with the NSF-capable neighbor. The router waits before taking a neighbor adjacency down if the OOB resynchronization has not taken place since the time a restart signal (Hello packet with RS-bit set) was received from the neighbor.
Dead timer due in
Expected time before declaring the neighbor dead.
Poll due in
Poll timer thread.
Neighbor is up for
Time since the neighbor went into the two-way state.
Database Summary List
Number of LSAs in the neighbor’s database.
Link State Request List
Number of LSAs that need to be received from this neighbor to synchronize the neighbors' topological databases.
Link State Retransmission List
Number of advertisements flooded out an adjacency. To ensure flooding is reliable, advertisements are retransmitted until they are acknowledged.
Crypt Sequence Number is
MD5 cryptographic sequence number.
Thread Inactivity Timer
Off if hello suppression is enabled, on otherwise.
Thread Database Description Retransmission
Off if hello suppression is enabled, on otherwise.
Thread Link State Request Retransmission
Off if hello suppression is enabled, on otherwise.
Thread Link State Update Retransmission
Off if hello suppression is enabled, on otherwise.
Thread Poll Timer
Whether the poll timer thread is on.
Bidirectional Forwarding Detection is enabled
Status of BFD, enabled or disabled.
Example: Hello-Suppression Option
This is sample output from the command when the detail parameter is specified and Hello-Suppression is enabled:
#sh ip os neighbor detail
Neighbor 1.1.1.1, interface address 14.1.1.1
In the area 0.0.0.0 via interface p7p1
Neighbor priority is 1, State is Full, 5 state changes
Hello is suppressed
DR is 0.0.0.0, BDR is 0.0.0.0
Options is 0x62 (-|O|DC|-|-|-|E|-)
Dead timer due in inactive
Neighbor is up for 00:05:03
Database Summary List 0
Link State Request List 0
Link State Retransmission List 0
Crypt Sequence Number is 0
Thread Inactivity Timer off
Thread Database Description Retransmission off
Thread Link State Request Retransmission off
Thread Link State Update Retransmission off
 
show ip ospf route
Use this command to display the OSPF routing table.
Command Syntax
show ip ospf (<0-65535>|) route ( A.B.C.D |A.B.C.D/M |summary |)
show ip ospf (<0-65535>|) route ( A.B.C.D |A.B.C.D/M |summary | fast-reroute |)
Parameters
<0-65535>
Router process identifier.
A.B.C.D
Single route.
A.B.C.D/M
Single exact match route.
summary
Route counts.
fast-reroute
Fast-reroute routes.
Command Mode
Privileged Exec mode
Applicability
This command was introduced before OcNOS version 1.3.
Example
#show ip ospf route
OSPF process 10:
Codes: C - connected, D - Discard, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2
C 50.0.0.0/24 [10] is directly connected, eth1, Area 0.0.0.10
C 60.0.0.0/24 [10] is directly connected, eth3, Area 0.0.0.10
OSPF process 15:
Codes: C - connected, D - Discard, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2
C 80.0.0.0/24 [1] is directly connected, eth4, Area 0.0.0.15
Header
Each entry in this table has a code preceding it indicating the source of the routing entry.
Table 1-29 explains the fields of route codes.
 
Table 1-29: route codes
Code
Meaning
Description
C
connected
Routes directly connected to the local device that were not distributed via IGP. The device inherently knows of these networks, so there is no need to learn about these from another device.
Connected routes are preferred over routes for the same network learned from routing protocols.
O
OSPF
Modifiers:
IA - OSPF inter area
N1 - OSPF NSSA external type 1
N2 - OSPF NSSA external type 2
E1 - OSPF external type 1
E2 - OSPF external type 2
D
discard
An ABR or ASBR performing summarization installs a discard route in its routing table for the summarized network range to prevent routing loops where portions of the summarized network range do not have a more specific route in the RIB.
 
External and internal discard route entries are installed by default. During route summarization, routing loops can happen if data sent to a nonexisting network appears to be a part of the summary, and the router doing the summarization has a less specific route that points back to the sending router for the network.
Route Entry Fields
Table 1-30 shows the route entry fields.
 
Table 1-30: route entry output details
Field
Description
Codes
As explained in Table 1-29.
IP address
IP address of the remote network.
Metric
For OSPF the metric is cost, which indicates the best quality path to use to forward packets.
Next hop router IP address
This route is available through the next hop router located at this IP address. This identifies exactly where packets go when they match this route.
Outgoing interface name
Interface used to get to the next-hop address for this route.
Area
OSPF area identifier
Example: Process Identifier
The following is a sample output with the process identifier parameter.
#show ip ospf 10 route
OSPF process 10:
Codes: C - connected, D - Discard, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2
C 50.0.0.0/24 [10] is directly connected, eth1, Area 0.0.0.10
C 60.0.0.0/24 [10] is directly connected, eth3, Area 0.0.0.10
show ip ospf valid
Use this command to display information about opaque LSAs.
Command Syntax
show ip ospf (<0-65535>|) opaque-link valid
Parameters
<0-65535>
The ID of the router process for which information will be displayed.
opaque-link
Displays information about the opaque link-local LSAs.
Command Mode
Privileged Exec mode
Applicability
This command was introduced before OcNOS version 1.3.
Examples
#show ip ospf 1 opaque-link valid
show ip ospf virtual-links
Use this command to display virtual link information.
Command Syntax
show ip ospf (<0-65535>|) virtual-links (brief|)
Parameters
<0-65535>
The ID of the router process for which information will be displayed.
brief
Display summary of OSPF virtual-links.
Command Mode
Privileged Exec mode and Exec mode
Applicability
This command was introduced before OcNOS version 1.3.
Examples
The following is the display of the virtual link information for two routers, one with the virtual link up and one with virtual link down.
ospfd#show ip ospf virtual-links
Virtual Link VLINK0 to router 10.10.0.9 is up
Transit area 0.0.0.1 via interface eth0
Transmit Delay is 1 sec, State Point-To-Point,
Timer intervals configured, Hello 10, Dead 40, Wait 40, Retransmit 5
Hello due in 00:00:02
Adjacency state Full
Virtual Link VLINK1 to router 10.10.0.123 is down
Transit area 0.0.0.1 via interface *
Transmit Delay is 1 sec, State Down,
Timer intervals configured, Hello 10, Dead 40, Wait 40, Retransmit 5
Hello due in inactive
Adjacency state Down
The following is the display of the virtual link information for two routers, one with the virtual link up and one with virtual link down when flood reduction is enabled
ospfd#show ip ospf virtual-links
Virtual Link VLINK0 to router 10.10.0.9 is up
Transit area 0.0.0.1 via interface eth0
Transmit Delay is 1 sec, State Point-To-Point,
Timer intervals configured, Hello 10, Dead 40, Wait 40, Retransmit 5
Hello due in 00:00:02
Adjacency state Full
Virtual Link VLINK1 to router 10.10.0.123 is down
Transit area 0.0.0.1 via interface *
Transmit Delay is 1 sec, State Down,
Timer intervals configured, Hello 10, Dead 40, Wait 40, Retransmit 5
Hello due in inactive
Adjacency state Down
 
DoNotAge LSA Allowed
 
If Hello-Suppression is enabled
M1#sh ip os virtual-links
Virtual Link VLINK0 to router 3.3.3.3 is up
Transit area 0.0.0.1 via interface p8p1
Hello suppression enabled
DoNotAge LSA allowed
Local address 15.1.1.1/32
Remote address 15.1.1.2/32
Transmit Delay is 1 sec, State Point-To-Point,
Timer intervals configured, Hello 10, Dead 40, Wait 40, Retransmit 5
Hello due in inactive
No authentication
Adjacency state Full
M1#
Table 1-31 explains the fields for each virtual-links entry.
 
Table 1-31: show ip ospf virtual-links output details
Field
Description
Virtual Link
Virtual link name, the router ID to which it is connected, and the state of the link.
Transit area
Transit area ID, the interface it uses, and its instance ID – an Instance ID should default to 0. It is only necessary to assign a value other than 0 on those links that will contain multiple separate communities of OSPF routers.
Local address
The local IP address and subnet mask.
Remote address
The remote IP address and subnet mask.
Transmit Delay
The delay, in seconds, between link-state transmits. This value must be the same for all nodes on the network. The range is 0 to 65535. The default is 1. The state is point-to-point.
Timer intervals configured
The configured values in seconds of the following timers: Hello, Dead, Wait, Retransmit.
Hello due in
A countdown timer that indicates when the next Hello packet should arrive.
Adjacency State
Whether the adjacency state is either up or down.
show ip protocols
Use this command to display OSPF process parameters and statistics.
Command Syntax
show ip protocols
show ip protocols ospf
Parameters
None
Command Mode
Privileged Exec mode
Applicability
This command was introduced before OcNOS version 1.3.
Examples
This is an example of the output from the show ip protocols command:
#show ip protocols
Routing Protocol is "ospf 200"
Invalid after 0 seconds, hold down 0, flushed after 0
Outgoing update filter list for all interfaces is
Redistributed kernel filtered by filter1
Incoming update filter list for all interfaces is
Redistributing: kernel
Routing for Networks:
192.30.30.0/24
192.40.40.0/24
Routing Information Sources:
GatewayDistanceLast Update
Distance: (default is 110)
AddressMaskDistance List
Table 1-32 explains the fields for each ip protocol entry.
 
Table 1-32: show ip protocols output details
Field
Description
Routing Protocol is "ospf 200"
Specifies the routing protocol used.
Invalid after 0 seconds
Specifies the value of the invalid parameter.
Hold down 0
Specifies the current value of the hold-down parameter.
Flushed after 0
Specifies the time in seconds after which the individual routing information will be thrown (flushed) out.
Outgoing update
Specifies whether the outgoing filtering list has been set.
Incoming update
Specifies whether the incoming filtering list has been set.
Redistributing
Lists the protocol that is being redistributed.
Routing for Networks
Specifies the networks for which the routing process is currently injecting routes.
Routing Information Sources
Lists all the routing sources the IP Infusion software is using to build its routing table.
 
show ip route fast-reroute
Use this command to display routes with alternate next hops.
Command Syntax
show ip route fast-reroute
Parameters
None
Command Mode
Privileged Exec mode
Applicability
This command was introduced before OcNOS version 1.3.
Examples
#show ip route fast-reroute
shutdown
Use the this command to temporarily shut down a protocol in the least disruptive manner and to notify its neighbors that it is going away.
Use the no parameter of this command.
Command Syntax
shutdown
no shutdown
Parameters
None
Default
No default value is specified
Command Mode
Router mode
Applicability
This command was introduced before OcNOS version 1.3.
Examples
#configure terminal
(config)#router ospf 100
(config-router)#shutdown
 
#configure terminal
(config)#router ospf 100
(config-router)#no shutdown
snmp context-name
Use this command to configure the SNMP context name which will be mapped to each OSPFv2 instance.
When context name is configured OSPF OID will be registered with SNMP to that context.
Use no form of the command to un-map the SNMP context name from OSPFv2 instance and unregister OSPF OID from SNMP.
Note: snmp context-name will not be allowed in default ospf context.
Command Syntax
snmp context-name <WORD>
no snmp context-name <WORD>
Parameters
WORD
snmp context-name mapped to ospf instance. max length is 32
Command Mode
Router OSPF mode
Applicability
This command was introduced before OcNOS version 5.1.
Examples
(config)#router ospf 1
(config-router)#snmp context-name context1
 
snmp restart ospf
Use this command restart SNMP in OSPF
Command Syntax
snmp restart ospf
Parameter
None
Default
By default, SNMP resart is disabled.
Command Mode
Configure mode
Applicability
This command was introduced before OcNOS version 1.3.
Examples
#configure terminal
(config)#snmp restart ospf
 
 
summary-address
Use this command to summarize or suppress external routes with the specified address range.
Use the no option with this command to disable summary address.
An address range is a pairing of an address and a mask that is almost the same as IP network number. For example, if the specified address range is 192.168.0.0/255.255.240.0, it matches 192.168.1.0/24, 192.168.4.0/22, 192.168.8.128/25 and so on.
Redistributing routes from other protocols into OSPF requires the router to advertise each route individually in an external LSA. Use this command to advertise one summary route for all redistributed routes covered by a specified network address and mask. This minimizes the size of the OSPF link state database.
Command Syntax
summary-address (A.B.C.D/M | A.B.C.D A.B.C.D) (not-advertise|tag <0-4294967295>|)
no summary-address (A.B.C.D/M | A.B.C.D A.B.C.D) (not-advertise|tag)
Parameters
A.B.C.D/M
The range of addresses given as IPv4 starting address and a mask.
A.B.C.D
IP summary prefix e.g. i.i.i.i
A.B.C.D
IP summary prefix mask e.g. m.m.m.m
not-advertise
Suppress routes that match the range.
tag
Tag value to use as a “match” value for controlling redistribution via route maps.
<0-4294967295>
 
Set a tag value.
Default
By default, tag value is 0
Command Mode
Router mode
Applicability
This command was introduced before OcNOS version 1.3.
Examples
The following example uses the summary-address command to aggregate external LSAs that match the network 172.16.0.0/24 and assign a tag value of 3.
#configure terminal
(config)#router ospf 100
(config-router)#summary-address 172.16.0.0/16 tag 3
timers lsa arrival
This command sets the minimum interval to accept the same link-state advertisement (LSA) from OSPF neighbors.
Use the no form of this command to restore the default value.
Command Syntax
timers lsa arrival <0-600000>
no timers lsa arrival
Parameters
<0-600000>
The minimum delay in milliseconds between accepting the same LSA from neighbors.
Default
By default, Minimum LSA Arrival timer is 1 sec.
Command Mode
Router mode
Applicability
This command was introduced before OcNOS version 1.3.
Examples
#configure terminal
(config)#router ospf 100
(config-router)#timers lsa arrival 5000
timers spf exp
Use this command to set the Shortest-Path First (SPF) best-path schedule minimum and maximum delay between receiving a change to SPF calculation in milliseconds.
Use no parameter of this command to unset the SPF best-path schedule.
Command Syntax
timers spf exp <0-2147483647> <0-2147483647>
no timers spf exp
Parameters
<0-2147483647>
The minimum delay in milliseconds between receiving a change to SPF calculation.
<0-2147483647>
The maximum delay in milliseconds between receiving a change to SPF calculation.
Default
Default minimum delay: 500 milliseconds
Default maximum delay: 50000 milliseconds (50 seconds)
Command Mode
Router mode
Applicability
This command was introduced before OcNOS version 1.3.
Examples
#configure terminal
(config)#router ospf 100
(config-router)#timers spf exp 300 300
timers throttle lsa
This command sets the rate-limiting intervals for OSPF link-state advertisement (LSA) generation.
Use the no form of this command to restore the default values.
Command Syntax
timers throttle lsa all <0-600000> <1-600000> <1-600000>
no timers throttle lsa all
Parameters
<0-600000>
Start interval: The minimum delay in milliseconds for the generation of LSAs. The first instance of LSA is always generated immediately upon a local OSPF topology change. The generation of the next LSA is not before the start interval.
<0-600000>
Hold interval: The hold time in milliseconds. This value is used to calculate the subsequent rate limiting times for LSA generation.
<0-600000>
Maximum interval: The maximum wait time in milliseconds between generation of the same LSA.
Defaults
Default start interval: 0 milliseconds
Default hold interval: 5000 milliseconds
Default maximum interval: 5000 milliseconds
Command Mode
Router mode
Applicability
This command was introduced before OcNOS version 1.3.
Examples
#configure terminal
(config)#router ospf 100
(config-router)#timers throttle lsa all 200 10000 45000