This section provides an example for configuring a local cross-connect that uses MPLS between two Ethernet/VLAN interfaces.
![]() |
Note: You must use the mpls-relay command instead of the route interface command to configure a local cross-connect, regardless of the MPLS tunneling method used in the core network. |
Figure 119 shows the interface stack that the router builds for this configuration.
Figure 119: Local Cross-Connect Between Ethernet/VLAN Interfaces

To configure the application shown in Figure 119:
You can use any reachable local IP address. This example uses a loopback interface to provide the local IP address.
- host1(config)#interface loopback 0
- host1(config-if)#ip address 10.1.1.1 255.255.255.255
- host1(config-if)#exit
- host1(config)#interface fastEthernet 9/1
- host1(config-if)#encapsulation vlan
- host1(config-if)#exit
- host1(config)#interface fastEthernet 9/1.1
- host1(config-if)#vlan id 10
- host1(config-if)#ip address 10.1.2.3 255.255.255.0
When you issue the mpls-relay command, you must use a reachable local IP address and the same VC ID value (4) on both sides of the connection.
- host1(config-if)#mpls-relay 10.1.1.1 4
- host1(config-if)#exit
- host1(config)#interface fastEthernet 3/1
- host1(config-if)#encapsulation vlan
- host1(config-if)#exit
- host1(config)#interface fastEthernet 3/1.1
- host1(config-if)#vlan id 11
- host1(config-if)#ip address 10.1.2.4 255.255.255.0
You must use a reachable local IP address and the same VC ID value (4) specified in Step 4.
- host1(config-if)#mpls-relay 10.1.1.1 4
- host1(config-if)#exit