Global OSPFv3 Commands

Use these commands to configure global OSPFv3 settings.

Note: Open Shortest Path First version 3 (OSPFv3) commands are supported on the M4350 series switches only. The M4250 series switches do not support OSPFv3.

ipv6 router ospf

M4350

Use this command to enable OSPFv3 and let the CLI enter Router OSPFv3 Config mode.

Format ipv6 router ospf
Mode Global Config

no ipv6 router ospf

This command disables OSPFv3.

Format no ipv6 router ospf
Mode Global Config

area default-cost (Router OSPFv3 Config)

M4350

This command configures the metric default cost for the stub area. For the value argument, you must specify an integer value between 1–16777215.

Format area area-id default-cost value
Mode Router OSPFv3 Config

no ipv6 area default-cost (Router OSPFv3 Config)

This command resets the metric default cost for the stub area.

Format no ipv6 area area-id default-cost
Mode Global Config

area nssa (Router OSPFv3 Config)

M4350

This command configures the specified area-id to function as an NSSA.

Format area area-id nssa
Mode Router OSPFv3 Config

no area nssa (Router OSPFv3 Config)

This command disables NSSA from the specified area id.

Format no area area-id nssa
Mode Router OSPFv3 Config

area nssa default-info-originate (Router OSPFv3 Config)

M4350

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 must be in the range of 1–16777214. If no metric is specified, the default value is 10. The metric type can be comparable (nssa-external 1) or noncomparable (nssa-external 2).

Format area area-id nssa default-info-originate [metric] [comparable | non-comparable]
Mode Router OSPFv3 Config

no area nssa default-info-originate (Router OSPFv3 Config)

This command disables the default route advertised into the NSSA.

Format no area area-id nssa default-info-originate [metric] [comparable | non-comparable]
Mode Router OSPFv3 Config

area nssa no-redistribute (Router OSPFv3 Config)

M4350

This command configures the NSSA ABR so that learned external routes will not be redistributed to the NSSA.

Format area area-id nssa no-redistribute
Mode Router OSPFv3 Config

no area nssa no-redistribute (Router OSPFv3 Config)

This command disables the NSSA ABR so that learned external routes are redistributed to the NSSA.

Format no area area-id nssa no-redistribute
Mode Router OSPFv3 Config

area nssa no-summary (Router OSPFv3 Config)

M4350

This command configures the NSSA so that summary LSAs are not advertised into the NSSA.

Format area area-id nssa no-summary
Mode Router OSPFv3 Config

no area nssa no-summary (Router OSPFv3 Config)

This command disables NSSA from the summary LSAs.

Format no area area-id nssa no-summary
Mode Router OSPFv3 Config

area nssa translator-role (Router OSPFv3 Config)

M4350

This command configures the translator role of the NSSA. Selecting always causes the router to assume the role of the translator the instant it becomes a border router and selecting candidate causes the router to participate in the translator election process when it attains border router status.

Format area area-id nssa translator-role {always | candidate}
Mode Router OSPFv3 Config

no area nssa translator-role (Router OSPFv3 Config)

This command disables the NSSA translator role from the specified area id.

Format no area area-id nssa translator-role {always | candidate}
Mode Router OSPFv3 Config

area nssa translator-stab-intv (Router OSPFv3 Config)

M4350

This command configures the translator stability interval of the NSSA. The stability interval is the period that an elected translator continues to perform its duties after it determines that its translator status has been deposed by another switch or router.

Format area area-id nssa translator-stab-intv stabilityinterval
Mode Router OSPFv3 Config

no area nssa translator-stab-intv (Router OSPFv3 Config)

This command disables the NSSA translator’s stability interval from the specified area id.

Format no area area-id nssa translator-stab-intv stabilityinterval
Mode Router OSPFv3 Config

area range (Router OSPFv3 Config)

M4350

Use this command to configure an IPv6 prefix address and prefix length that an area border router advertises for a specific area.

