Você está na página 1de 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.
mpls ldp router-id interface
router(config)#
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 LDP router ID, provided that the interface
is operational
Configuring the MPLS ID on a Router
Configuring MPLS on the Interface
mpls ip
Router(config-if)#
Enables label switching on the interface
mpls label protocol ldp
Router(config-if)#
Starts LDP on the specified interface
Configuring a Label-Switching MTU
mpls mtu bytes
Router(config-if)#
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
no mpls ip propagate-ttl
Router(config)#
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.
show mpls ldp parameters
Router#
Displays LDP parameters on the local router
MPLS Monitoring Commands
show mpls interfaces
Router#
Displays MPLS status on individual interfaces
show mpls ldp discovery
Router#
Displays all discovered LDP neighbors
show mpls ldp neighbor
Router#
Displays individual LDP neighbors
LDP Monitoring Commands
show mpls ldp neighbor detail
Router#
Displays more details about LDP neighbors
show mpls ldp bindings
Router#
Displays label information base (LIB)
show mpls forwarding-table
Router#
Displays contents of LFIB
Monitoring Label Switching
show ip cef detail
Router#
Displays label(s) attached to a packet during label
imposition on edge LSR
debug mpls ldp ...
Router#
Debugs TDP adjacencies, session establishment,
and label bindings exchange
Debugging MPLS and LDP
debug mpls lfib
Router#

Debugs LFIB events: label creations, removals,
rewrite and so on
debug mpls packets [ interface ]
Router#

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

Você também pode gostar