Configuring Local Cross-Connects Between Ethernet/VLAN Interfaces
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 117 shows the interface stack that the router builds for this configuration.
![]()
To configure the application shown in Figure 117:
You can use any reachable local IP address. This example uses a loopback interface to provide the local IP address.
host1(config)#interface loopback 0host1(config-if)#ip address 10.1.1.1 255.255.255.255host1(config-if)#exit
- Configure the Ethernet/VLAN interface on one side of the local cross-connect.
host1(config)#interface fastEthernet 9/1host1(config-if)#encapsulation vlanhost1(config-if)#exithost1(config)#interface fastEthernet 9/1.1host1(config-if)#vlan id 10- (Optional) If you are configuring a multiservice local cross-connect, assign an IP address and mask to the Ethernet/VLAN interface.
host1(config-if)#ip address 10.1.2.3 255.255.255.0- Configure MPLS tunneling on this side of the connection by issuing the mpls-relay command.
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 4host1(config-if)#exit
- Configure the Ethernet/VLAN interface on the other side of the local cross-connect.
host1(config)#interface fastEthernet 3/1host1(config-if)#encapsulation vlanhost1(config-if)#exithost1(config)#interface fastEthernet 3/1.1host1(config-if)#vlan id 11- (Optional) If you are configuring a multiservice local cross-connect, assign an IP address and mask to the Ethernet/VLAN interface.
host1(config-if)#ip address 10.1.2.4 255.255.255.0- Configure MPLS tunneling on this side of the connection by issuing the mpls-relay command.
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 4host1(config-if)#exit