mpls ip

Use this command to enable or disable MPLS encapsulation for IPv4 routing.

Syntax

mpls ip [exclude-nexthop nexthop-address]
no mpls ip [exclude-nexthop nexthop-address]

Parameters

None.

exclude-nexthop exclude-nexthop (Optional) Specifies that routes with the specified nexthop address should be excluded from MPLS.

Defaults

IPv4 routing MPLS encapsulation is disabled by default.

If an exclude next hop address is not specified, MPLS includes all next hops.

Mode

Global router or interface configuration mode.

Usage

MPLS encapsulation must be enabled on all routers on the Label Switched Path (LSP) between Label Edge Routers (LER). When MPLS encapsulation is enabled, an MPLS label stack follows the Ethernet header and contains an outer label path to the egress VPN router and an inner label identifying the VPN. The outer label egress VPN router path is assigned to the MPLS router by the Label Distribution Protocol (LDP) and is used by the receiving Label Switch Router (LSR) to determine the next hop on the LSP. The LSR removes the MPLS label from the header and replaces it with a new label before the packet is forwarded to the next LSR in the LSP.

In interface configuration mode, this command enables MPLS encapsulation for IPv4 on the interface. MPLS IPv4 interface configuration requires that MPLS encapsulation also be configured in global router command mode.

You can specify next hop addresses to be excluded from MPLS.

The “no” form of this command disables IPv4 routing MPLS encapsulation for the command mode context.

Examples

This example shows how to enable IPv4 MPLS encapsulation:

System(su)->configure
System(su-config)->mpls ip
System(su-config)->