Configuration commands
Use these M4500 CLI commands to enable OSPFv3 on interfaces and configure areas, cost, timers, network type, priority, and the OSPFv3 router.
ipv6 ospf
This command enables OSPF on a router interface or loopback interface.
To disable OSPF on a router interface or loopback interface, use the no form of this command.
| Default | Disable |
| Format |
|
| Mode | Interface Config |
ipv6 ospf area
This command sets the OSPF area to which the specified router interface belongs. The <areaid> is an 32-bit integer, formatted as a 4-digit dotted-decimal number or a decimal value in the range of <0-4294967295>. The
area uniquely identifies the area to which the interface connects. Assigning an area ID, which does not exist on an interface, causes the area to be created with default values.
| Default | None |
| Format | ipv6 ospf area {<0-4294967295> | <areaid>} |
| Mode | Interface Config |
| Fields | Definition |
|---|---|
| <areaid> | An 32-bit integer, formatted as a 4-digit dotted-decimal number. |
| <0-4294967295> | A decimal value for an area ID. |
ipv6 ospf bfd
This command enables BFD for OSPF on the specified interface.
To disable BFD for OSPF on the specified interface, use the no form of this command.
| Default | Disable |
| Format | ipv6 ospf bfd |
| Mode | Interface Config |
ipv6 ospf cost
This command configures the cost on an OSPF interface. The <cost> parameter has a range of 1 to 65535.
To reset to the default cost on an OSPF interface, use the no form of this command.
| Default | 10 |
| Format |
|
| Mode | Interface Config |
ipv6 ospf dead-interval
This command sets the OSPF dead interval for the specified interface. The value for <seconds> is a valid positive integer, which represents the length of time in seconds that a router's Hello packets have not been seen before
its neighbor routers declare that the router is down. The value for the length of time must be the same for all routers attached to a common network. This value should be some multiple of the Hello Interval (i.e. 4).
To set the default OSPF dead interval for the specified interface, use the no form of this command.
| Default | 40 |
| Format |
|
| Mode | Interface Config |
| Fields | Definition |
|---|---|
| <seconds> | This value ranges from 1 to 65535. |
ipv6 ospf hello-interval
This command sets the OSPF hello interval for the specified interface. The value for <seconds> is a valid positive integer, which represents the length of time in seconds. The value for the length of time must be the same for all routers attached to a network. Valid values for <seconds> range from 1 to 65535.
To set the default OSPF hello interval for the specified interface, use the no form of this command.
| Default | 10 |
| Format |
|
| Mode | Interface Config |
| Fields | Definition |
|---|---|
| <seconds> | This value ranges from 1 to 65535. |
ipv6 ospf link-lsa-suppression
This command enables Link LSA Suppression on an interface. When Link LSA Suppression is enabled on a P2P interface, no Link LSA protocol packets are originated on the interface. This configuration does not apply to non-P2P interfaces.
To disables Link LSA Suppression on an interface, use the no form of this command. When Link LSA suppression is disabled, Link LSA protocol packets are originated on the P2P interfaces.
| Format | ipv6 ospf link-lsa-suppresion |
no ipv6 ospf link-lsa-suppresion
| Default | Disable |
| Mode | Interface Config |
ipv6 ospf mtu-ignore
This command disables OSPF maximum transmission unit (MTU) mismatch detection. OSPF Database Description packets specify the size of the largest IP packet that can be sent without fragmentation on the interface. When a router receives a Database Description packet, it examines the MTU advertised by the neighbor. By default, if the MTU is larger than the router can accept, the Database Description packet is rejected and the OSPF adjacency is not established.
To enable the OSPF MTU mismatch detection, use the no form of this command.
| Default | Enable |
| Format |
|
| Mode | Interface Config |
ipv6 ospf network
This command changes the default OSPF network type for the interface. Normally, the network type is determined from the physical IP network type. By default all Ethernet networks are OSPF type broadcast. Similarly, tunnel interfaces default to point-to-point. When an Ethernet port is used as a single large bandwidth IP network between two routers, the network type can be point-to-point since there are only two routers. Using point-to-point as the network type eliminates the overhead of the OSPF designated router election. It is normally not useful to set a tunnel to OSPF network type broadcast.
To set the interface type to the default value, use the no form of this command.
| Default | Broadcast |
| Format |
|
| Mode | Interface Config |
ipv6 ospf prefix-suppression
This command suppresses the advertisement of the IPv6 prefixs that are associated with an interface, except for those associated with secondary IPv6 addresses. This command takes precedence over the global configuration. If this configuration is not specified, the global prefix-suppression configuration applies.
To remove prefix-suppression configurations for the specified interface, use the no form of this command. When this no command is issued, global prefix-suppression applies to the interface.
| Default | None |
| Format |
|
| Mode | Interface Config |
| Fields | Definition |
|---|---|
| Disable | This is for excluding specified interfaces from performing prefix-suppression when the feature is enabled globally. |
ipv6 ospf priority
This command sets the OSPF priority for the specified router interface. The priority of the interface is a priority integer from 0 to 255. A value of 0 indicates that the router is not eligible to become the designated router on this network.
To set the default OSPF priority for the specified router interface, use the no form of this command.
| Default | 1, which is the highest router priority |
| Format |
|
| Mode | Interface Config |
ipv6 ospf retransmit-interval
This command sets the OSPF retransmit Interval for the specified interface. The retransmit interval is specified in seconds. The value for <seconds> is the number of seconds between link-state advertisement retransmissions for adjacencies belonging to this router interface. This value is also used when retransmitting database description and link-state request packets.
To set the default OSPF retransmit Interval for the specified interface, use the no form of this command.
Format ipv6 ospf retransmit-interval <seconds>
no ipv6 ospf retransmit-interval
| Fields | Definition |
|---|---|
| <seconds> | Valid value ranges from 0 to 3600 (1 hour). |
| Default | 5 |
| Mode | Interface Config |
ipv6 ospf transmit-delay
This command sets the OSPF Transit Delay for the specified interface. The transmit delay is specified in seconds. In addition, it sets the estimated number of seconds it takes to transmit a link state update packet over this interface.
To set the default OSPF Transit Delay for the specified interface, use the no form of this command.
| Default | 1 |
| Format |
|
| Mode | Interface Config |
| Fields | Definition |
|---|---|
| <seconds> | Valid value ranges from 1 to 3600 (1 hour). |
ipv6 router ospf
Use this command to enter Router OSPFv3 Config mode.
| Default | None |
| Format | ipv6 router ospf |
| Mode | Global Config |
area default-cost
This command configures the monetary default cost for the stub area. The operator must specify the area id and an integer value between 1-16777214.
| Default | None |
| Format | area <areaid> default-cost <1-16777214> |
| Mode | Router OSPFv3 Config |
| Fields | Definition |
|---|---|
| <areaid> | Area ID. |
area nssa
This command configures the specified areaid to function as an NSSA.
To disable nssa from the specified area id, use the no form of this command.
| Default | None |
| Format |
|
| Mode | Router OSPFv3 Config |
| Fields | Definition |
|---|---|
| <areaid> | Area ID. |
area nssa default-info-originate
This command configures the metric value and type for the default route advertised into the NSSA. The optional metric parameter specifies the metric of the default route and is to be in a range of 1-16777214. If no metric is specified, the default value is 10. The metric type can be comparable (nssa-external 1) or non-comparable (nssa-external 2).
To disable the default route advertised into the NSSA, use the no form of this command.
| Default | Disable |
| Format | area <areaid> nssa default-info-originate [<1-16777214>] [{comparable | non-comparable}] no area <areaid> nssa default-info-originate [<1-16777214>] [{comparable | non-comparable}] |
| Mode | Router OSPFv3 Config |
| Fields | Definition |
|---|---|
| <areaid> | Area ID. |
| <1-16777214> | The metric of the default route. The range is 1 to 16777214. |
| comparable | Specify the metric type as NSSA-External 1. |
| non-comparable | Specify the metric type as NSSA-External 2. |
area nssa no-redistribute
This command configures the NSSA ABR so that learned external routes will not be redistributed to the NSSA.
To disable the NSSA ABR so that learned external routes are redistributed to the NSSA, use the no form of this command.
| Default | Disable |
| Format |
|
| Mode | Router OSPFv3 Config |
| Fields | Definition |
|---|---|
| <areaid> | Area ID. |
area nssa no-summry
This command configures the NSSA so that summary LSAs are not advertised into the NSSA.
To disable the NSSA from the summary LSAs, use the no form of this command.
| Default | None |
| Format |
|
| Mode | Router OSPFv3 Config |
| Fields | Definition |
|---|---|
| <areaid> | Area ID. |
area nssa translator-role
This command configures the translator role of the NSSA. A value of always causes the router to assume the role of the translator the instant it becomes a border router and a value of candidate causes the router to participate in the translator election process when it attains border router status.
To disable the NSSA translator role from the specified area id, use the no form of this command.
Format area <areaid> nssa translator-role {always | candidate}
no area <areaid> nssa translator-role
| Fields | Definition |
|---|---|
| <areaid> | Area ID. |
| always | A value of always will cause the router to assume the role of the translator when it becomes a border router. |
| Candidate | A value of candidate will cause the router to participate in the translator election process when it attains border router status. |
| Default | None |
| Mode | Router OSPFv3 Config |
area nssa translator-stab-intv
This command configures the translator stability interval of the NSSA. The <stabilityinterval> is the period of time that an elected translator continues to perform its duties after it determines that its translator status has been deposed by another router.
To disable the NSSA translator stability interval from the specified area id, use the no form of this command.
| Default | None |
| Format |
|
| Mode | Router OSPFv3 Config |
| Fields | Definition |
|---|---|
| <areaid> | Area ID. |
| <0-3600> | The range is 0 to 3600. |
area range
This command creates a specified area range for a specified NSSA. The <ipv6-prefix> is a valid IPv6 address. The <prefix-length> is a valid subnet mask. The LSDB type must be specified by either summarylink or nssaexternallink, and the advertising of the area range can be allowed or suppressed.
To delete a specified area range, use the no form of this command.
| Default | None |
| Format |
|
| Mode | Router OSPFv3 Config |
| Fields | Definition |
|---|---|
| <areaid> | Area ID. |
| <ipv6-prefix> | IPv6 Address. |
| <prefix-length> | The subnetmask of the IPv6 address. |
| summarylink | The area range is used when summarizing prefixes advertised in type 3 summary LSAs. |
| nssaexternallink | The area range is used when translating type 7 LSAs to type 5 LSAs. |
| advertise | Allow advertising the specified area range. When this option is specified, the summary link is advertised when the area range is active. This is default. |
| not-advertise | Disallow advertising the specified area range. When this option is specified, neither the summary prefix nor the contained prefixes are advertised when the area range is active. |
area stub
This command creates a stub area for the specified area ID. A stub area is characterized by the fact that AS External LSAs are not propagated into the area. Removing AS External LSAs and Summary LSAs can significantly reduce the link state database of routers within the stub area.
To delete a stub area for the specified area ID, use the no form of this command.
| Default | None |
| Format |
|
| Mode | Router OSPFv3 Config |
| Fields | Definition |
|---|---|
| <areaid> | Area ID. |
area stub no-summary
This command disables the import of Summary LSAs for the stub area identified by the specified area ID.
To sets the Summary LSA import mode to the default for the stub area identified by the specified area ID, use the no form of this command.
| Default | Enable |
| Format |
|
| Mode | Router OSPFv3 Config |
| Fields | Definition |
|---|---|
| <areaid> | Area ID. |
area virtual-link
This command creates the OSPF virtual interface for the specified <areaid> and <neighbor>. The <neighborid> parameter is the Router ID of the neighbor.
To delete the OSPF virtual interface from the given interface identified by <areaid> and <neighborid>, use the no form of this command.
| Default | The default authentication type is none |
| Format |
|
| Mode | Router OSPFv3 Config |
| Fields | Definition |
|---|---|
| <areaid> | Area ID. |
| <neighborid> | Router ID of the neighbor. |
area virtual-link dead-interval
This command configures the dead interval for the OSPF virtual interface on the virtual interface identified by <areaid> and <neighborid>.
To configures the default dead interval for the OSPF virtual interface on the virtual interface identified by <areaid> and <neighbor>, use the no form of this command.
| Default | 40 seconds |
| Format |
|
| Mode | Router OSPFv3 Config |
| Fields | Definition |
|---|---|
| <areaid> | Area ID. |
| <neighborid> | Router ID of the neighbor. |
| <1-65535> | The range of the dead interval is 1 to 65535, in seconds. |
area virtual-link hello-interval
This command configures the hello interval for the OSPF virtual interface on the interface identified by <areaid> and <neighborid>.
To configures the default hello interval for the OSPF virtual interface on the virtual interface identified by <areaid> and <neighbor>, use the no form of this command.
| Default | 10 seconds |
| Format |
|
| Mode | Router OSPFv3 Config |
| Fields | Definition |
|---|---|
| <areaid> | Area ID. |
| <neighborid> | Router ID of the neighbor. |
| <1-65535> | The range of the dead interval is 1 to 65535, in seconds. |
area virtual-link retransmit-interval
This command configures the retransmit interval for the OSPF virtual interface on the interface identified by <areaid> and <neighborid>.
To configures the default retransmit interval for the OSPF virtual interface on the virtual interface identified by <areaid> and <neighbor>, use the no form of this command.
| Default | 5 seconds |
| Format |
|
| Mode | Router OSPFv3 Config |
| Fields | Definition |
|---|---|
| <areaid> | Area ID. |
| <neighborid> | Router ID of the neighbor. |
| <0-3600> | The range of the retransmit interval is 0 to 3600, in seconds. |
area virtual-link transmit-delay
This command configures the transmit delay for the OSPF virtual interface on the virtual interface identified by <areaid> and <neighborid>.
To configures the default transmit delay for the OSPF virtual interface on the virtual interface identified by <areaid> and <neighbor>, use the no form of this command.
| Default | 1 seconds |
| Format |
|
| Mode | Router OSPFv3 Config |
| Fields | Definition |
|---|---|
| <areaid> | Area ID. |
| <neighborid> | Router ID of the neighbor. |
| <0-3600> | The range of the retransmit interval is 0 to 3600, in seconds. |
auto-cost reference-bandwidth
By default, OSPF computes the link cost of each interface from the interface bandwidth. Faster links have lower metrics, making them more attractive in route selection. The configuration parameters in the auto-cost reference bandwidth and bandwidth commands give you control over the default link cost. You can configure for OSPF an interface bandwidth that is independent of the actual link speed. A second configuration parameter allows you to control the ratio of interface bandwidth to link cost. The link cost is computed as the ratio of a reference bandwidth to the interface bandwidth (ref_bw /interface bandwidth), where interface bandwidth is defined by the bandwidth command. Because the default reference bandwidth is 100 Mbps, OSPF uses the same default link cost for all interfaces whose bandwidth is 100 Mbps or greater. Use the auto-cost command to change the reference bandwidth, specifying the reference bandwidth in megabits per second (Mbps). The reference bandwidth range is 1–4294967 Mbps. The different reference bandwidth can be independently configured for OSPFv2 and OSPFv3.
To set the reference bandwidth to the default value, use the no form of this command.
| Default | 100Mbps |
| Format |
|
| Mode | Router OSPFv3 Config |
| Fields | Definition |
|---|---|
| <1-4294967> | The range of reference bandwidth. |
bfd
This command configures BFD for all interfaces.
To reset BFD for interfaces to default, use the no form of this command.
| Default | Disable |
| Format |
|
| Mode | Router OSPFv3 Config |
default-information originate
This command is used to control the advertisement of default routes.
To configure the default advertisement of default routes, use the no form of this command.
| Default |
Metric: unspecified Type: 2 |
| Format |
|
| Mode | Router OSPFv3 Config |
| Fields | Definition |
|---|---|
| [always] | Specify this option to roginate default route without depending on wheterh routing table has a default route. |
| metric | The range of the metric is 1 to 16777214. |
| metric type | The value of metric type is type 1 or type 2. |
default-metric
This command is used to set a default for the metric of distributed routes.
To set a default for the metric of distributed routes, use the no form of this command.
| Default | None |
| Format |
|
| Mode | Router OSPFv3 Config |
| Fields | Definition |
|---|---|
| <1-16777214> | The range of default metric is 1 to 16777214. |
distance ospf
This command sets the route preference value of OSPF in the router. Lower route preference values are preferred when determining the best route. The type of OSPF can be intra, inter, or external. All the external type routes are given the same preference value. The <preference> range is 1 to 255. A route with a preference of 255 cannot be used to forward traffic.
To set the default route preference value of OSPF in the router, use the no form of this command.
| Default | 110 |
| Format |
|
| Mode | Router OSPFv3 Config |
| Fields | Definition |
|---|---|
| <1-255> | The range of preference value. |
enable
This command resets the default administrative mode of OSPF in the router (active).
To set the administrative mode of OSPF in the router to inactive, use the no form of this command.
| Default | Enable |
| Format |
|
| Mode | Router OSPFv3 Config |
exit-overflow-interval
This command configures the exit overflow interval for OSPF. It describes the number of seconds after entering Overflow state that a router will wait before attempting to leave the Overflow State. This allows the router to again originate non-default AS-external-LSAs. When set to 0, the router will not leave Overflow State until restarted.
To configure the default exit overflow interval for OSPF, use the no form of this command.
| Default | 0 |
| Format |
|
| Mode | Router OSPFv3 Config |
| Fields | Definition |
|---|---|
| <0-2147483647> | The range of exit overflow interval for OSPF, in seconds. |
external-isdb-limit
This command configures the external LSDB limit for OSPF. If the value is -1, then there is no limit. When the number of non-default AS-external-LSAs in a router's link-state database reaches the external LSDB limit, the router enters overflow state. The router never holds more than the external LSDB limit non-default AS-external-LSAs in its database. The external LSDB limit MUST be set identically in all routers attached to the OSPF backbone and/or any regular OSPF area.
To configure the default external LSDB limit for OSPF, use the no form of this command.
| Default | -1 |
| Format |
|
| Mode | Router OSPFv3 Config |
| Fields | Definition |
|---|---|
| <0-2147483647> | The range of external LSDB limit for OSPF is -1 to 2147483647. |
max-metric
This command sets the number of paths that OSPF can report for a given destination where <maxpaths> is platform dependent.
To disable stub router mode, use the no form of this command. The command clears either type of stub router mode (always or on-startup) and resets all LSA options.
| Default | OSPF is not in stub router mode by default |
| Format |
|
| Mode | Router OSPFv3 Config |
| Fields | Definition |
|---|---|
| on-startup | OSPF starts in stub router mode after a reboot. |
| <5-86400> | The number of seconds that OSPF remains in stub router mode after a reboot. The range is from 5 to 86,400 seconds. There is no default value. |
| summary-lsa | Set the maximum metric value for summary LSAs. The range is from 1-16777215. |
| external-lsa | Set the maximum metric value for external LSAs. The range is from 1-16777215. |
| Inter-area-lsas | Set the maximum metric value for inter-area LSAs. The range is from 1-16777215. |
maximum-paths
This command sets the number of paths that OSPF can report for a given destination where <maxpaths> is platform dependent.
To resets the number of paths that OSPF can report for a given destination back to its default value, use the no form of this command.
| Default | 1 |
| Format |
|
| Mode | Router OSPFv3 Config |
| Fields | Definition |
|---|---|
| <1-48> | The maximum number of paths that OSPF can report for a given destination. The range of the value is 1 to 48. |
passive-interface default
Use this command to enable global passive mode by default for all interfaces. It overrides any interface level passive mode.OSPF shall not form adjacencies over a passive interface.
To disable the global passive mode by default for all interfaces, use the no form of this command. Any interface previously configured to be passive reverts to non-passive mode.
| Default | Disable |
| Format |
|
| Mode | Router OSPFv3 Config |
passive-interface
Use this command to set the interface or tunnel as passive. It overrides the global passive mode that is currently effective on the interface or tunnel.
To set the interface or tunnel as non-passive, use the no form of this command. It overrides the global passive mode that is currently effective on the interface or tunnel.
| Default | Disable |
| Format |
|
| Mode | Router OSPFv3 Config |
| Fields | Definition |
|---|---|
| <slot/port> | Specify the interface. |
| <tunnel-id > | Specify the Tunnel ID. Range 0 -7. |
| <vlan-id> | Specifies the VLAN interface. The range of the VLAN ID is 1 to 4093. |
prefix-suppression
This command enables the global prefix suppression for OSPFv3.
To disable the global prefix suppression for OSPFv3, use the no form of this command.
| Default | Disable |
| Format | prefix-suppression |
| Mode | Router OSPFv3 Config |
redistribute
This command configures the OSPFv3 protocol to allow redistribution of routes from the specified source protocol/routers.
To configure OSPF to prohibit redistribution of routes from the specified soure protocol/rotuers, use the no form of this command.
| Default |
Metric is unspecified Type is 2 Tag is 0 |
| Format |
|
| Mode | Router OSPFv3 Config |
| Fields | Definition |
|---|---|
| <0-16777214> | The range of metric is 0 to 16777214. |
| <0-4294967295> | The range of tag is 0 to 4294967295. |
router-id
This command sets a 4-digit dotted-decimal number uniquely identifying the router ospf id.
| Default | None |
| Format | router-id <ipaddress> |
| Mode | Router OSPFv3 Config |
| Fields | Definition |
|---|---|
| <ipaddress> | IP Address. |
clear ipv6 ospf
This command disable and reenable OSPF.
| Default | None |
| Format | clear ipv6 ospf |
| Mode | Privileged Exec |
clear ipv6 ospf configuration
This command resets the OSPF configuration to factory defaults.
| Default | None |
| Format | clear ipv6 ospf configuration |
| Mode | Privileged Exec |
clear ipv6 ospf counters
This command reset global and interface statistics.
| Default | None |
| Format | clear ipv6 ospf counters |
| Mode | Privileged Exec |
clear ipv6 ospf neighbor
This command drops the adjacency with all OSPF neighbors. On each neighbor’s interface, send a oneway hello. Adjacencies may then be established. To drop all adjacencies with a specific router ID, specify the neighbor’s Router ID using the optional parameter <ipaddr>
| Default | None |
| Format | clear ipv6 ospf neighbor [<ipaddr>] |
| Mode | Privileged Exec |
| Fields | Definition |
|---|---|
| <ipaddr> | Neighbor’s Router ID. |
clear ipv6 ospf neighbor interface
This command drops the adjacency with all OSPF neighbors on a specific interface. To drop adjacency with a specific router ID on a specific interface, specify the neighbor’s Router ID using the optional parameter <ipaddr>.
| Default | None |
| Format | clear ipv6 ospf neighbor interface {<slot/port> | vlan <1-4093>} [ipaddr] |
| Mode | Privileged Exec |
| Fields | Definition |
|---|---|
| <slot/port> | Specify the interface. |
| <1-4093> | Specifies the VLAN interface. The range of the VLAN ID is 1 to 4093. |
| <ipaddr> | Neighbor’s Router ID. |
clear ipv6 ospf redistribution
This command flushes all self-originated external LSAs. Reapply the redistribution configuration and reoriginate prefixes as necessary.
| Default | None |
| Format | clear ipv6 ospf redistribution |
| Mode | Privileged Exec |
clear ipv6 ospf stub-router
This command forces OSPF to exit stub router mode when it has automatically entered stub router mode because of a resource limitation. OSPF only exits stub router mode if it entered stub router mode because of a resource limitation or if it is in stub router mode at startup. This command has no effect if OSPF is configured to be in stub router mode permanently.
| Default | None |
| Format | clear ipv6 ospf stub-router |
| Mode | Privileged Exec |