Default No area ranges are configured by default. No cost is configured by default.
Format area area-id range ipv6-prefix/prefix-length {summarylink | nssaexternallink} [advertise | not-advertise] [cost cost]
Mode Router OSPFv3 Config
Parameter Description
area-id The area identifier for the area whose networks are to be summarized.
ipv6-prefix/prefix-length The IPv6 prefix address and prefix length to be advertised when the ABR computes a route to one or more networks within this prefix in this area.
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 [Optional] The summary prefix is advertised when the area range is active. This is the default.
not-advertise [Optional] Neither the summary prefix nor the contained prefixes are advertised when the area range is active. Any static cost previously configured is removed from the system configuration.
cost [Optional] OSPF sets the metric field in the inter-area-prefix LSA to the configured value rather than setting the metric to the largest cost among the networks covered by the area range.

no area range (Router OSPFv3 Config)

The no area range command deletes a summary prefix or removes a static cost.

Format no area area-id range ipv6-prefix/prefix-length {summarylink | nssaexternallink} cost
Mode Router OSPFv3 Config

area stub (Router OSPFv3 Config)

M4350

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.

Format area area-id stub
Mode Router OSPFv3 Config

no area stub (Router OSPFv3 Config)

This command deletes a stub area for the specified area ID.

Format no area area-id stub
Mode Router OSPFv3 Config

area stub no-summary (Router OSPFv3 Config)

M4350

This command disables the import of Summary LSAs for the stub area identified by area-id.

Default enabled
Format area area-id stub no-summary
Mode Router OSPFv3 Config

no area stub no-summary (Router OSPFv3 Config)

This command sets the Summary LSA import mode to the default for the stub area identified by area-id.

Format no area area-id stub summarylsa
Mode Router OSPFv3 Config

auto-cost (Router OSPFv3 Config)

M4350

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 reference-bandwidth command to change the reference bandwidth, specifying the reference bandwidth in megabits per second (Mbps). For the mbps variable, the reference bandwidth range is 1–4294967 Mbps.

Default 100 Mbps
Format auto-cost reference-bandwidth mbps
Mode Router OSPFv3 Config

no auto-cost reference-bandwidth (Router OSPFv3 Config)

Use this command to set the reference bandwidth to the default value.

Format no auto-cost reference-bandwidth
Mode Router OSPFv3 Config

clear ipv6 ospf

M4350

Use this command to disable and re-enable OSPF.

Format clear ipv6 ospf
Mode Privileged EXEC

clear ipv6 ospf configuration

M4350

Use this command to reset the OSPF configuration to factory defaults.

Format clear ipv6 ospf configuration
Mode Privileged EXEC

clear ipv6 ospf counters

M4350

Use this command to reset global and interface statistics.

Format clear ipv6 ospf counters
Mode Privileged EXEC

clear ipv6 ospf neighbor

M4350

Use this command to drop the adjacency with all OSPF neighbors. On each neighbor’s interface, send a one-way hello. Adjacencies may then be re-established. To drop all adjacencies with a specific router ID, specify the neighbor’s Router ID using the optional parameter neighbor-id.

Format clear ipv6 ospf neighbor [neighbor-id]
Mode Privileged EXEC

clear ipv6 ospf neighbor interface

M4350

To drop adjacency with all neighbors on a specific interface, use the optional parameter unit/slot/port.

The argument unit/slot/port corresponds to a physical routing interface or VLAN routing interface. The vlan keyword and vlan-id parameter are used to specify the VLAN ID of the routing VLAN. The vlan-id parameter is a number in the range of 1–4093.

To drop adjacency with a specific router ID on a specific interface, use the optional parameter neighbor-id.

Format clear ipv6 ospf neighbor interface [unit/slot/port | vlan vlan-id] [neighbor-id]
Mode Privileged EXEC

clear ipv6 ospf redistribution

