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 Multiprotocol Label Switching commands that begin with L.
To establish a Layer 2 VPN (L2VPN) virtual forwarding interface (VFI) between two or more separate networks, use the l2vpn vfi context command. To delete the VFI and the associated configuration, use the no form of this command.
l2vpn vfi context context-name
no l2vpn vfi contex t context-name
|
|
---|---|
This example shows how to establish an L2VPN VFI between two or more separate networks:
|
|
---|---|
To enter the Xconnect configuration mode and establish a Layer 2 VPN (L2VPN) context for identifying the two members in a Virtual Private Wire Service (VPWS), multi segment pseudowire, or local connect service, use the l2vpn xconnect context command. To delete the Xconnect context and the associated configuration, use the no form of this command.
l2vpn xconnect context context-name
no l2vpn xconnect context context-name
Xconnect context name. The maximum range is 100 alphanumeric, case-sensitive characters. |
|
|
---|---|
The context name argument is a unique per-interface identifier for this context.
This example shows how to enter Xconnect configuration mode and establish an L2VPN context for identifying the two members in a VPWS, multi segment pseudowire, or local connect service:
|
|
---|---|
Enables AToM MPLS remote link failure notification and shutdown. |
To configure local label allocation filters for the Multiprotocol Label Switching (MPLS) Label Distribution Protocol (LDP), use the label allocate global command. To return to the default setting, use the no form of this command.
label allocate global { all-routes | host-routers | prefix-list prefix-list}
no label allocate global { all-routes | host-routers | prefix-list prefix-list}
|
|
---|---|
This example shows how to configure local label allocation filters for MPLS LDP:
|
|
---|---|
Configures the Multiprotocol Label Switching (MPLS) Label Distribution Protocol (LDP). |
To configure the link management hold timers, use the link-management timers command. To return to the default setting, use the no form of this command.
link-management timers { bandwidth-hold sec | periodic-flooding sec }
|
|
---|---|
This example shows how to configure the link management bandwidth hold timer:
|
|
---|---|
Configures the Multiprotocol Label Switching (MPLS) Traffic Engineering Protocol (MPLS-TE). |
To display the contents of the label switched path (LSP) attribute list, use the list command.
LSP attribute configuration mode
|
|
---|---|
This example shows how to display the content of the LSP attribute list:
|
|
---|---|
Configures the Multiprotocol Label Switching (MPLS) Traffic Engineering Protocol (MPLS-TE). |
To display the contents of the explicit-path entries, use the list command.
TE explicit-path configuration mode
|
|
---|---|
This example shows how to display the content of the LSP attribute list:
|
|
---|---|
Configures the Multiprotocol Label Switching (MPLS) Traffic Engineering Protocol (MPLS-TE). |
To configure the interval over which the input and output rates for the interface are averaged, use the load-interval command. To restore the system to its default condition, use the no form of this command.
Length of time for which data is used to compute load statistics. The value is a multiple of 30, from 120 to 300 (120, 150, 180, and so on). |
|
|
---|---|
For a tunnel-te interface, the bandwidth command configures the initial tunnel bandwidth, which then can be adjusted by the auto bandwidth mechanism based on interface traffic statistics The load-interval command specifies how often the interface traffic statistics are calculated.
This example shows how to configure the interval over which the input and output rates for the interface are averaged:
|
|
---|---|
To disable reoptimization of the label switched path (LSP), use the lockdown command. To restore the system to its default condition, use the no form of this command.
LSP attribute configuration mode
|
|
---|---|
This example shows how to disable reoptimization of the LSP:
|
|
---|---|
Configures the Multiprotocol Label Switching (MPLS) Traffic Engineering Protocol (MPLS-TE). |
To configure the generation of system logs for all nontunnel TE events, use the logging events all command. To stop logging these system messages, use the no form of the command.
TE global configuration (config-te).
|
|
---|---|
The following example shows how to configure generation of system messages for all nontunnel events:.
To configure the generation of system logs when an FRR event occurs, use the logging events frr-protection all command. To stop logging these system messages, use the no form of the command.
logging events frr-protection all
no logging events frr-protection all
TE global configuration (config-te).
|
|
---|---|
No system message is logged if this feature is not configured.
The following example shows how to configure generation of system messages when an FRR event occurs:
To configure the generation of system logs when a primary LSP is assigned an FRR backup tunnel, use the logging events frr-protection backup command. To stop logging these system messages, use the no form of the command.
logging events frr-protection backup
no logging events frr-protection backup
TE global configuration (config-te).
|
|
---|---|
No system message is logged if this feature is not configured.
If this feature and FRR-ready logging are both configured, the initial backup assignment for a new primary LSP will generate two separate system logs.
The following example shows how to configure FRR backup assignment.
To configure the generation of system logs when a protected primary LSP transitions to the FRR-active state, use the logging events frr-protection primary active command. To stop logging these system messages, use the no form of the command.
logging events frr-protection primary active
no logging events frr-protection primary active
TE global configuration (config-te).
|
|
---|---|
No system message is logged if this feature is not configured.
The following example shows how to configure FRR-active logging.
To configure the generation of system logs when a primary LSP moves to FRR-ready state on assigning a backup tunnel, use the logging events frr-protection primary ready command. To stop logging these system messages, use the no form of the command.
logging events frr-protection primary ready
no logging events frr-protection primary ready
TE global configuration (config-te).
|
|
---|---|
No system message is logged if this feature is not configured.
The following example shows how to configure generation of system messages when a FRR event occurs:
To log label switched path (LSP) traps, use the logging lsp command. To return to the default setting, use the no form of this command.
logging lsp {path-errors | preemption | reservation-errors | setups | teardowns} [prefix-list]
no logging lsp {path-errors | preemption | reservation-errors | setups | teardowns}
|
|
---|---|
This example shows how to log LSP path error traps:
|
|
---|---|
Configures the Multiprotocol Label Switching (MPLS) Traffic Engineering Protocol (MPLS-TE). |
To log Label Distribution Protocol (LDP) neighbor state changes, use the logging neighbor-changes command. To return to the default setting, use the no form of this command.
|
|
---|---|
This example shows how to log Label Distribution Protocol (LDP) neighbor state changes:
|
|
---|---|
Configures the Multiprotocol Label Switching (MPLS) Label Distribution Protocol (LDP). |
To enable the display of events related to password configuration changes, use the logging password configuration command. To return to the default setting, use the no form of this command.
logging password configuration [rate-limit number]
no logging password configuration [rate-limit number]
(Optional) Messages per minute. The range is from 1 to 60 messages per minute. |
|
|
---|---|
This example shows how to enable the display of events related to password changes:
|
|
---|---|
Configures the Multiprotocol Label Switching (MPLS) Label Distribution Protocol (LDP). |
To enable password rollover events, use the logging password rollover command. To return to the default setting, use the no form of this command.
logging password rollover [rate-limit number]
no logging password rollover [rate-limit number]
(Optional) Messages per minute. The range is from 1 to 60 messages per minute. |
|
|
---|---|
This example shows how to enable password rollover events:
|
|
---|---|
Configures the Multiprotocol Label Switching (MPLS) Label Distribution Protocol (LDP). |
To configure the tunnel specific traps logging, use the logging tunnel command. To return to the default setting, use the no form of this command.
logging tunnel {lsp-selection | path change} [prefix-list]
no logging tunnel {lsp-selection | path change}
|
|
---|---|
This example shows how to specify the log tunnel LSP selection traps.
|
|
---|---|
Configures the Multiprotocol Label Switching (MPLS) Traffic Engineering Protocol (MPLS-TE). |
To configure the generation of system logs when a TE tunnel changes operational state, use the logging tunnel state command. To stop logging these system messages, use the no form of the command.
TE interface configuration (config-te-if)
TE global configuration (config-te).
|
|
---|---|
No system message is logged if this feature is not configured.
This feature can be configured either for an individual TE tunnel or all the TE tunnels.
This example shows how to configure tunnel state logging for an individual TE tunnel.
To configure the generation of system logs when a TE tunnel is re-optimized successfully, use the logging tunnel reoptimize command.
TE interface configuration (config-te-if)
TE global configuration (config-te).
|
|
---|---|
No system message is logged if this feature is not configured.
This feature can be configured either for an individual TE tunnel or all the TE tunnels.
No system message is logged if the reoptimization attempt is abandoned before completion or if the reoptimization attempt does not result in a better path than the current one.
The following example shows how to configure system logs for an individual TE tunnel when it successfully reoptimizes:
To configure the generation of system logs when a TE tunnel’s reroute pending state changes, use the logging tunnel reroute command. To stop logging these system messages, use the no form of the command.
TE interface configuration (config-te-if)
TE global configuration (config-te).
|
|
---|---|
No system message is logged if this feature is not configured.
This feature can be configured either for an individual TE tunnel or all the TE tunnels.
Reroute pending state change messages are not logged if the tunnel exits reroute pending state by going down.
This example shows how to configure system logs for all TE tunnels when their reroute pending state changes.
To configure the generation of system logs for all TE tunnel events, use the logging tunnel all command. To stop logging these system messages, use the no form of the command.
TE interface configuration (config-te-if)
TE global configuration (config-te).
|
|
---|---|
No system message is logged if this feature is not configured.
This feature can be configured either for an individual TE tunnel or all the TE tunnels.
This example shows how to configure system logs for all TE tunnels when any event occurs.
To configure an label switched path (LSP) attribute list, use the lsp attribute command.
LSP attribute list that can be any case-sensitive, alphanumeric string up to 63 characters. |
|
|
---|---|
This example shows how to configure an LSP attribute list:
|
|
---|---|
Configures the Multiprotocol Label Switching (MPLS) Traffic Engineering Protocol (MPLS-TE). |