The documentation set for this product strives to use bias-free language. For the purposes of this documentation set, bias-free is defined as language that does not imply discrimination based on age, disability, gender, racial identity, ethnic identity, sexual orientation, socioeconomic status, and intersectionality. Exceptions may be present in the documentation due to language that is hardcoded in the user interfaces of the product software, language used based on RFP documentation, or language that is used by a referenced third-party product. Learn more about how Cisco is using Inclusive Language.
This chapter describes the Cisco NX-OS Open Shortest Path First (OSPF) commands that begin with M.
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 ]]
Originates router link-state advertisements (LSAs) with normal link metrics.
|
|
---|---|
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:
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):
|
|
---|---|
Saves the configuration changes to the startup configuration file. |
|
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.
Maximum number of parallel routes that OSPF can install in a routing table. The range is from 1 to 16 routes. |
|
|
---|---|
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).
This example shows how to allow a maximum of 10 paths to a destination:
|
|
---|---|
Saves the configuration changes to the startup configuration file. |
|
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
(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. |
|
Virtual link configuration mode
|
|
---|---|
When you configure the MD5 digest authentication mode, make sure that both interfaces on the virtual link have the same key value.
This example shows how to set key 19 with the password 8ry4222:
|
|
---|---|