30-16
Catalyst 3750 Metro Switch Software Configuration Guide
78-15870-01
Chapter 30 Configuring MPLS and EoMPLS
Enabling EoMPLS
• Both PE routers require a loopback address that you can use to create a VC between the routers.
When you use OSPF as the interior gateway protocol, you must configure all loopback addresses on
PE routers with 32-bit masks to ensure proper operation of MPLS forwarding between the PE
routers.
• Do not configure EoMPLS on an interface configured for VLAN mapping.
Configuring EoMPLS
You configure VLAN-based EoMPLS on a VLAN interface. When VLAN-based EoMPLS is enabled,
the switch associates the tunnel and VC labels based on the VLAN ID. You use the same commands to
enable port-based EoMPLS on an ES interface.
Beginning in privileged EXEC mode, follow these steps on the PE routers to configure EoMPLS to
transport Layer 2 packets between two endpoints:
Use the no mpls l2transport route destination vc-id or no xconnect destination vc-id interface command
to delete the EoMPLS tunnel.
Command Purpose
Step 1
configure terminal Enter global configuration mode.
Step 2
mpls label protocol ldp Enable LDP for all interfaces. By default, TDP is enabled. This command
causes all interfaces to use LDP.
Step 3
interface loopback0 Enter interface configuration mode for a loopback interface.
Step 4
ip address ip-address subnet mask Assign an IP address to the loopback interface.
Step 5
exit Return to global configuration mode
Step 6
mpls ldp router-id loopback0 force (Optional) Force the IP address of loopback interface 0 to be used as the
router ID.
Step 7
interface interface-id Enter a Layer 3 VLAN (for VLAN-based EoMPLS) or the interface ID of an
ES port (for port-based EoMPLS), and enter interface configuration mode.
Step 8
mpls ip Enable MPLS on the interface.
Step 9
mpls l2transport route destination
vc-id
or
xconnect destination vc-id
Configure the interface to transport the Layer 2 VLAN packets over MPLS.
• destination—The IP address of the PE router at the other end of the VC.
• vc-id—A unique value defined for the VC. The VC-ID connects the
endpoints of the VC and must be the same on both ends of the VC. The
range is from 1 to 4294967295.
Step 10
end Return to privileged EXEC mode.
Step 11
show mpls l2transport vc Verify the configuration.
Step 12
copy running-config startup-config (Optional) Save your entries in the configuration file.