This section provides information to configure MPLS and RSVP using the command line interface.
Multiprotocol Label Switching (MPLS) enables routers to forward traffic based on a simple label embedded into the packet header. A router examines the label to determine the next hop for the packet, saving time for router address lookups to the next node when forwarding packets. MPLS is not enabled by default and must be explicitly enabled.
In order to implement MPLS, the following entities must be configured:
To configure MPLS-signaled label-switched paths (LSPs), an LSP must run from an ingress router to an egress router. Configure only the ingress router and configure LSPs to allow the software to make the forwarding decisions or statically configure some or all routers in the path. The LSP is set up by Resource Reservation Protocol (RSVP), through RSVP signaling messages. The router automatically manages label values. Labels that are automatically assigned have values ranging from 1,024 through 1,048,575 (see Label Values).
A static LSP is a manually set up LSP where the nexthop IP address and the outgoing label are explicitly specified.
To configure signaled LSPs, you must first create one or more named paths on the ingress router. For each path, the transit routers (hops) in the path are specified.
At least one router interface and one system interface must be defined in the config>router>interface context in order to configure MPLS on an interface.
In order to configure a static or a RSVP signaled LSP, you must enable MPLS on the router, which automatically enables RSVP and adds the system interface into both contexts. Any other network IP interface, other than loopbacks, added to MPLS is also automatically enabled in RSVP and becomes a TE link. When the interface is enabled in RSVP, the IGP instance will advertise the Traffic Engineering (TE) information for the link to other routers in the network in order to build their TE database and compute CSPF paths. Operators must enable the traffic-engineering option in the ISIS or OSPF instance for this. Operators can also configure under the RSVP context of the interface the RSVP protocol parameters for that interface.
If only static label switched paths are used in your configurations, operators must manually define the paths through the MPLS network. Label mappings and actions configured at each hop must be specified. Operators can disable RSVP on the interface if it is used only for incoming or outgoing static LSP label by shutting down the interface in the RSVP context. The latter causes IGP to withdraw the TE link from its advertisement which removes it from its local and neighbors TE database.
If dynamic LSP signaling is implemented in an operator’s network then they must keep RSVP enabled on the interfaces they want to use for explicitly defined or CSPF calculated LSP path.
This section provides information to configure MPLS and configuration examples of common configuration tasks. To enable MPLS, you must configure at least one MPLS interface. The other MPLS configuration parameters are optional. This follow displays an example of an MPLS configuration.
This section provides a brief overview of the tasks to configure MPLS and provides the CLI commands.
The following protocols must be enabled on each participating router.
In order for MPLS to run, you must configure at least one MPLS interface in the config>router>mpls context.
Use the MPLS and RSVP CLI syntax in the following sections to configure MPLS components.
Admin groups can signify link colors, such as red, yellow, or green. MPLS interfaces advertise the link colors it supports. CSPF uses the information when paths are computed for constrained-based LSPs. CSPF must be enabled in order for admin groups to be relevant.
To configure MPLS admin-group parameters, enter the following commands:
The following displays an admin group configuration example:
Configure the label-map parameters if the interface is used in a static LSP. To configure an MPLS interface on a router, enter the following commands:
The following displays an interface configuration example:
Configure an LSP path to use in MPLS. When configuring an LSP, the IP address of the hops that the LSP should traverse on its way to the egress router must be specified. The intermediate hops must be configured as either strict or loose meaning that the LSP must take either a direct path from the previous hop router to this router (strict) or can traverse through other routers (loose).
Use the following CLI syntax to configure a path:
The following displays a path configuration example:
Configure an LSP path for MPLS. When configuring an LSP, you must specify the IP address of the egress router in the to statement. Specify the primary path to be used. Secondary paths can be explicitly configured or signaled upon the failure of the primary path. All other statements are optional.
The following displays an MPLS LSP configuration:
An LSP can be explicitly (statically) configured. Static LSPs are configured on every node along the path. The label’s forwarding information includes the address of the next hop router.
Use the following CLI syntax to configure a static LSP:
The following displays a static LSP configuration example:
Consider the following network setup.
A----B----C----D
| |
E----F
The user first configures the option to disable the dynamic bypass tunnels on node B if required. The CLI for this configuration is:
config>router>mpls>dynamic-bypass [disable | enable]
By default, dynamic bypass tunnels are enabled.
Next, the user configures an LSP on node B, such as B-E-F-C to be used only as bypass. The user specifies each hop in the path, for example, the bypass LSP has a strict path.
Note that including the bypass-only keyword disables the following options under the LSP configuration:
The following LSP configuration options are allowed:
The following example displays a bypass tunnel configuration:
Next, the user configures an LSP from A to D and indicates fast-reroute bypass protection by selecting facility as the FRR method (config>router>mpls>lsp>fast-reroute facility). If the LSP goes through B, and bypass is requested, and the next hop is C, and there is a manually configured bypass-only tunnel from B to C, excluding link BC, then node B uses that.
RSVP is used to set up LSPs. RSVP must be enabled on the router interfaces that are participating in signaled LSPs. The keep-multiplier and refresh-time default values can be modified in the RSVP context.
Initially, interfaces are configured in the config>router>mpls>interface context. Only these existing (MPLS) interfaces are available to modify in the config>router> rsvp context. Interfaces cannot be directly added in the RSVP context.
The following example displays an RSVP configuration example:
RSVP message pacing maintains a count of the messages that were dropped because the output queue for the egress interface was full.
Use the following CLI syntax to configure RSVP parameters:
The following example displays a RSVP message pacing configuration example:
TE graceful shutdown can be enabled on a specific interface using the config>router>rsvp>if>graceful-shutdown command. This interface is referred to as the maintenance interface.
Graceful shutdown can be disabled by executing the no form of the command at the RSVP interface level or at the RSVP level. In this case, the user configured TE parameters of the maintenance links are restored and the maintenance node floods them.
This section discusses MPLS configuration management tasks.
NOTE: In order to remove the MPLS instance, MPLS must be disabled (shutdown) and all SDP bindings to LSPs removed. If MPLS is not shutdown first, when the no mpls command is executed, a warning message on the console displays indicating that MPLS is still administratively up.
When MPLS is shut down, the no mpls command deletes the protocol instance and removes all configuration parameters for the MPLS instance. To disable MPLS, use the shutdown command.
To remove MPLS on a router, enter the following command:
Note: You must shut down MPLS entities in order to modify parameters. Re-enable (no shutdown) the entity for the change to take effect. |
Some MPLS LSP parameters such as primary and secondary, must be shut down before they can be edited or deleted from the configuration.
The following displays a MPLS LSP configuration example. Refer to the LSP configuration in Configuring an MPLS LSP.
In order to modify path parameters, the config>router>mpls>path context must be shut down first.
The following displays a path configuration example. Refer to Configuring MPLS Paths.
In order to modify static LSP parameters, the config>router>mpls>path context must be shut down first.
The following displays a static LSP configuration example. Refer to the static LSP configuration in Configuring a Static LSP.
In order to delete an interface from the MPLS configuration, the interface must be shut down first.
Use the following CLI syntax to delete an interface from the MPLS configuration:
This section discusses RSVP configuration management tasks.
Only interfaces configured in the MPLS context can be modified in the RSVP context.
The no rsvp command deletes this RSVP protocol instance and removes all configuration parameters for this RSVP instance.
The shutdown command suspends the execution and maintains the existing configuration.
The following example displays a modified RSVP configuration example:
RSVP message pacing maintains a count of the messages that were dropped because the output queue for the egress interface was full.
The following example displays command usage to modify RSVP parameters:
The following example displays a modified RSVP message pacing configuration example. Refer to Configure RSVP Message Pacing Parameters.
Interfaces cannot be deleted directly from the RSVP configuration. An interface must have been configured in the MPLS context, which enables it automatically in the RSVP context. The interface must first be deleted from the MPLS context. This removes the association from RSVP.
See Deleting an MPLS Interface for information on deleting an MPLS interface.