#configure terminal | Enter configure mode. |
(config)#mpls l2-circuit VC-1 101 300 3.3.3.3 200 grp-1 manual | Configure the virtual circuit (VC) for PE2. In this example, VC-1 is the VC name, 101 is the VC ID, 300 is the peer global ID, 3.3.3.3 is the VC endpoint node ID, 200 is VC endpoint, AC-ID grp-1 is the group name. |
#configure terminal | Enter configure mode. |
(config)#mpls l2-circuit VC-1 101 100 1.1.1.1 200 grp-1 manual | Configure the virtual circuit (VC) for PE1. In this example, VC-1 is the VC name, 101 is the VC ID, 100 is the peer global ID, 1.1.1.1 is the VC endpoint node ID, 200 is VC endpoint, VC is VC-ID, grp-1 is the group name. |
#configure terminal | Enter configure mode. |
(config)#bridge 1 protocol ieee vlan- bridge | Configure the VLAN for bridge 1. |
(config)#interface eth2 | Enter interface mode. |
(config-if)#switchport | Switch to Layer 2 mode. |
(config-if)#bridge-group 1 | Associate the eth2 interface with bridge group 1. |
(config-if)#switchport mode access | Set the switching characteristics of this interface to access mode. |
(config-if)#mpls-tp service-interface type layer-2 200 | Configure the service interface.in this example, local AC-ID is 200. |
(config-if)#mpls-l2-circuit VC-1 ethernet | Bind the access interface to the Ethernet VC. |
#configure terminal | Enter configure mode. |
(config)#bridge 1 protocol ieee vlan- bridge | Specify the VLAN for bridge 1. |
(config)#interface eth3 | Enter interface mode. |
(config-if)#switchport | Switch to Layer 2 mode. |
(config-if)#bridge-group 1 | Associate the eth3 interface with bridge group 1. |
(config-if)#switchport mode access | Set the switching characteristics of this interface to Access mode. |
(config-if)#mpls-tp service-interface type layer-2 200 | Configure the service interface.In this example, local AC-ID is 200. |
(config-if)#mpls-l2-circuit VC-1 ethernet | Bind the interface to the VC. |
#configure terminal | Enter configure mode. |
(config)#bridge 1 protocol ieee vlan- bridge | Specify the VLAN for bridge 1. |
(config)#mpls l2-circuit VC-2 201 300 3.3.3.3 200 grp-1 | Configure the VC for PE2. In this example, VC-2 is the VC name, 201 is the VC ID, 300 is the peer global ID, 3.3.3.3 is the VC endpoint node ID, 200 is VC endpoint VC-ID and grp-1 is the group name. |
(config-pseudowire)#control-word | Enable Control-word. |
(config-pseudowire)#manual-pseudowire | Configure pseudowire manual (no signaling). |
(config-pseduowire)#exit | Exit pseudowire mode. |
(config)#vlan database | Enter the VLAN configuration mode. |
(config-vlan)#vlan 2 bridge 1 | Enable the state of VLAN 2 on bridge 1. |
(config-vlan)#exit | Exit the VLAN configuration mode. |
(config)#interface eth2 | Enter interface mode. |
(config-if)#switchport | Switch to Layer 2 mode. |
(config-if)#bridge-group 1 | Associate the eth2 interface with bridge group 1. |
(config-if)#switchport mode trunk | Configure the switching characteristics of this interface to Trunk mode. |
(config-if)#switchport trunk allowed vlan add 2 | Enable VLAN ID 2 on this port. |
(config-if)#mpls-tp service-interface type layer-2 200 | Configure the service interface.in this example local AC-id is 200. |
(config-if)#mpls-l2-circuit VC-2 vlan 2 | Allow VLAN 2 traffic on this VC. |
#configure terminal | Enter configure mode. |
(config)#bridge 1 protocol ieee vlan- bridge | Specify the VLAN for bridge 1. |
(config)#mpls l2-circuit VC-2 201 100 1.1.1.1 200 grp-1 | Configure the VC for PE2. In this example, VC-2 is the VC name, 201 is the VC ID and 1.1.1.1 is the VC endpoint node-id. |
(config-pseudowire)#control-word | Enable Control-word. |
(config-pseudowire)#manual-pseudowire | Configure pseudowire manual (no signaling). |
(config-pseduowire)#exit | Exit pseudowire mode. |
(config)#interface eth3 | Enter interface mode. |
(config-if)#switchport | Switch to Layer 2 mode. |
(config-if)#bridge-group 1 | Associate the eth1 interface with bridge group 1. |
(config-if)#switchport mode trunk | Configure the switching characteristics of this interface to Trunk mode. |
(config-if)#switchport trunk allowed vlan add 2 | Enable VLAN ID 2 on this port. |
(config-if)#mpls-tp service-interface type layer-2 200 | Configure the service interface.in this example local AC-id is 200. |
(config-if)#mpls-l2-circuit VC-2 vlan 2 | Allow VLAN 2 traffic on this VC. |
#configure terminal | Enter configure mode. |
(config)#mpls l2-circuit-fib-entry 101 1111 2222 tp-tunnel tnl1 eth2 | Configured an FIB entry. In this example, 111 is the incoming label, 2222 is the outgoing label, 3.3.3.3 is the endpoint, eth2 is the AC interface name, and tnl1 is the tunnel name. |
#configure terminal | Enter configure mode. |
(config)#mpls l2-circuit-fib-entry 101 2222 1111 tp-tunnel tnl2 eth3 | Configure an FIB entry. In this example, 2222 is the incoming label, 1111 is the outgoing label, 3.3.3.3 is the endpoint, eth3 is the AC interface name, and tnl2 is the tunnel name. |