Table Of Contents
mpls ldp explicit-null
mpls ldp graceful-restart
mpls ldp graceful-restart timers forwarding-holding
mpls ldp graceful-restart timers max-recovery
mpls ldp graceful-restart timers neighbor-liveness
mpls ldp holdtime
mpls ldp loop-detection
mpls ldp maxhops
mpls ldp neighbor implicit-withdraw
mpls ldp neighbor labels accept
mpls ldp neighbor password
mpls ldp neighbor targeted
mpls ldp router-id
mpls ldp session protection
mpls load-balance per-label
mpls mtu
mpls netflow egress
mpls static binding ipv4
mpls static binding ipv4 vrf
mpls static crossconnect
mpls traffic-eng
mpls traffic-eng administrative-weight
mpls traffic-eng area
mpls traffic-eng attribute-flags
mpls traffic-eng auto-bw timers
mpls ldp explicit-null
To cause a router to advertise an Explicit Null label in situations where it would normally advertise an Implicit Null label, use the mpls ldp explicit-null command in global configuration mode. To disable this feature, use the no form of this command.
mpls ldp explicit-null [for prefix-acl | to peer-acl | for prefix-acl to peer-acl]
no mpls ldp explicit-null
Syntax Description
for prefix-acl
|
(Optional) Specifies prefixes for which Explicit Null should be advertised in place of Implicit Null.
|
to peer-acl
|
(Optional) Specifies Label Distribution Protocol (LDP) peers to which Explicit Null should be advertised in place of Implicit Null.
|
Defaults
Implicit Null is advertised for directly connected routes unless the command mpls ldp explicit-null has been executed.
Command Modes
Global configuration
Command History
Release
|
Modification
|
12.0(10)ST
|
This command was introduced.
|
12.0(14)ST
|
This command was integrated into Cisco IOS Release 12.0(14)ST.
|
12.1(2)T
|
This command was integrated into Cisco IOS Release 12.1(2)T.
|
12.1(8a)E
|
This command was integrated into Cisco IOS Release 12.1(8a)E.
|
12.2(2)T
|
This command was integrated into Cisco IOS Release 12.2(2)T.
|
12.2(4)T
|
This command was integrated into Cisco IOS Release 12.2(4)T.
|
12.2(8)T
|
This command was integrated into Cisco IOS Release 12.2(8)T.
|
12.0(21)ST
|
This command was integrated into Cisco IOS Release 12.0(21)ST.
|
12.0(22)S
|
This command was integrated into Cisco IOS Release 12.0(22)S.
|
12.0(23)S
|
This command was integrated into Cisco IOS Release 12.0(23)S.
|
12.2(14)S
|
This command was integrated into Cisco IOS Release 12.2(14)S.
|
12.2(13)T
|
This command was integrated into Cisco IOS Release 12.2(13)T.
|
12.2(33)SRA
|
This command was integrated into Cisco IOS Release 12.2(33)SRA.
|
12.2SX
|
This command is supported in the Cisco IOS Release 12.2SX train. Support in a specific 12.2SX release of this train depends on your feature set, platform, and platform hardware.
|
Usage Guidelines
Normally, LDP advertises an Implicit Null label for directly connected routes. The Implicit Null label causes the previous hop (penultimate) router to do penultimate hop popping. Situations exist where it might be desirable to prevent the penultimate router from performing penultimate hop popping and to force it to replace the incoming label with the Explicit Null label.
When you issue the mpls ldp explicit-null command, Explicit Null is advertised in place of Implicit Null for directly connected prefixes permitted by the prefix-acl argument to peers permitted by the peer-acl argument.
If you do not specify the prefix-acl argument in the command, Explicit Null is advertised in place of Implicit Null for all directly connected prefixes.
If you do not specify the peer-acl argument in the command, Explicit Null is advertised in place of Implicit Null to all peers.
Examples
The following command shows how to cause Explicit Null to be advertised for all directly connected routes to all LDP peers:
Router(config)# mpls ldp explicit-null
The following command sequence shows how to cause Explicit Null to be advertised for directly connected route 10.5.0.0 to all LDP peers and Implicit Null to be advertised for all other directly connected routes:
Router(config)# mpls ldp explicit-null
Router(config)# ip access-list standard adv-exp-null
Router(config-std-nacl)# permit 10.5.0.0
Router(config-std-nacl)# deny any
Related Commands
Command
|
Description
|
show mpls ip binding
|
Displays specified information about label bindings learned by LDP.
|
mpls ldp graceful-restart
To enable Multiprotocol Label Switching (MPLS) Label Distribution Protocol (LDP) Graceful Restart, use the mpls ldp graceful-restart command in global configuration mode. To disable LDP Graceful Restart, use the no form of this command.
mpls ldp graceful-restart
no mpls ldp graceful-restart
Syntax Description
This command has no arguments or keywords.
Defaults
LDP Graceful Restart is not enabled.
Command Modes
Global configuration
Command History
Release
|
Modification
|
12.0(29)S
|
This command was introduced.
|
12.3(14)T
|
This command was integrated into Cisco IOS Release 12.3(14)T.
|
12.2(25)S
|
This command was integrated into Cisco IOS Release 12.2(25)S.
|
12.2(28)SB
|
This command was integrated into Cisco IOS Release 12.2(28)SB and implemented on the Cisco 10000 series routers.
|
12.2(33)SRA
|
This command was integrated into Cisco IOS Release 12.2(33)SRA.
|
12.2(33)SXH
|
This command was integrated into Cisco IOS Release 12.2(33)SXH.
|
Usage Guidelines
LDP Graceful Restart must be enabled before an LDP session is established.
Using the no form of the command disables the Graceful Restart functionality on all LDP sessions.
Examples
The command in the following example enables LDP Graceful Restart on a router:
Router(config)# mpls ldp graceful-restart
Related Commands
Command
|
Description
|
mpls ldp graceful-restart timers forwarding-holding
|
Specifies the amount of time the MPLS forwarding state should be preserved after the control plane restarts.
|
mpls ldp graceful-restart timers max-recovery
|
Specifies the amount of time a router should hold stale label-FEC bindings after an LDP session has been reestablished.
|
mpls ldp graceful-restart timers neighbor-liveness
|
Specifies the amount of time a router should wait for an LDP session to be reestablished.
|
mpls ldp graceful-restart timers forwarding-holding
To specify the amount of time the Multiprotocol Label Switching (MPLS) forwarding state should be preserved after the control plane restarts, use the mpls ldp graceful-restart timers forwarding-holding command in global configuration mode. To revert to the default timer value, use the no form of this command.
mpls ldp graceful-restart timers forwarding-holding secs
no mpls ldp graceful-restart timers forwarding-holding
Syntax Description
secs
|
The amount of time (in seconds) that the MPLS forwarding state should be preserved after the control plane restarts. The default is 300 seconds. The acceptable range of values is 30 to 300 seconds.
|
Defaults
After the control plane on the Cisco 7500 and Cisco 10000 series router restarts, the MPLS forwarding state is preserved for 300 seconds.
Command Modes
Global configuration
Command History
Release
|
Modification
|
12.2(25)S
|
This command was introduced.
|
12.2(28)SB
|
This command was integrated into Cisco IOS Release 12.2(28)SB and implemented on the Cisco 10000 series routers.
|
12.2(33)SRA
|
This command was integrated into Cisco IOS Release 12.2(33)SRA.
|
12.2(33)SXH
|
This command was integrated into Cisco IOS Release 12.2(33)SXH.
|
Usage Guidelines
Configuring the local forwarding-holding timer to a value less than the IOS FT Reconnect Timeout of 120 seconds may prevent a Label Distribution Protocol (LDP) session from being established. Configure the forwarding-holding timer to less than 120 seconds only if an LDP neighbor has an FT Reconnect Timeout value of less than 120 seconds.
If the timer expires, all entries that are marked stale are deleted.
Examples
In the following example, the MPLS forwarding state is preserved for 300 seconds after the control plane restarts:
Router(config)# mpls ldp graceful-restart timers forwarding-holding 300
Related Commands
Command
|
Description
|
mpls ldp graceful-restart timers max-recovery
|
Specifies the amount of time a router should hold stale label-FEC bindings after an LDP session has been reestablished.
|
mpls ldp graceful-restart timers neighbor-liveness
|
Specifies the amount of time a router should wait for an LDP session to be reestablished.
|
mpls ldp graceful-restart timers max-recovery
To specify the amount of time a router should hold stale label-Forwarding Equivalence Class (FEC) bindings after a Label Distribution Protocol (LDP) session has been reestablished, use the mpls ldp graceful-restart timers max-recovery command in global configuration mode. To revert to the default timer value, use the no form of this command.
mpls ldp graceful-restart timers max-recovery secs
no mpls ldp graceful-restart timers max-recovery
Syntax Description
secs
|
The amount of time (in seconds) that the router should hold stale label-FEC bindings after an LDP session has been reestablished. The default is 120 seconds. The acceptable range of values is 15 to 600 seconds.
|
Defaults
Stale label-FEC bindings are held for 120 seconds after an LDP session has been reestablished.
Command Modes
Global configuration
Command History
Release
|
Modification
|
12.0(29)S
|
This command was introduced.
|
12.3(14)T
|
This command was integrated into Cisco IOS Release 12.3(14)T.
|
12.2(28)SB
|
This command was integrated into Cisco IOS Release 12.2(28)SB and implemented on the Cisco 10000 series routers.
|
12.2(33)SRA
|
This command was integrated into Cisco IOS Release 12.2(33)SRA.
|
12.2(33)SXH
|
This command was integrated into Cisco IOS Release 12.2(33)SXH.
|
Usage Guidelines
After the timer expires, all stale label-FEC bindings learned from the associated LDP session are removed, which results in the removal of any forwarding table entries that are based on those bindings.
Examples
In the following example, the router should hold stale label-FEC bindings after an LDP session has been reestablished for 180 seconds:
Router(config)# mpls ldp graceful-restart timers max-recovery 180
Related Commands
Command
|
Description
|
mpls ldp graceful-restart timers forwarding-holding
|
Specifies the amount of time the MPLS forwarding state should be preserved after the control plane restarts.
|
mpls ldp graceful-restart timers neighbor-liveness
|
Specifies the amount of time a router should wait for an LDP session to be reestablished.
|
mpls ldp graceful-restart timers neighbor-liveness
To specify the upper bound on the amount of time a router should wait for a Label Distribution Protocol (LDP) session to be reestablished, use the mpls ldp graceful-restart timers neighbor-liveness command in global configuration mode. To revert to the default timer value, use the no form of this command.
mpls ldp graceful-restart timers neighbor-liveness secs
no mpls ldp graceful-restart timers neighbor-liveness
Syntax Description
secs
|
The amount of time (in seconds) that the router should wait for an LDP session to be reestablished. The default is 120 seconds. The range is 5 to 300 seconds.
|
Defaults
The default is a maximum of 120 seconds.
Command Modes
Global configuration
Command History
Release
|
Modification
|
12.0(29)S
|
This command was introduced.
|
12.3(14)T
|
This command was integrated into Cisco IOS Release 12.3(14)T.
|
12.2(28)SB
|
This command was integrated into Cisco IOS Release 12.2(28)SB and implemented on the Cisco 10000 series routers.
|
12.2(33)SRA
|
This command was integrated into Cisco IOS Release 12.2(33)SRA.
|
12.2(33)SXH
|
This command was integrated into Cisco IOS Release 12.2(33)SXH.
|
Usage Guidelines
The amount of time a router waits for an LDP session to be reestablished is the lesser of the following values:
•
The value of the peer's fault tolerant (FT) type length value (TLV) reconnect timeout
•
The value of the neighbor liveness timer
If the router cannot reestablish an LDP session with the neighbor in the time allotted, the router deletes the stale label-FEC bindings received from that neighbor.
Examples
The command in the following example sets the amount of time that the router should wait for an LDP session to be reestablished to 30 seconds:
Router(config)# mpls ldp graceful-restart timers neighbor-liveness 30
Related Commands
Command
|
Description
|
mpls ldp graceful-restart timers forwarding-holding
|
Specifies the amount of time the MPLS forwarding state should be preserved after the control plane restarts.
|
mpls ldp graceful-restart timers max-recovery
|
Specifies the amount of time a router should hold stale label-FEC bindings after an LDP session has been reestablished.
|
mpls ldp holdtime
To change the time for which an Label Distribution Protocol (LDP) session is maintained in the absence of LDP messages from the session peer, use the mpls ldp holdtime command in global configuration mode. To disable this command, use the no form of the command.
mpls ldp holdtime seconds
no mpls ldp holdtime seconds
Syntax Description
seconds
|
Number from 15 to 2147483 that defines the time, in seconds, an LDP session is maintained in the absence of LDP messages from the session peer. The default is 180.
|
Defaults
The default value for the seconds argument is 180.
Command Modes
Global configuration
Command History
Release
|
Modification
|
11.1CT
|
This command was introduced.
|
12.0(10)ST
|
This command was modified to reflect Multiprotocol Label Swithcing (MPLS) IETF command syntax and terminology.
|
12.0(14)ST
|
This command was integrated into Cisco IOS Release 12.0(14)ST.
|
12.1(2)T
|
This command was integrated into Cisco IOS Release 12.1(2)T.
|
12.1(8a)E
|
This command was integrated into Cisco IOS Release 12.1(8a)E.
|
12.2(2)T
|
This command was integrated into Cisco IOS Release 12.2(2)T.
|
12.2(4)T
|
This command was integrated into Cisco IOS Release 12.2(4)T.
|
12.2(8)T
|
This command was integrated into Cisco IOS Release 12.2(8)T.
|
12.0(21)ST
|
This command was integrated into Cisco IOS Release 12.0(21)ST.
|
12.0(22)S
|
This command was integrated into Cisco IOS Release 12.0(22)S.
|
12.0(23)S
|
This command was integrated into Cisco IOS Release 12.0(23)S.
|
12.2(14)s
|
This command was integrated into Cisco IOS Release 12.2(14)S.
|
12.2(13)T
|
This command was integrated into Cisco IOS Release 12.2(13)T.
|
12.2(33)SRA
|
This command was integrated into Cisco IOS Release 12.2(33)SRA.
|
12.2SX
|
This command is supported in the Cisco IOS Release 12.2SX train. Support in a specific 12.2SX release of this train depends on your feature set, platform, and platform hardware.
|
Usage Guidelines
When an LDP session is established between two LSRs, the hold time used for the session is the lower of the values configured on the two LSRs.
Examples
The following example shows how to configure the hold time of LDP sessions for 30 seconds:
Router# mpls ldp holdtime 30
Related Commands
Command
|
Description
|
show mpls ldp parameters
|
Displays the current LDP parameter.
|
show mpls atm-ldp bindings
|
Displays specified entries from the ATM label binding database.
|
mpls ldp loop-detection
To enable the label distribution protocol (LDP) optional loop detection mechanism, use the mpls ldp loop-detection command in global configuration mode. To disable this feature, use the no form of this command.
mpls ldp loop-detection
no mpls ldp loop-detection
Syntax Description
This command has no optional keywords or arguments.
Defaults
LDP loop detection is disabled.
Command Modes
Global configuration
Command History
Release
|
Modification
|
12.0(10)ST
|
This command was introduced.
|
12.1(2)T
|
This command was integrated into Cisco IOS Release 12.1(2)T.
|
12.1(8a)E
|
This command was integrated into Cisco IOS Release 12.1(8a)E.
|
12.0(22)S
|
This command was integrated into Cisco IOS Release 12.0(22)S.
|
12.2(33)SRA
|
This command was integrated into Cisco IOS Release 12.2(33)SRA.
|
12.2SX
|
This command is supported in the Cisco IOS Release 12.2SX train. Support in a specific 12.2SX release of this train depends on your feature set, platform, and platform hardware.
|
Usage Guidelines
The LDP loop detection mechanism is intended for use in networks of devices that do not use time-to-live mechanisms (for example, ATM switches) that cannot fairly allocate device resources among traffic flows.
The LDP loop detection mechanism is used with the Downstream on Demand method of label distribution, supplementing the Downstream on Demand hop count mechanism to detect looping LSPs that might occur during routing transitions.
Examples
The following command sets the LDP loop detection mechanism on:
Router(config)# mpls ldp loop-detection
Related Commands
Command
|
Description
|
mpls ldp maxhops
|
Limits the number of hops permitted in an LSP established by the Downstream on Demand method of label distribution.
|
mpls ldp maxhops
To limit the number of hops permitted in a label switched path (LSP) established by the Downstream on Demand method of label distribution, use the mpls ldp maxhops command in global configuration mode. To disable this feature, use the no form of this command.
mpls ldp maxhops number
no mpls ldp maxhops
Syntax Description
number
|
Number from 1 to 255, inclusive, that defines the maximum hop count. The default is 254.
|
Defaults
The default is 254 hops.
Command Modes
Global configuration
Command History
Release
|
Modification
|
11.1CT
|
This command was introduced.
|
12.0(10)ST
|
This command was updated with MPLS command syntax and terminology.
|
12.1(2)T
|
This command was integrated into Cisco IOS Release 12.1(2)T.
|
12.1(8a)E
|
This command was integrated into Cisco IOS Release 12.1(8a)E.
|
12.2(33)SRA
|
This command was integrated into Cisco IOS Release 12.2(33)SRA.
|
12.2SX
|
This command is supported in the Cisco IOS Release 12.2SX train. Support in a specific 12.2SX release of this train depends on your feature set, platform, and platform hardware.
|
Usage Guidelines
When an ATM label switch router (LSR) initiates a request for a label binding, it sets the hop count value in the Label Request message to 1. Subsequent ATM-LSRs along the path to the edge of the ATM label switching region increment the hop count before forwarding the Label Request message to the next hop.
When an ATM LSR receives a Label Request message, it does not send a Label Mapping message in response, nor does it propagate the request to the destination next hop if the hop count value in the request equals or exceeds the maxhops value. Instead, the ATM LSR returns an error message that specifies that the maximum allowable hop count has been reached. This threshold is used to prevent forwarding loops in the setting up of label switch paths across an ATM region.
Examples
The following example sets the hop count limit to 10:
Router(config)# mpls ldp maxhops 10
Related Commands
Command
|
Description
|
mpls ldp router-id
|
Specifies a preferred interface for determining the LDP router ID.
|
show mpls atm-ldp bindings
|
Displays specified entries from the ATM label binding database.
|
show mpls ip binding
|
Displays specified information about label bindings learned by LDP.
|
mpls ldp neighbor implicit-withdraw
To configure the advertisement of a new label for a Forwarding Equivalence Class (FEC) without the withdrawal of the previously advertised label, use the mpls ldp neighbor implicit-withdraw command in global configuration mode. To disable this option for the specified neighbor, use the no form of this command.
mpls ldp neighbor [vrf vpn-name] ip-addr implicit-withdraw
no mpls ldp neighbor [vrf vpn-name] ip-addr [implicit-withdraw]
Syntax Description
vrf vpn-name
|
(Optional) VPN routing and forwarding instance for the specified neighbor.
|
ip-addr
|
Router ID (IP address) that identifies a neighbor.
|
Defaults
When the vrf keyword is not specified in this command, the label distribution protocol (LDP) neighbor is configured in the default routing domain.
If this command is not configured, when it is necessary for LDP to change the label it has advertised to a neighbor for some prefix, it will withdraw the previously advertised label before advertising the new label to the neighbor.
For the no form of the command, if the implicit-withdraw keyword is not specified, all configuration information for the specified neighbor reverts to the defaults and the neighbor record is deleted.
Command Modes
Global configuration
Command History
Release
|
Modification
|
12.0(21)ST
|
This command was modified to add the implicit-withdraw keyword.
|
12.0(22)S
|
This command was integrated into Cisco IOS Release 12.0(22)S.
|
12.0(23)S
|
This command was implemented on the Cisco 10000(PRE-1) router.
|
12.2(13)T
|
This command was implemented on the Cisco 2600 and 3600 routers.
|
12.2(14)S
|
This command was implemented on the Cisco 7200 and 7500 series routers and integrated into Cisco IOS Release 12.2(14)S.
|
12.2(33)SRA
|
This command was integrated into Cisco IOS Release 12.2(33)SRA.
|
12.2SX
|
This command is supported in the Cisco IOS Release 12.2SX train. Support in a specific 12.2SX release of this train depends on your feature set, platform, and platform hardware.
|
Usage Guidelines
By default, in Cisco IOS Release 12.0(21)ST and later, LDP withdraws the previously advertised label by using a withdraw message before advertising a new label for a FEC. In Cisco IOS releases prior to 12.0(21)ST, LDP did not withdraw a previously advertised label before advertising a new label for a FEC. In those older releases, the new label advertisement served as an implied withdraw and LDP did not send a withdraw message. To cause LDP now to operate as it did in releases before Cisco IOS release 12.0(21)ST—that is, to make LDP now advertise a new label for a FEC without first withdrawing the previously advertised label—use this command's implicit-withdraw keyword.
Router(config)# mpls ldp neighbor 10.10.10.10 implicit-withdraw
Using the implicit-withdraw keyword avoids generating the overhead from an exchange of label withdraw and label release messages.
To disable the implicit-withdraw option, use the no form of the command with the implicit-withdraw keyword. This returns the router to the default, which requires that LDP withdraw the previously advertised label for a FEC before advertising a new label.
Router(config)# no mpls ldp neighbor 10.10.10.10 implicit-withdraw
Examples
In the following example, LDP does not send a label-withdraw message to the neighbor whose router ID is 10.10.10.10 when a need exists to change the previously advertised label for a FEC:
Router(config)# mpls ldp neighbor 10.10.10.10 implicit-withdraw
Related Commands
Command
|
Description
|
mpls ldp neighbor password
|
Configures a password key for computing MD5 checksums for the session TCP connection with the specified neighbor.
|
mpls ldp neighbor targeted
|
Sets up a targeted session with the specified neighbor.
|
mpls ldp neighbor labels accept
To configure a label switching router (LSR) to filter label distribution protocol (LDP) inbound label bindings from a particular LDP peer, use the mpls ldp neighbor labels accept command in global configuration mode. To disable this feature, use the no form of this command.
mpls ldp neighbor [vrf vpn-name] nbr-address labels accept acl
no mpls ldp neighbor [vrf vpn-name] nbr-address labels accept acl
Syntax Description
vrf vpn-name
|
(Optional) Specifies VPN routing and forwarding instance (vpn-name) for accepting labels.
|
nbr-address
|
Specifies address of the LDP peer whose advertisements are to be filtered.
|
labels accept acl
|
Specifies the prefixes (access control list) that are acceptable (permitted).
|
Defaults
If the vrf keyword is not specified, the specified LDP neighbor is configured in the default routing domain.
Command Modes
Global configuration
Command History
Release
|
Modification
|
12.0(26)S
|
This command was introduced.
|
12.2(25)S
|
This command was integrated into Cisco IOS Release 12.2(25)S.
|
12.3(14)T
|
This command was integrated into Cisco IOS Release 12.3(14)T.
|
12.2(18)SXE
|
This command was integrated into Cisco IOS Release 12.2(18)SXE.
|
12.2(33)SRA
|
This command was integrated into Cisco IOS Release 12.2(33)SRA.
|
Usage Guidelines
The specified ACL is used to filter label bindings advertised by the specified neighbor. If the prefix part of the label binding is permitted by the ACL, the router will accept the binding. If the prefix is denied, the router will not accept or store the binding.
This functionality is particularly useful when two different entities manage peer LSRs; that is, the recipient cannot perform filtering by altering the configuration of the sender. This is likely to occur in an Multiprotocol Label Switching (MPLS) virtual private network (VPN) that is using the LDP-based Carrier Supporting Carrier (CSC) feature. In that situation, the backbone carrier may want to restrict the set of label bindings that its provider edge (PE) router may learn from an adjacent customer edge (CE) router that a customer carrier operates.
When inbound label binding filtering is configured, certain configuration changes may require a router to retain bindings that it previously discarded. For example:
•
Inbound filtering is disabled.
•
An inbound filtering ACL is redefined to be less restrictive.
A router does not maintain a record of the set of bindings it previously discarded. Therefore, it cannot ask its neighbors to readvertise just those bindings. In addition, LDP (as defined by RFC 3036) does not provide a means for a router to signal its neighbors to readvertise all label bindings. Consequently, to relearn label bindings following such configuration changes, you must reset the LDP session or sessions by using the clear mpls ldp neighbor command.
Note
The mpls ldp neighbor labels accept command has no effect on an LC-ATM interface. Such an interface behaves as though this command had not been executed. The mpls ldp request-labels ACL command, which is supported for LC-ATM, controls which label bindings are requested (accepted) from neighbors.
Examples
The following example specifies that the LSR accepts inbound label bindings from neighbor 10.19.19.19 in vrf vpn1 for prefixes permitted by the ACL named aclone:
Router(config)# mpls ldp neighbor vrf vpn1 10.19.19.19 label accept aclone
Related Commands
Command
|
Description
|
clear mpls ldp neighbor
|
Forcibly resets an LDP session.
|
mpls ldp advertise-labels
|
Controls the distribution of locally assigned (incoming) labels by means of LDP.
|
show ip access list
|
Displays the list of configured access lists and their definitions.
|
show mpls ldp neighbor
|
Displays the status of the LDP sessions.
|
mpls ldp neighbor password
To configure a password key for computing Message Digest 5 (MD5) checksums for the session TCP connection with the specified neighbor, use the mpls ldp neighbor password command in global configuration mode. To disable this option for the specified neighbor, use the no form of this command.
mpls ldp neighbor [vrf vpn-name] ip-addr password [0-7] pswd-string
no mpls ldp neighbor [vrf vpn-name] ip-addr [password [0-7] pswd-string]
Syntax Description
vrf vpn-name
|
(Optional) VPN routing and forwarding instance for the specified neighbor.
|
ip-addr
|
Router ID (IP address) that identifies a neighbor.
|
0-7
|
(Optional) The [0-7] encryption option is not supported.
|
pswd-string
|
Password key to be used for computing MD5 checksums for the session TCP connection with the specified neighbor.
|
Defaults
Unless the TCP MD5 Signature Option is explicitly configured with the password pswd-string keyword and argument for session TCP connections, the option is not used.
When the vrf keyword is not specified in this command, the label distribution protocol (LDP) neighbor is configured in the default routing domain.
For the no form of the command, if the password keyword is not specified, all configuration information for the specified neighbor reverts to the defaults and the neighbor record is deleted.
Command Modes
Global configuration
Command History
Release
|
Modification
|
12.0(10)ST
|
This command was introduced.
|
12.0(14)ST
|
This command was modified to reflect MPLS VPN support for LDP.
|
12.1(2)T
|
This command was integrated into Cisco IOS Release 12.1(2)T.
|
12.1(8a)E
|
This command was integrated into Cisco IOS Release 12.1(8a)E.
|
12.2(2)T
|
This command was integrated into Cisco IOS Release 12.2(2)T.
|
12.2(4)T
|
This command was integrated into Cisco IOS Release 12.2(4)T.
|
12.2(8)T
|
This command was integrated into Cisco IOS Release 12.2(8)T.
|
12.0(21)ST
|
This command was integrated into Cisco IOS Release 12.0(21)ST.
|
12.0(22)S
|
This command was integrated into Cisco IOS Release 12.0(22)S.
|
12.0(23)S
|
This command was integrated into Cisco IOS Release 12.0(23)S.
|
12.2(13)T
|
This command was integrated into Cisco IOS Release 12.2(13)T.
|
12.2(33)SRA
|
This command was integrated into Cisco IOS Release 12.2(33)SRA.
|
12.2SX
|
This command is supported in the Cisco IOS Release 12.2SX train. Support in a specific 12.2SX release of this train depends on your feature set, platform, and platform hardware.
|
Usage Guidelines
You can invoke authentication between two LDP peers, verifying each segment sent on the TCP connection between the peers. To do so, you must configure authentication on both LDP peers using the same password; otherwise, the peer session is not established.
The authentication capability uses the MD5 algorithm. MD5, an algorithm used in conjunction with SNMP, verifies the integrity of the communication, authenticates the origin of the message, and checks for timeliness.
Invoking the mpls ldp neighbor password command causes the generation and checking of the MD5 digest for every segment sent on the TCP connection.
Configuring a password for an LDP neighbor causes an existing LDP session to be torn down and a new session to be established.
If a router has a password configured for a neighbor, but the neighbor router does not have a password configured, a message such as the following appears on the console while the two routers attempt to establish an LDP session:
%TCP-6-BADAUTH: No MD5 digest from [peer's IP address]:11003 to [local router's
IP address]:646
Similarly, if the two routers have different passwords configured, a message such as the following appears on the console:
%TCP-6-BADAUTH: Invalid MD5 digest from [peer's IP address]:11004 to [local router's
IP address]:646
Examples
In the following example, the string password1 is configured as the password key for use with MD5 for the neighbor whose router ID is 139.27.0.15:
Router(config)# mpls ldp neighbor 139.27.0.15 password password1
In the following example, the string password1 is configured as the password for use with MD5 for the LDP neighbor having router ID 4.4.4.4 in the VPN routing and forwarding instance named vpn1:
Router(config)# mpls ldp neighbor vrf vpn1 4.4.4.4 password password1
Related Commands
Command
|
Description
|
mpls ldp neighbor implicit-widthdraw
|
Configures the advertisement of a new label for a FEC without the withdrawal of the previously advertised label.
|
mpls ldp neighbor targeted
|
Sets up a targeted session with the specified neighbor.
|
mpls ldp neighbor targeted
To set up a targeted session with a specified neighbor, use the mpls ldp neighbor targeted command in global configuration mode. To disable a targeted session, use the no form of this command.
mpls ldp neighbor [vrf vpn-name] ip-addr targeted [ldp | tdp]
no mpls ldp neighbor [vrf vpn-name] ip-addr [targeted [ldp | tdp]]
Syntax Description
vrf vpn-name
|
(Optional) VPN routing and forwarding (VRF) instance for a specified neighbor.
|
ip-addr
|
Router ID (IP address) that identifies a neighbor.
|
ldp
|
(Optional) Specifies Label Distribution Protocol (LDP) as the label protocol for the targeted session.
|
tdp
|
(Optional) Specifies Tag Distribution Protocol (TDP) as the label protocol for the targeted session.
|
Defaults
When the targeted keyword is not specified, a targeted session is not set up with the neighbor.
For the no form of the command, if the targeted keyword is not specified, all configuration information for the specified neighbor reverts to the defaults and the neighbor record is deleted.
Command Modes
Global configuration
Command History
Release
|
Modification
|
12.0(22)S
|
This command was introduced.
|
12.2(13)T
|
This command was integrated into Cisco IOS Release 12.2(13)T.
|
12.2(33)SRA
|
This command was integrated into Cisco IOS Release 12.2(33)SRA.
|
12.2SX
|
This command is supported in the Cisco IOS Release 12.2SX train. Support in a specific 12.2SX release of this train depends on your feature set, platform, and platform hardware.
|
Usage Guidelines
If you do not specify the label protocol for the targeted session, the label protocol specified with the mpls label protocol command is used. If the mpls label protocol command is not configured, then LDP is used for the targeted session.
Use the mpls ldp neighbor targeted command when you need to set up a targeted session and other means of establishing targeted sessions do not apply, such as configuring mpls ip on a traffic engineering (TE) tunnel or configuring Any Transport over MPLS (AToM) virtual circuits (VCs). For example, you would use this command to set up a targeted session between directly connected MPLS label switch routers (LSRs) when MPLS label forwarding convergence time is an issue.
The mpls ldp neighbor targeted command can improve label convergence time for directly connected neighbor LSRs when the links directly connecting them are down. When the links between the neighbor LSRs are up, both the link and targeted Hellos maintain the LDP session. If the links between the neighbor LSRs go down, the targeted Hellos maintain the session, allowing the LSRs to retain labels learned from each other. When a link directly connecting the LSRs comes back up, the LSRs can immediately reinstall labels for forwarding use without having to reestablish their LDP session and exchange labels.
Examples
In the following example, the router sets up a targeted session with the neighbor 10.10.10.10 using TDP as the label protocol:
Router(config)# mpls ldp neighbor 10.10.10.10 targeted
In the following example, the router sets up a targeted session with the neighbor 10.10.10.10 using LDP as the label protocol:
Router(config)# mpls label protocol ldp
Router(config)# mpls ldp neighbor 10.10.10.10 targeted
Another way to set up a targeted session using LDP without changing the default label protocol is as follows:
Router(config)# mpls ldp neighbor 10.10.10.10 targeted ldp
Related Commands
Commands
|
Description
|
mpls ldp neighbor implicit-widthdraw
|
Configures the advertisement of a new label for a FEC without the withdrawal of the previously advertised label.
|
mpls ldp neighbor password
|
Configure a password key for computing MD5 checksums for the session TCP connection with the specified neighbor.
|
mpls ldp router-id
To specify a preferred interface for the Label Distribution Protocol (LDP) router ID, use the mpls ldp router-id command in global configuration mode. To disable the interface from being used as the LDP router ID, use the no form of this command.
mpls ldp router-id [vrf vrf-name] interface [force]
no mpls ldp router-id [vrf vrf-name] [interface [force]]
Syntax Description
vrf vrf-name
|
(Optional) Selects the interface as the LDP router ID for the named Virtual Private Network (VPN) routing and forwarding (VRF) table. The selected interface must be associated with the named VRF.
|
interface
|
Causes the IP address of the specified interface to be used as the LDP router ID, provided that the interface is operational.
|
force
|
(Optional) Alters the behavior of the mpls ldp router-id command, as described in the "Usage Guidelines" section.
|
Command Default
If the mpls ldp router-id command is not executed, the router determines the LDP router ID as follows:
1.
The router examines the IP addresses of all operational interfaces.
2.
If these IP addresses include loopback interface addresses, the router selects the largest loopback address as the LDP router ID.
3.
Otherwise, the router selects the largest IP address pertaining to an operational interface as the LDP router ID.
Command Modes
Global configuration
Command History
Release
|
Modification
|
12.0(10)ST
|
This command was introduced.
|
12.0(14)ST
|
The force keyword was added.
|
12.1(2)T
|
This command was integrated into Cisco IOS Release 12.1(2)T.
|
12.1(8a)E
|
This command was integrated into Cisco IOS Release 12.1(8a)E.
|
12.0(22)S
|
This command was integrated into Cisco IOS Release 12.0(22)S.
|
12.4(5)
|
The vrf vrf-name keyword/argument pair was added.
|
12.2(33)SRA
|
This command was integrated into Cisco IOS Release 12.2(33)SRA.
|
12.2(33)SXH
|
This command was integrated into Cisco IOS Release 12.2(33)SXH.
|
Usage Guidelines
The mpls ldp router-id command allows you to use the IP address of an interface as the LDP router ID.
The following steps describe the normal process for determining the LDP router ID:
1.
The router considers all the IP addresses of all operational interfaces.
2.
If these addresses include loopback interface addresses, the router selects the largest loopback address. Configuring a loopback address helps ensure a stable LDP ID for the router, because the state of loopback addresses does not change. However, configuring a loopback interface and IP address on each router is not required.
The loopback IP address does not become the router ID of the local LDP ID under the following circumstances:
–
If the loopback interface has been explicitly shut down.
–
If the mpls ldp router-id command specifies that a different interface should be used as the LDP router ID.
If you use a loopback interface, make sure that the IP address for the loopback interface is configured with a /32 network mask. In addition, make sure that the routing protocol in use is configured to advertise the corresponding /32 network.
3.
Otherwise, the router selects the largest interface address.
The router might select a router ID that is not usable in certain situations. For example, the router might select an IP address that the routing protocol cannot advertise to a neighboring router.
The router implements the router ID the next time it is necessary to select an LDP router ID. The effect of the command is delayed until the next time it is necessary to select an LDP router ID, which is typically the next time the interface is shut down or the address is deconfigured.
If you use the force keyword with the mpls ldp router-id command, the router ID takes effect more quickly. However, implementing the router ID depends on the current state of the specified interface:
•
If the interface is up (operational) and its IP address is not currently the LDP router ID, the LDP router ID is forcibly changed to the IP address of the interface. This forced change in the LDP router ID tears down any existing LDP sessions, releases label bindings learned via the LDP sessions, and interrupts MPLS forwarding activity associated with the bindings.
•
If the interface is down, the LDP router ID is forcibly changed to the IP address of the interface when the interface transitions to up. This forced change in the LDP router ID tears down any existing LDP sessions, releases label bindings learned via the LDP sessions, and interrupts MPLS forwarding activity associated with the bindings.
The following behaviors apply to the default VRF as well as to VRFs that you explicitly configure with the vrf vrf-name keyword/argument pair:
•
The interface you select as the router ID of the VRF must be associated with the VRF.
•
If the interface is no longer associated with the VRF, the mpls ldp router-id command that uses the interface is removed.
•
If the selected interface is deleted, the mpls ldp router-id command that uses the interface is removed.
•
If you delete a VRF that you configured, the mpls ldp router-id command for the deleted VRF is removed. The default VRF cannot be deleted.
Examples
The following example shows that the POS2/0/0 interface has been specified as the preferred interface for the LDP router ID. The IP address of that interface is used as the LDP router ID.
Router(config)# mpls ldp router-id pos2/0/0
The following example shows that the Ethernet 1/0 interface, which is associated with the VRF vpn-1, is the preferred interface. The IP address of the interface is used as the LDP router ID.
Router(config)# mpls ldp router-id vrf vpn-1 eth1/0
Related Commands
Command
|
Description
|
show mpls ldp discovery
|
Displays the status of the LDP discovery process.
|
mpls ldp session protection
To enable Multiprotocol Label Switching (MPLS) Label Distribution Protocol (LDP) autoconfiguration for existing LDP sessions or when new sessions are established, use the mpls ldp session protection command in global configuration mode. To disable this feature, use the no form of this command.
mpls ldp session protection [vrf vpn-name] [for acl] [duration {infinite | seconds}]
no mpls ldp session protection [vrf vpn-name] [for acl] [duration {infinite | seconds}]
Syntax Description
vrf vpn-name
|
(Optional) Specifies a VPN routing and forwarding instance (vpn-name) for accepting labels. This keyword is available when the router has at least one VRF configured.
|
for acl
|
(Optional) Specifies a standard IP access control list that contains the prefixes that are to be protected.
|
duration
|
(Optional) Specifies the time that the LDP Targeted Hello Adjacency should be retained after a link is lost.
Note If you use this keyword, you must select either the infinite keyword or the seconds argument.
|
infinite
|
Specifies that the LDP Targeted Hello Adjacency should be retained forever after a link is lost.
|
seconds
|
Specifies the time in seconds that the LDP Targeted Hello Adjacency should be retained after a link is lost. The valid range of values is 30 to 2,147,483 seconds.
|
Defaults
LDP sessions are not established.
Command Modes
Global configuration
Command History
Release
|
Modification
|
12.0(30)S
|
This command was introduced.
|
12.3(14)T
|
This command was integrated into Cisco IOS Release 12.3(14)T.
|
12.2(28)SB
|
This command was integrated into Cisco IOS Release 12.2(28)SB.
|
12.2(33)SRA
|
This command was integrated into Cisco IOS Release 12.2(33)SRA.
|
12.2(33)SXH
|
This command was integrated into Cisco IOS Release 12.2(33)SXH.
|
Usage Guidelines
This command is not supported under the following circumstances:
•
With TDP sessions
•
With extended access lists
•
With LC-ATM routers
If you issue the mpls ldp session protection command without the duration keyword, then session protection is enabled for 86400 seconds (24 hours) meaning that the LDP Targeted Hello Adjacency is retained for 24 hours after a link is lost. This is the default timeout.
If you issue the mpls ldp session protection duration infinite command, then session protection is enabled forever meaning that the LDP Targeted Hello Adjacency is retained forever after a link is lost.
If you issue the mpls ldp session protection duration seconds command, then session protection is enabled for the number of seconds indicated meaning that the LDP Targeted Hello Adjacency is retained for that amount of time. For example, if you issued mpls ldp session protection duration 100, then the LDP Targeted Hello Adjacency is retained for 100 seconds after a link is lost.
Examples
In the following example, MPLS LDP Autoconfiguration is enabled for LDP sessions for peers whose router IDs are listed in access control list rtr4:
Router(config)# mpls ldp session protection for rtr4
Related Commands
Command
|
Description
|
clear mpls ldp neighbor
|
Forcibly resets an LDP session.
|
show mpls ldp neighbor
|
Displays the contents of the LDP.
|
mpls load-balance per-label
To enable the load balancing for the tag-to-tag traffic, use the mpls load-balance per-label command in global configuration mode. To return to the default settings, use the no form of this command.
mpls load-balance per-label
no mpls load-balance per-label
Syntax Description
This command has no arguments or keywords.
Defaults
Disabled
Command Modes
Global configuration
Command History
Release
|
Modification
|
12.2(17b)SXA
|
Support for this command was introduced on the Supervisor Engine 720.
|
12.2(17d)SXB
|
Support for this command on the Supervisor Engine 2 was extended to Release 12.2(17d)SXB.
|
12.2(33)SRA
|
This command was integrated into Cisco IOS Release 12.2(33)SRA.
|
Usage Guidelines
When you enable load balancing for the tag-to-tag traffic, the traffic is balanced based on the incoming label (per prefix) among Multiprotocol Label Switching (MPLS) interfaces. Each MPLS interface supports an equal number of incoming labels.
You can use the show mpls ttfib command to display the incoming label (indicated by an asterisk) that is included in the load balancer.
Examples
This example shows how to enable the load balancing for the tag-to-tag traffic:
Router(config)# mpls load-balance per-label
This example shows how to disable the load balancing for the tag-to-tag traffic:
Router(config)# no mpls load-balance per-label
Related Commands
Command
|
Description
|
show mpls ttfib
|
Displays information about the MPLS TTFIB table.
|
mpls mtu
To set the per-interface Multiprotocol Label Switching (MPLS) maximum transmission unit (MTU) for labeled packets, use the mpls mtu command in interface configuration mode. To restore the default, use the no form of this command.
mpls mtu [override] bytes
no mpls mtu
Syntax Description
override
|
(Optional) Allows you to set the MPLS MTU value higher than the interface MTU value on interfaces (such as Ethernet) that have a default interface MTU value of 1580 or less. The override keyword is not available for interface types that do not have a default MTU value of 1580 or less.
|
bytes
|
The MTU in bytes includes the label stack in the value.
|
Defaults
The default MPLS MTU is the MTU configured for the interface.
Command Modes
Interface configuration
Command History
Release
|
Modification
|
11.1CT
|
This command was introduced.
|
12.1(3)T
|
This command was modified to incorporate new MPLS terminology.
|
12.2(25)S
|
The command changed the maximum allowable MPLS MTU values. See the "Usage Guidelines for Cisco IOS Release 12.2(25)S" section for more information.
|
12.2(27)SBC
|
The command changed so that you cannot set the MPLS MTU value larger than the interface MTU value. The override keyword was introduced. See the "Usage Guidelines for Cisco IOS Release 12.2(27)SBC, 12.2(33)SRA, 12.4(11)T, 12.2(33)SXH, and Later Releases" section for more information.
|
12.(28)SB
|
This command was integrated into Cisco IOS Release 12.2(28)SB.
|
12.2(33)SRA
|
This command was integrated into Cisco IOS Release 12.2(33)SRA.
|
12.4(11)T
|
This command was integrated into Cisco IOS Release 12.4(11)T.
|
12.2(33)SXH
|
This command was integrated into Cisco IOS Release 12.2(33)SXH.
|
Usage Guidelines
Usage Guidelines for Cisco IOS Release 12.2(25)S
Caution 
Although you can set the MPLS MTU to a value greater than the interface MTU, set the MPLS MTU less than or equal to the interface MTU to prevent data corruption, dropped packets, and high CPU conditions. A best practice is to set the interface MTU of the core-facing interface to a value greater than either the IP MTU or interface MTU of the edge-facing interface.
If the interface MTU is less than 1524 bytes, you can set the maximum MPLS MTU to 24 bytes more than the interface MTU. For example, if the interface MTU is set to 1510 bytes, then you can set the maximum MPLS MTU to 1534 bytes (1510 + 24).
If the interface MTU is greater than or equal to 1524 bytes, then you can set the maximum MPLS MTU as high as the interface MTU. For example, if the interface MTU is set to 1600 bytes, then you can set the MPLS MTU to a maximum of 1600 bytes. If you set the MPLS MTU higher than the interface MTU, traffic is dropped.
For interfaces that do not allow you to configure the interface MTU value and the interface MTU is
1500 bytes, the MPLS MTU range is 64 to 1524 bytes.
If you upgrade to Cisco IOS Release 12.2(25)S from an earlier release and you have an MPLS MTU setting that does not conform to these guidelines, the MPLS MTU setting is not accepted by the system. If this happens, reconfigure the MPLS MTU setting to conform to the guidelines.
Usage Guidelines for Cisco IOS Release 12.2(27)SBC, 12.2(33)SRA, 12.4(11)T, 12.2(33)SXH, and Later Releases
In Cisco IOS Release 12.2(27)SBC, 12.2(33)SRA, 12.4(11)T, 12.2(33)SXH, and later releases, you cannot set the MPLS MTU value larger than the interface MTU value. This is to prevent conditions such as dropped packets, data corruption, and high CPU rates.
•
If you attempt to set the MPLS MTU value higher than the interface MTU value, the software displays the following error, which reminds you to set the interface MTU to a higher value before you set the MPLS MTU value:
% Please increase interface mtu to xxxx and then set mpls mtu
•
If you have an interface with a default interface MTU value of 1580 or less (such as an Ethernet interface), the mpls mtu command provides the override keyword, which allows you to set the MPLS MTU value higher than the interface MTU value. The override keyword is not available for interface types that do not have a default interface MTU value of 1580 or less.
Note
The override keyword is supported in 12.2(27)SBC, 12.2(33)SRA, 12.4(11)T, 12.2(33)SXH, and later releases.
•
If you have configuration files with MPLS MTU values that are larger than the interface MTU values and you upgrade to Cisco IOS Release 2.2(27)SBC, 12.2(33)SRA, 12.4(11)T, 12.2(33)SXH, or a later release, the software does not change the MPLS MTU value. When you reboot the router, the software accepts whatever values are set for the MPLS MTU and the interface MTU. The following error message is displayed during system initialization:
Setting the mpls mtu to xxxx on interface x/x, which is higher than the interface MTU
xxxx. This could lead to packet forwarding problems including packet drops.
Make the MPLS MTU values lower than the interface MTU values.
Caution 
If you do not set the MPLS MTU less than or equal to the interface MTU, data corruption, dropped packets, and high CPU conditions can occur.
•
Changing the interface MTU can also modify the IP MTU, Connectionless Network Service (CLNS) MTU, and other MTU values, if they depend on the value of the interface MTU. The Open Shortest Path First (OSPF) routing protocol requires that the IP MTU values match on both ends of the link. Similarly, the Intermediate System-to-Intermediate System (IS-IS) routing protocol requires that the CLNS MTU values match on both ends of the link. If the values on both ends of the link do not match, IS-IS or OSPF cannot complete its initialization.
General Usage Guidelines
•
ATM interfaces cannot accommodate packets that exceed the Segmentation and Reassembly (SAR) buffer size, because labels are added to the packet. The bytes argument refers to the number of bytes in the packet before the addition of any labels. If each label is 4 bytes, the maximum value of bytes on an ATM interface is the physical MTU minus 4*x bytes, where x is the number of labels expected in the received packet.
•
If a labeled IPv4 packet exceeds the MPLS MTU size for the interface, Cisco IOS software fragments the packet. If a labeled non-IPv4 packet exceeds the MPLS MTU size, the packet is dropped.
•
All devices on a physical medium must have the same MPLS MTU value in order for MPLS to interoperate.
•
The MTU for labeled packets for an interface is determined as follows:
–
If the mpls mtu bytes command has been used to configure an MPLS MTU, the MTU for labeled packets is the bytes value.
–
Otherwise, the MTU for labeled packets is the default MTU for the interface.
•
Because labeling a packet makes it larger due to the label stack, you may want the MPLS MTU to be larger than the interface MTU or IP MTU in order to prevent the fragmentation of labeled packets, which would not be fragmented if they were unlabeled. In Cisco IOS Release 12.2(25)S and later releases, the MPLS MTU cannot be larger than the interface MTU.
•
Changing the interface MTU value (using the mtu interface configuration command) can affect the MPLS MTU of the interface. If the MPLS MTU value is the same as the interface MTU value (this is the default), and you change the interface MTU value, the MPLS MTU value will automatically be set to this new MTU as well. However, the reverse is not true; changing the MPLS MTU value has no effect on the interface MTU.
Examples
The following commands set the interface MTU value and MPLS MTU value for a serial interface:
ip rsvp bandwidth 2000 2000
The following example sets the maximum labeled packet size for the FastEthernet interface to 1508, which is common in an MPLS core carrying MPLS Virtual Private Network (VPN) traffic:
Related Commands
Command
|
Description
|
mtu
|
Sets the MTU size for the interface.
|
mpls netflow egress
To enable Multiprotocol Label Switching (MPLS) egress NetFlow accounting on an interface, use the mpls netflow egress command in interface configuration mode. To disable MPLS egress NetFlow accounting, use the no form of this command.
mpls netflow egress
no mpls netflow egress
Syntax Description
This command has no arguments or keywords.
Defaults
This command is disabled.
Command Modes
Interface configuration
Command History
Release
|
Modification
|
12.0(10)ST
|
This command was introduced.
|
12.1(5)T
|
This command was integrated into Cisco IOS Release 12.1(5)T.
|
12.2(33)SRA
|
This command was integrated into Cisco IOS Release 12.2(33)SRA.
|
12.2SX
|
This command is supported in the Cisco IOS Release 12.2SX train. Support in a specific 12.2SX release of this train depends on your feature set, platform, and platform hardware.
|
Usage Guidelines
Use this command to configure the provider edge (PE)-to-customer edge (CE) interface of a PE router.
Examples
The following example shows how to enable MPLS egress NetFlow accounting on the egress PE interface that connects to the CE interface at the destination Virtual Private Network (VPN) site:
Router(config-if)# mpls netflow egress
Related Commands
Command
|
Description
|
debug mpls netflow
|
Enables debugging of MPLS egress NetFlow accounting.
|
show mpls forwarding-table
|
Displays a message that the quick flag is set for all prefixes learned from the MPLS egress NetFlow accounting enabled interface.
|
show mpls interfaces
|
Displays the value of the output_feature_state.
|
mpls static binding ipv4
To bind a prefix to a local or remote label, use the mpls static binding ipv4 command in global configuration mode. To remove static prefix/label bindings, use the no form of this command.
mpls static binding ipv4 prefix mask [input | output nexthop] label
no mpls static binding ipv4 [prefix mask [input | output nexthop] label]
Syntax Description
prefix mask label
|
Binds a prefix or a mask to a local or remote label.
Note These arguments are optional for the no form of the command.
|
input |output nexthop
|
(Optional) Specifies whether to bind the specified label to the prefix/mask as a local (incoming) or remote (outgoing) label. If you specify neither option, the configured label is an incoming label.
|
Command Default
If you specify neither input nor output as a keyword, input (local label) is assumed.
For the no form of the command:
•
Omitting the prefix and the following parameters removes all static bindings.
•
Specifying the prefix and mask, but no other parameters removes all static bindings for that prefix or mask.
Command Modes
Global configuration
Command History
Release
|
Modification
|
12.0(23)S
|
This command was introduced.
|
12.2(33)SRA
|
This command was integrated into Cisco IOS Release 12.2(33)SRA.
|
12.2(33)SXH
|
This command was integrated into Cisco IOS Release 12.2(33)SXH.
|
Usage Guidelines
The mpls static binding ipv4 command pushes bindings into Label Distribution Protocol (LDP). LDP then needs to match the binding with a route in the Routing Information Base (RIB) or Forwarding Information Base (FIB) before installing forwarding information.
The mpls static binding ipv4 command installs the specified bindings into the LDP Label Information Base (LIB). LDP will install the binding labels for forwarding use if or when the binding prefix or mask matches a known route.
Static label bindings are not supported for local prefixes, which are connected networks, summarized routes, default routes, and supernets. These prefixes use implicit-null or explicit-null as the local label.
Examples
In the following output, the mpls static binding ipv4 command configures a static prefix/label binding before the label range is reconfigured to define a range for static assignment. The output of the command indicates that the binding has been accepted, but cannot be used for MPLS forwarding until you configure a range of labels for static assignment that includes the label in question.
Router# configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)# mpls static binding ipv4 10.0.0.0 255.0.0.0 55
% Specified label 55 for 10.0.0.0/8 out of configured
% range for static labels. Cannot be used for forwarding until
The following mpls static binding ipv4 commands configure input and output labels for several prefixes:
Router(config)# mpls static binding ipv4 10.0.0.0 255.0.0.0 55
Router(config)# mpls static binding ipv4 10.0.0.0 255.0.0.0 output 166.0.0.66 2607
Router(config)# mpls static binding ipv4 10.66.0.0 255.255.0.0 input 17
Router(config)# mpls static binding ipv4 10.0.0.0 255.0.0.0 output 10.13.0.8 explicit-null
The following show mpls static binding ipv4 command displays the configured bindings:
Router# show mpls static binding ipv4
59.0.0.0/8: Incoming label: none;
107.0.0.0/8: Incoming label: 55 (in LIB)
130.66.0.0/16: Incoming label: 17 (in LIB)
Related Commands
Command
|
Description
|
show mpls forwarding-table
|
Displays labels currently being used for MPLS forwarding.
|
show mpls label range
|
Displays statically configured label bindings.
|
mpls static binding ipv4 vrf
To bind a prefix to a local label, use the mpls static binding ipv4 vrf command in global configuration mode. To remove static prefix/label bindings, use the no form of this command.
mpls static binding ipv4 vrf vpn-name prefix mask [[input] label]
no mpls static binding ipv4 vrf vpn-name prefix mask [[input] label]
Syntax Description
vpn-name
|
Specifies the VPN routing and forwarding instance (vpn-name).
|
prefix mask label
|
Binds a prefix or a mask to a local label.
Note These arguments are optional for the no form of the command.
|
input label
|
(Optional) Binds the specified label to the prefix/mask as a local (incoming) label.
|
Defaults
Label bindings are dynamically assigned.
Command Modes
Global configuration
Command History
Release
|
Modification
|
12.0(26)S
|
This command was introduced.
|
12.3(14)T
|
This command was integrated into Cisco IOS Release 12.3(14)T.
|
12.2(33)SRA
|
This command was integrated into Cisco IOS Release 12.2(33)SRA.
|
12.2(33)SXH
|
This command was integrated into Cisco IOS Release 12.2(33)SXH.
|
Usage Guidelines
The vrf keyword can be used only when you configure input labels.
Depending on how you configure VRF aware MPLS static labels, static labels are advertised one of the following ways:
•
By Label Distribution Protocol (LDP) between provider edge (PE) and customer edge (CE) routers within a virtual routing and forwarding (VRF)
•
In VPNv4 Border Gateway Protocol (BGP) in the service provider's backbone
If you do not specify the input keyword, an input (local) label is assumed.
The no form of the command functions as follows:
•
Omitting the prefix and the subsequent parameters removes all static bindings.
•
Specifying the prefix and mask but no other parameters removes all static bindings for that prefix or mask.
Examples
The following example binds a prefix to local label 17:
Router(config)# mpls static binding ipv4 vrf vpn100 10.66.0.0 10.255.0.0 input 17
Related Commands
Command
|
Description
|
show mpls static binding ipv4 vrf
|
Displays configured static bindings.
|
mpls static crossconnect
To configure a label forwarding information base (LFIB) entry for the specified incoming label and outgoing interface, use the mpls static crossconnect command in global configuration mode. To remove the LFIB entry, use the no form of this command.
mpls static crossconnect inlabel out-interface [nexthop] {outlabel | explicit-null | implicit-null}
no mpls static crossconnect inlabel out-interface [nexthop] {outlabel | explicit-null |
implicit-null}
Syntax Description
inlabel
|
Configures an LFIB entry for the specified incoming label.
|
out-interface
|
Configures an LFIB entry for the specified outgoing interface.
|
nexthop
|
(Optional) Must be specified for multiaccess interfaces.
|
outlabel | explicit-null | implicit-null
|
Specifies the outgoing label.
|
Command Default
This command has no default behavior or values.
Command Modes
Global configuration
Command History
Release
|
Modification
|
12.0(23)S
|
This command was introduced.
|
12.2(33)SRA
|
This command was integrated into Cisco IOS Release 12.2(33)SRA.
|
12.2(33)SXH
|
This command was integrated into Cisco IOS Release 12.2(33)SXH.
|
Usage Guidelines
You must specify the optional nexthop keyword for multiaccess interfaces.
Examples
In the following output, the mpls static crossconnect command configures a crossconnect from incoming label 45 to outgoing label 46 out interface pos5/0:
Router# configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)# mpls static crossconnect 45 pos5/0 46
Related Commands
Command
|
Description
|
show mpls static crossconnect
|
Displays statically configured LFIB entries.
|
mpls traffic-eng
To configure a router running Intermediate System-to-Intermediate System (IS-IS) so that it floods Multiprotocol Label Switching (MPLS) traffic engineering (TE) link information into the indicated IS-IS level, use the mpls traffic-eng command in router configuration mode. To disable the flooding of MPLS TE link information into the indicated IS-IS level, use the no form of this command.
mpls traffic-eng {level-1 | level-2}
no mpls traffic-eng {level-1 | level-2}
Syntax Description
level-1
|
Floods MPLS TE link information into IS-IS level 1.
|
level-2
|
Floods MPLS TE link information into IS-IS level 2.
|
Defaults
Flooding is disabled.
Command Modes
Router configuration
Command History
Release
|
Modification
|
12.0(5)S
|
This command was introduced.
|
12.2(28)SB
|
This command was integrated into Cisco IOS Release 12.2(28)SB.
|
12.2SX
|
This command is supported in the Cisco IOS Release 12.2SX train. Support in a specific 12.2SX release of this train depends on your feature set, platform, and platform hardware.
|
Usage Guidelines
This command, which is part of the routing protocol tree, causes link resource information (such as available bandwidth) for appropriately configured links to be flooded in the IS-IS link-state database.
Examples
The following example shows how to configure MPLS TE link information flooding for IS-IS level 1:
Router(config-router)# mpls traffic-eng level-1
Related Commands
Command
|
Description
|
mpls traffic-eng router-id
|
Specifies that the traffic engineering router identifier for the node is the IP address associated with a given interface.
|
mpls traffic-eng administrative-weight
To override the Interior Gateway Protocol (IGP) administrative weight (cost) of the link, use the mpls traffic-eng administrative-weight command in interface configuration mode. To disable the override, use the no form of this command.
mpls traffic-eng administrative-weight weight
no mpls traffic-eng administrative-weight
Syntax Description
Defaults
IGP cost of the link.
Command Modes
Interface configuration
Command History
Release
|
Modification
|
12.0(5)S
|
This command was introduced.
|
12.2(28)SB
|
This command was integrated into Cisco IOS Release 12.2(28)SB.
|
12.2(33)SRA
|
This command was integrated into Cisco IOS Release 12.2(33)SRA.
|
12.2SX
|
This command is supported in the Cisco IOS Release 12.2SX train. Support in a specific 12.2SX release of this train depends on your feature set, platform, and platform hardware.
|
Examples
The following example shows how to override the IGP cost of the link and set the cost to 20:
Router(config-if)# mpls traffic-eng administrative-weight 20
Related Commands
Command
|
Description
|
mpls traffic-eng attribute-flags
|
Sets the user-specified attribute flags for an interface.
|
mpls traffic-eng area
To configure a router running Open Shortest Path First (OSPF) Multiprotocol Label Switching (MPLS) so that it floods traffic engineering for the indicated OSPF area, use the mpls traffic-eng area command in router configuration mode. To disable flooding of traffic engineering for the indicated OSPF area, use the no form of this command.
mpls traffic-eng area number
no mpls traffic-eng area number
Syntax Description
number
|
The OSPF area on which MPLS traffic engineering is enabled.
|
Defaults
Flooding is disabled.
Command Modes
Router configuration
Command History
Release
|
Modification
|
12.0(5)S
|
This command was introduced.
|
12.2(28)SB
|
This command was integrated into Cisco IOS Release 12.2(28)SB.
|
12.2(33)SRA
|
This command was integrated into Cisco IOS Release 12.2(33)SRA.
|
12.2SX
|
This command is supported in the Cisco IOS Release 12.2SX train. Support in a specific 12.2SX release of this train depends on your feature set, platform, and platform hardware.
|
Usage Guidelines
This command is in the routing protocol configuration tree and is supported for both OSPF and IS-IS. The command affects the operation of MPLS traffic engineering only if MPLS traffic engineering is enabled for that routing protocol instance. Currently, only a single level can be enabled for traffic engineering.
Examples
The following example shows how to configure a router running OSPF MPLS to flood traffic engineering for OSPF 0:
Router(config-router)# mpls traffic-eng area 0
Related Commands
Command
|
Description
|
mpls traffic-eng router-id
|
Specifies that the traffic engineering router identifier for the node is the IP address associated with a given interface.
|
network area
|
Defines the interfaces on which OSPF runs and defines the area ID for those interfaces.
|
router ospf
|
Configures an OSPF routing process on a router.
|
mpls traffic-eng attribute-flags
To set the user-specified attribute flags for the interface, use the mpls traffic-eng attribute-flags command in interface configuration mode. To disable the user-specified attribute flags for the interface, use the no form of this command.
mpls traffic-eng attribute-flags attributes
no mpls traffic-eng attribute-flags
Syntax Description
attributes
|
Links attributes that will be compared to a tunnel's affinity bits during selection of a path.
Valid values are from 0x0 to 0xFFFFFFFF, representing 32 attributes (bits) where the value of an attribute is 0 or 1.
|
Defaults
0x0
Command Modes
Interface configuration
Command History
Release
|
Modification
|
12.0(5)S
|
This command was introduced.
|
12.2(28)SB
|
This command was integrated into Cisco IOS Release 12.2(28)SB.
|
12.2(33)SRA
|
This command was integrated into Cisco IOS Release 12.2(33)SRA.
|
12.2SX
|
This command is supported in the Cisco IOS Release 12.2SX train. Support in a specific 12.2SX release of this train depends on your feature set, platform, and platform hardware.
|
Usage Guidelines
This command assigns attributes to a link so that tunnels with matching attributes (represented by their affinity bits) prefer this link instead of others that do not match.
The interface is flooded globally so that it can be used as a tunnel head-end path selection criterion.
Examples
The following example shows how to set the attribute flags to 0x0101:
Router(config-if)# mpls traffic-eng attribute-flags 0x0101
Related Commands
Command
|
Description
|
mpls traffic-eng administrative-weight
|
Overrides the IGP administrative weight of the link.
|
tunnel mpls traffic-eng affinity
|
Configures affinity (the properties that the tunnel requires in its links) for an MPLS traffic engineering tunnel.
|
mpls traffic-eng auto-bw timers
To enable automatic bandwidth adjustment for a platform and to start output rate sampling for tunnels configured for automatic bandwidth adjustment, use the mpls traffic-eng auto-bw timers command in global configuration mode. To disable automatic bandwidth adjustment for the platform, use the no form of this command.
mpls traffic-eng auto-bw timers [frequency seconds]
no mpls traffic-eng auto-bw timers
Syntax Description
frequency seconds
|
(Optional) Interval, in seconds, for sampling the output rate of each tunnel configured for automatic bandwidth. The value must be from 1 through 604800. The recommended value is 300.
|
Command Default
When the optional frequency keyword is not specified, the sampling interval is 300 seconds (5 minutes).
Command Modes
Global configuration
Command History
Release
|
Modification
|
12.2(4)T
|
This command was introduced.
|
12.2(11)S
|
This command was integrated into Cisco IOS Release 12.2(11)S.
|
12.2(14)S
|
This command was integrated into Cisco IOS Release 12.2(14)S.
|
12.2(28)SB
|
This command was integrated into Cisco IOS Release 12.2(28)SB.
|
12.2(33)SRA
|
This command was integrated into Cisco IOS Release 12.2(33)SRA.
|
12.2(33)SXH
|
This command was integrated into Cisco IOS Release 12.2(33)SXH.
|
Usage Guidelines
The mpls traffic-eng auto-bw timers command enables automatic bandwidth adjustment on a platform by causing traffic engineering to periodically sample the output rate for each tunnel configured for bandwidth adjustment.
The no mpls traffic-eng auto-bw timers command disables automatic bandwidth adjustment for a platform by terminating the output rate sampling and bandwidth adjustment for tunnels configured for adjustment. In addition, the no form of the command restores the configured bandwidth for each tunnel where "configured bandwidth" is determined as follows:
•
If the tunnel bandwidth was explicitly configured via the tunnel mpls traffic-eng bandwidth command after the running configuration was written (if at all) to the startup configuration, the "configured bandwidth" is the bandwidth specified by that command.
•
Otherwise, the "configured bandwidth" is the bandwidth specified for the tunnel in the startup configuration.
Examples
The following example shows how to designate that for each Multiprotocol Label Switching (MPLS) traffic engineering tunnel, the output rate is sampled once every 10 minutes (every 600 seconds):
Router(config)# mpls traffic-eng auto-bw timers frequency 600
Related Commands
Command
|
Description
|
tunnel mpls traffic-eng auto-bw
|
Enables automatic bandwidth adjustment for a tunnel, specifies the frequency with which tunnel bandwidth can be automatically adjusted, and designates the allowable range of bandwidth adjustments.
|
tunnel mpls traffic-eng bandwidth
|
Configures bandwidth required for an MPLS traffic engineering tunnel.
|