30-7
Catalyst 3750 MetroSwitch Software Configuration Guide
78-15870-01
Chapter 30 Configuring MPLS and EoMPLS
Configuring MPLS VPNs
Enabling MPLS
To use MPLS in a network, such as the one shown in Figure 30-1, MPLS must be globally enabled and
explicitly configured on the PE routers.
Beginning in privileged EXEC mode, follow these steps to incrementally deploy MPLS through a
network, assuming that packets to all destination prefixes should be label-switched:
Repeat these steps for every PE router in the network and the appropriate interfaces until all routers and
connected interfaces are enabled for MPLS.
Use the no mpls ip global configuration command to disable MPLS on the switch. Use the no mpls label
protocol ldp global configuration command to return to the default TDP.
Command Purpose
Step 1
configure terminal Enter global configuration mode.
Step 2
ip cef Enable CEF on the device if it has been disabled.
Step 3
mpls ip Enable MPLS forwarding of IPv4 packets on normally routed paths if it
has been disabled.
Step 4
mpls label protocol ldp Set the label protocol on the switch to LDP. The default protocol is TDP.
Step 5
mpls ldp advertise-labels [for
prefix-access-list [to peer-access-list]]
Enable MPLS label advertising on the switch. If no keywords are
included, there are no restrictions on which labels are advertised.
• (Optional) for prefix-access-list—Specify which destinations should
have their labels advertised.
• (Optional) to peer-access-list—Specify which LDP neighbors should
receive label advertisements. A label switch router (LSR) is
identified by its router ID, which consists of the first 4 bytes of its
6-byte LDP identifier.
Step 6
interface interface-id Enter interface configuration mode, and specify the Layer 3 ES interface
connected to the MPLS network.
Step 7
mpls ip Enable MPLS forwarding of IPv4 packets along normally routed paths for
the interface.
Step 8
end Return to privileged EXEC mode.
Step 9
show mpls forwarding table
show mpls interfaces
Verify the configuration.
Step 10
copy running-config startup-config (Optional) Save your entries in the configuration file.