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.
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 7210 SAS 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 next-hop 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.
If only static label switched paths are used in your configurations, then you must manually define the paths through the MPLS network. Label mappings and actions configured at each hop must be specified. You do not need to enable RSVP if you are configuring static LSPs.
If dynamic LSP signaling is implemented in your network, then RSVP must be specified. Enable signaling protocols only on the links where the functionality is required.
In order to implement MPLS, the following entities must be enabled:
When MPLS is enabled and either RSVP is also enabled, MPLS uses RSVP to set up the configured LSPs. For example, when you configure an LSP with both MPLS and RSVP running, RSVP initiates a session for the LSP. RSVP uses the local router as the RSVP session sender and the LSP destination as the RSVP session receiver. When the RSVP session is created, the LSP is set up on the path created by the session. If the session is not successfully created, RSVP notifies MPLS, MPLS can then either initiate backup paths or retry the initial path.
This section provides information to configure MPLS and provides configuration examples of common configuration tasks. To enable MPLS on the 7210 SAS, you must configure at least one MPLS interface. The other MPLS configuration parameters are optional. The following is an example of an MPLS configuration.
The admin-group is configured in the config>router>if-attribute context and associated with the MPLS interface in the config>router>mpls>interface context.
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.
Admin groups signify link colors, such as red, yellow, or green. MPLS interfaces advertise the link colors that they support. CSPF uses the information when paths are computed for constraint-based LSPs. CSPF must be enabled in order for admin groups to be relevant.
Use the following syntax to configure MPLS admin-group parameters.
The following is a sample admin group configuration output.
Configure the label-map parameters if the interface is used in a static LSP. Use the following syntax to configure an MPLS interface on a router.
The following is a sample interface configuration output.
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 syntax to configure a path.
The following is a sample path configuration output.
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 is a sample MPLS LSP configuration output.
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 syntax to configure a static LSP.
The following is a sample static LSP configuration output.
Consider the network setup in Figure 28 that shows nodes A through F.
The user first configures the option to disable the dynamic bypass tunnels.
Listed below are the steps to configure the manual bypass tunnels:
Including the bypass-only keyword disables the following options under the LSP configuration:
The following LSP configuration options are allowed:
The following is a sample bypass tunnel configuration output.
Result: Node B uses the manually configured bypass-only tunnel from B to C.
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 is a sample RSVP configuration output.
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 syntax to configure RSVP parameters.
The following is a sample RSVP message pacing configuration output.
Enable TE graceful shutdown on the maintenance interface using the config>router>rsvp>interface>graceful-shutdown command.
Disable graceful shutdown by executing the no form of the command at the RSVP interface level or at the RSVP level. This restores the user-configured TE parameters of the maintenance links, and the 7210 SAS maintenance node floods them.
This section describes the MPLS configuration management tasks.
![]() | 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 is a sample MPLS LSP configuration output.
In order to modify path parameters, the config>router>mpls>path context must be shut down first.
The following is a sample path configuration output.
In order to modify static LSP parameters, the config>router>mpls>path context must be shut down first.
The following is a sample static LSP configuration output.
In order to delete an interface from the MPLS configuration, the interface must be shut down first.
Use the following syntax to delete an interface from the MPLS configuration.
This section describes the 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 is a sample modified RSVP message pacing configuration output.
Interfaces cannot be deleted directly from the RSVP configuration. An interface must have been configured in the MPLS context and then 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.