M4350

Use this command to flush all self-originated external LSAs. Reapply the redistribution configuration and re-originate prefixes as necessary.

Format clear ipv6 ospf redistribution
Mode Privileged EXEC

default-information originate (Router OSPFv3 Config)

M4350

This command is used to control the advertisement of default routes. The metric argument can be a number in the range 0–16777214. The metric type can be 1 or 2.

Default

metric—unspecified

type—2

Format default-information originate [always] [metric metric] [metric-type {1 | 2}]
Mode Router OSPFv3 Config

no default-information originate (Router OSPFv3 Config)

This command is used to control the advertisement of default routes.

Format no default-information originate [metric] [metric-type]
Mode Router OSPFv3 Config

default-metric (Router OSPFv3 Config)

M4350

This command is used to set a default for the metric of distributed routes. The metric argument can be a number in the range 0–16777214.

Format default-metric metric
Mode Router OSPFv3 Config

no default-metric (Router OSPFv3 Config)

This command is used to set a default for the metric of distributed routes.

Format no default-metric
Mode Router OSPFv3 Config

distance ospf (Router OSPFv3 Config)

M4350

This command sets the route preference value of OSPF route types in the router. Lower route preference values are preferred when determining the best route. The type of OSPF route can be intra, inter, or external. All the external type routes are given the same preference value. The range for the preference value is from 1 to 255.

Default 110
Format distance ospf {intra-area preference | inter-area preference | external preference}
Mode Router OSPFv3 Config

no distance ospf (Router OSPFv3 Config)

This command sets the default route preference value of OSPF routes in the router. The type of OSPF route can be intra, inter, or external. All the external type routes are given the same preference value.

Format no distance ospf {intra-area | inter-area | external}
Mode Router OSPFv3 Config

enable (Router OSPFv3 Config)

M4350

This command resets the administrative mode of OSPF on the switch to active.

Default enabled
Format enable
Mode Router OSPFv3 Config

no enable (Router OSPFv3 Config)

This command sets the administrative mode of OSPF in the router to inactive.

Format no enable
Mode Router OSPFv3 Config

exit-overflow-interval (Router OSPFv3 Config)

M4350

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 nondefault AS-external-LSAs. When set to 0, the router does not leave overflow state until restarted. The range for seconds is from 0 to 2147483647 seconds.

Default 0
Format exit-overflow-interval seconds
Mode Router OSPFv3 Config

no exit-overflow-interval (Router OSPFv3 Config)

This command configures the default exit overflow interval for OSPF.

Format no exit-overflow-interval
Mode Router OSPFv3 Config

external-lsdb-limit (Router OSPFv3 Config)

M4350

This command configures the external LSDB limit for OSPF. If the value is –1, then there is no limit. When the number of nondefault 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 nondefault 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. The range for limit is from –1 to 2147483647.

Default -1
Format external-lsdb-limit limit
Mode Router OSPFv3 Config

no external-lsdb-limit (Router OSPFv3 Config)

This command configures the default external LSDB limit for OSPF.

Format no external-lsdb-limit
Mode Router OSPFv3 Config

maximum-paths (Router OSPFv3 Config)

M4350

This command sets the number of paths that OSPF can report for a destination where maxpaths is platform dependent.

Default 4
Format maximum-paths maxpaths
Mode Router OSPFv3 Config

no maximum-paths (Router OSPFv3 Config)

This command resets the number of paths that OSPF can report for a destination back to its default value.

Format no maximum-paths
Mode Router OSPFv3 Config

passive-interface default (Router OSPFv3 Config)

M4350

Use this command to enable global passive mode by default for all interfaces, which overrides any interface-level passive mode. OSPF does not form adjacencies over a passive interface.

Default disabled
Format passive-interface default
Mode Router OSPFv3 Config

no passive-interface default (Router OSPFv3 Config)

