OcNOS-RON-6.3.1 : Multi-Protocol Label Switching Guide : Multi-Protocol Label Switching Configuration Guide : MPLS-TP Layer 2 Virtual Circuit : Bind Customer Interface to VC
Bind Customer Interface to VC
Attach the Customer Interface to the VC.
Note: Layer 2 VCs can only be bound to Layer 2 interfaces. VC encapsulation should be Ethernet (default), VLAN, HDLC or PPP.
Layer-2 Untagged Traffic
Use Access mode for Layer 2 untagged traffic.
PE1 (NSM)
 
#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.
PE2 (NSM)
 
#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.
Layer-2 Tagged Traffic
Use
Trunk mode for Layer 2 tagged traffic. The following configuration allows only VLAN 2 and 3 traffic.
PE1
 
#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.
PE2
 
#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.
Last modified date: 07-13-2023