M Commands
This chapter describes the Cisco NX-OS Open Shortest Path First (OSPF) commands that begin with M.
max-metric router-lsa (OSPF)
To configure the Open Shortest Path First (OSPF) protocol to advertise a maximum metric so that other routers do not prefer the router as an intermediate hop in their shortest path first (SPF) calculations, use the max-metric router-lsa command. To disable the advertisement of a maximum metric, use the no form of this command.
max-metric router-lsa [ on-startup [ seconds | wait-for bgp tag ]]
no max-metric router-lsa [ on-startup [ seconds | wait-for bgp tag ]]
Syntax Description
Command Default
Originates router link-state advertisements (LSAs) with normal link metrics.
Command Modes
Command History
|
|
---|---|
Usage Guidelines
Use the max-metric router-lsa command to originate LSAs with a maximum metric (LSInfinity: 0xFFFF) through all nonstub links. This command allows Border Gateway Protocol (BGP) routing tables to converge without attracting transit traffic (if there are not alternate lower cost paths to the router). The router advertises accurate (normal) metrics after the configured or default timers expire or after BGP sends a notification that routing tables have converged.
Note Directly connected links in a stub network are not affected by the configuration of a maximum or infinite metric because the cost of a stub link is always set to the output interface cost.
You can use the max-metric router-lsa command in the following situations:
- Reloading a router. After a router is reloaded, Interior Gateway Protocols (IGPs) converge very quickly, and other routers may try to forward traffic through the newly reloaded router. If the router is still building BGP routing tables, the packets that are destined for other networks that the router has not learned through BGP may be dropped.
- Introducing a router into a network without routing traffic through it. You might want to connect a router to an OSPF network but not want real traffic to flow through the router if there are better alternate paths. If no alternate paths exist, then this router would still accept transit traffic.
Examples
This example shows how to configure a router that is running OSPF to advertise a maximum metric for 100 seconds:
This example shows how to configure a router to advertise a maximum metric until BGP routing tables converge or until the default timer expires (600 seconds):
Related Commands
|
|
---|---|
Saves the configuration changes to the startup configuration file. |
|
maximum-paths (OSPF)
To control the maximum number of parallel routes that Open Shortest Path First (OSPF) can support, use the maximum-paths command. To remove the maximum-paths command from the configuration file and restore the system to the default, use the no form of this command.
Syntax Description
Maximum number of parallel routes that OSPF can install in a routing table. The range is from 1 to 16 routes. |
Command Default
Command Modes
Command History
|
|
---|---|
Usage Guidelines
Use the maximum-paths command to allow OSPF to install multiple paths into the routing table for each prefix. Multiple paths are installed for both internal and external routes that are learned in the same autonomous system and that have an equal cost (according to the OSPF shortest path first algorithm).
Examples
This example shows how to allow a maximum of 10 paths to a destination:
Related Commands
|
|
---|---|
Saves the configuration changes to the startup configuration file. |
|
message-digest-key (OSPF virtual link)
To enable Open Shortest Path First (OSPF) Message Digest 5 (MD5) authentication on a virtual link, use the message-digest-key command. To remove an old MD5 key, use the no form of this command.
message-digest-key key-id md5 [ 0 | 3 ] key
Syntax Description
(Optional) Specifies to use an unencrypted password to generate the md5 key. |
|
(Optional) Specifies to use an encrypted 3DES password to generate the md5 key. |
|
Command Default
Command Modes
Virtual link configuration mode
Command History
|
|
---|---|
Usage Guidelines
When you configure the MD5 digest authentication mode, make sure that both interfaces on the virtual link have the same key value.
Examples
This example shows how to set key 19 with the password 8ry4222:
Related Commands
|
|
---|---|