Use this command to disable the global passive mode by default for all interfaces. Any interface previously configured to be passive reverts to non-passive mode.

Format no passive-interface default
Mode Router OSPFv3 Config

passive-interface (Router OSPFv3 Config)

M4350

Use this command to set the interface as passive.

The argument unit/slot/port corresponds to a physical routing interface or VLAN routing interface. The vlan keyword and vlan-id parameter are used to specify the VLAN ID of the routing VLAN. The vlan-id parameter is a number in the range of 1–4093.

Using these arguments overrides the global passive mode that is effective on the interface or VLAN.

Default disabled
Format passive-interface {unit/slot/port | vlan vlan-id}
Mode Router OSPFv3 Config

no passive-interface (Router OSPFv3 Config)

Use this command to set the interface or VLAN as non-passive. It overrides the global passive mode that is currently effective on the interface or VLAN.

Format no passive-interface {unit/slot/port | vlan vlan-id}
Mode Router OSPFv3 Config

prefix-suppression (Router OSPFv3 Config)

M4350

This command suppresses the advertisement of all the IPv6 prefixes except for prefixes that are associated with secondary IPv6 addresses, loopbacks, and passive interfaces from the OSPFv3 router advertisements.

To suppress a loopback or passive interface, use the ipv6 ospf prefix-suppression command in interface configuration mode. Prefixes associated with secondary IPv6 addresses can never be suppressed.

Default Prefix suppression is disabled.
Format prefix-suppression
Mode Router OSPFv3 Config

no prefix-suppression (Router OSPFv3 Config)

This command disables prefix-suppression. No prefixes are suppressed from getting advertised.

Format no prefix-suppression
Mode Router OSPFv3 Config

redistribute (Router OSPFv3 Config)

M4350

This command configures the OSPFv3 protocol to allow redistribution of static or connected routes. The metric argument is in the range from 0 to 16777214. For the metric-type keyword, you can select 1 or 2. The tag argument can be from 0 to 4294967295.

Default

metric: not specified

type: 2

tag: 0

Format redistribute {static | connected} [metric metric] [metric-type {1 | 2}] [tag tag]
Mode Router OSPFv3 Config

Command example:

CODE
(NETGEAR Switch)(Config)#ipv6 router ospf
(NETGEAR Switch)(Config-rtr)#redistribute connected metric 165543 metric-type 2 tag
3680012

no redistribute (Router OSPFv3 Config)

This command disables the OSPF protocol from redistributing static or connected routes.

Format no redistribute {static | connected} [metric] [metric-type] [tag]
Mode Router OSPFv3 Config

router-id (Router OSPFv3 Config)

M4350

This command sets a 4-digit dotted-decimal number uniquely identifying the router OSPF ID. The ipaddress is a configured value.

Format router-id ipaddress
Mode Router OSPFv3 Config

no router-id (Router OSPFv3 Config)

This command resets the router OSPF ID.

Format no router-id
Mode Router OSPFv3 Config

timers pacing lsa-group (Router OSPFv3 Config)

M4350

Use this command to adjust how OSPFv3 groups LSAs for periodic refresh. OSPFv3 refreshes self-originated LSAs approximately once every 30 minutes. When OSPFv3 refreshes LSAs, it considers all self-originated LSAs whose age is from 1800 to 1800 plus the pacing group size. Grouping LSAs for refresh allows OSPFv3 to combine refreshed LSAs into a minimal number of LS Update packets. Minimizing the number of Update packets makes LSA distribution more efficient.

When OSPFv3 originates a new or changed LSA, it selects a random refresh delay for the LSA. When the refresh delay expires, OSPFv3 refreshes the LSA. By selecting a random refresh delay, OSPFv3 avoids refreshing a large number of LSAs at one time, even if a large number of LSAs are originated at one time.

The seconds argument represents the width of the window in which LSAs are refreshed. For the seconds argument, the range for the pacing group window is from 10 to 1800 seconds.

