You are on page 1of 12

Configuring MPLS

Overview
MPLS Configuration Tasks
Configuring the MPLS id on a router
Configuring MPLS on a Interface
Configuring Label-Switching MTU
Configuring IP TTL Propagation
Monitoring MPLS Operation

MPLS Configuration Tasks


Mandatory:
Enable CEF switching.
Configure LDP on every label-enabled interface.

Optional:
Configure the MPLS ID.
Configure MTU size for labeled packets.
Configure IP TTL propagation.

Configuring the MPLS ID on a Router


router(config)#

mpls ldp router-id interface

Specifies a preferred interface for determining the


Label Distribution Protocol (LDP) router ID
Parameters:
interface Causes the IP address of the specified interface
to be used as the LDProuterID, provided that the interface
is operational

Configuring MPLS on the Interface


Router(config-if)#
mpls ip

Enables label switching on the interface


Router(config-if)#
mpls label protocol ldp

Starts LDP on the specified interface

Configuring a Label-Switching MTU


Router(config-if)#

mpls mtu bytes


Label switching increases the maximum MTU
requirements on an interface, because of additional label
header.
Label-switching MTU can be increased on LAN interfaces
(resulting in jumbo frames) to prevent IP fragmentation.
The jumbo frames are not supported by all LAN switches.

Configuring IP TTL Propagation


Router(config)#

no mpls ip propagate-ttl
By default, IP TTL is copied into the MPLS label at
label imposition, and the MPLS label TTL is copied
(back) into the IP TTL at label removal.
This command disables IP TTL and label TTL
propagation.
TTL value of 255 is inserted in the label header.

The TTL propagation has to be disabled on ingress


and egress edge LSRs.

MPLS Monitoring Commands


Router#

show mpls ldp parameters

Displays LDP parameters on the local router


Router#

show mpls interfaces

Displays MPLS status on individual interfaces


Router#

show mpls ldp discovery

Displays all discovered LDP neighbors

LDP Monitoring Commands


Router#

show mpls ldp neighbor

Displays individual LDP neighbors


Router#

show mpls ldp neighbor detail

Displays more details about LDP neighbors


Router#

show mpls ldp bindings

Displays label information base (LIB)

Monitoring Label Switching


Router#

show mpls forwarding-table

Displays contents of LFIB


Router#

show ip cef detail

Displays label(s) attached to a packet during label


imposition on edge LSR

Debugging MPLS and LDP


Router#

debug mpls ldp ...

Debugs TDP adjacencies, session establishment,


and label bindings exchange
Router#

debug mpls lfib

Debugs LFIB events: label creations, removals,


rewrite and so on
Router#

debug mpls packets [ interface ]

Debugs labeled packets switched by the router

Review
MPLS Configuration Tasks
Configuring the MPLS id on a router
Configuring MPLS on a Frame-Mode Interface
Configuring Label-Switching MTU
Configuring IP TTL Propagation
Monitoring MPLS Operation