Default 60 seconds
Format timers pacing lsa-group seconds
Mode Router OSPFv3 Config

no timers pacing lsa-group (Router OSPFv3 Config)

This command returns the LSA Group Pacing parameter to the factory default value of 60 seconds.

Format no timers pacing lsa-group
Mode Router OSPFv3 Config

timers throttle spf (Router OSPFv3 Config)

M4350

The initial wait interval is set to an amount of delay specified by the spf-hold value. If an SPF calculation is not scheduled during the current wait interval, the next SPF calculation is scheduled at a delay of spf-start. If there has been an SPF calculation scheduled during the current wait interval, the wait interval is set to two times the current wait interval until the wait interval reaches the maximum time in milliseconds as specified in spf-maximum. Subsequent wait times remain at the maximum until the values are reset or an LSA is received between SPF calculations.

Default

spf-start = 2000 ms

spf-hold = 5000 ms

spf-maximum = 5000 ms

Format timers throttle spf spf-start spf-hold spf-maximum
Mode Router OSPFv3 Config
Parameter Description
spf-start Indicates the SPF schedule delay in milliseconds when no SPF calculation has been scheduled during the current wait interval. Value range is 1 to 600000 milliseconds.
spf-hold Indicates the initial SPF wait interval in milliseconds. Value range is 1 to 600000 milliseconds.
spf-maximum Indicates the maximum SPF wait interval in milliseconds. Value range is 1 to 600000 milliseconds.

no timers throttle spf (Router OSPFv3 Config)

This command returns the SPF throttling parameters to the factory default values.

Format no timers throttle spf
Mode Router OSPFv3 Config

trapflags (Router OSPFv3 Config)

M4350

Use this command to enable individual OSPF traps, enable a group of trap flags at a time, or enable all the trap flags at a time. The different groups of trap flags, and each group’s specific trap flags to enable or disable, are listed in the following table.

Table 1. Trap flag groups (OSPFv3)
Group Flags
errors
  • authentication-failure
  • bad-packet
  • config-error
  • virt-authentication-failure
  • virt-bad-packet
  • virt-config-error
lsa
  • lsa-maxage
  • lsa-originate
overflow
  • lsdb-overflow
  • lsdb-approaching-overflow
retransmit
  • packets
  • virt-packets
state-change
  • if-state-change
  • neighbor-state-change
  • virtif-state-change
  • virtneighbor-state-change
  • To enable an individual flag, enter the trapflags group name followed by a particular flag.
  • To enable all the flags in that group, enter trapflags group name followed by all.
  • To enable all the flags, enter the command as trapflags all.
Default disabled
Format trapflags {all | errors {all | authentication-failure | bad-packet | config-error | virt-authentication-failure | virt-bad-packet | virt-config-error} | lsa {all | lsa-maxage | lsa-originate} | overflow {all | lsdb-overflow | lsdb-approaching-overflow} | retransmit {all | packets | virt-packets} | state-change {all | if-state-change | neighbor-state-change | virtif-state-change | virtneighbor-state-change}}
Mode Router OSPFv3 Config

no trapflags (Router OSPFv3 Config)

Use this command to revert to the default trap flag settings, in which all trap flags are disabled.

  • To disable an individual flag, enter the no trapflags group name followed by a particular flag.
  • To disable all the flags in that group, enter no trapflags group name followed by all.
  • To disable all the flags, enter the command as no trapflags all.
Format no trapflags {all | errors {all | authentication-failure | bad-packet | config-error | virt-authentication-failure | virt-bad-packet | virt-config-error} | lsa {all | lsa-maxage | lsa-originate} | overflow {all | lsdb-overflow | lsdb-approaching-overflow} | retransmit {all | packets | virt-packets} | state-change {all | if-state-change | neighbor-state-change | virtif-state-change | virtneighbor-state-change}}
Mode Router OSPFv3 Config