#configure terminal | Enter Configure mode for the router. |
(config)#router ldp | Enter Router LDP mode. |
(config-router)#pw-status-tlv | Configure PW status TLV for PW status signaling. |
(config-router)#targeted-peer ipv4 3.3.3.3 | Configure targeted LDP session to PE3 loopback address. |
(config-router)#targeted-peer ipv4 4.4.4.4 | Configure targeted LDP session to PE4 loopback address. |
(config-router)#exit | Exit the Router LDP mode and return to Configure mode. |
(config)#mpls l2-circuit pw1 10 3.3.3.3 | Configure pseudowire PW1 between PE1 and PE3. |
(config-pseduowire)#exit | Exit pseudowire mode. |
(config)#mpls l2-circuit pw2 20 4.4.4.4 | Configure pseudowire PW2 between PE1 and PE4. |
(config-pseduowire)#exit | Exit pseudowire mode. |
(config)#bridge 1 protocol ieee vlan-bridge | Specify the VLAN for bridge 1. |
(config)#vlan database | Enter the VLAN Database mode. |
(config-vlan)#vlan 100 bridge 1 | Configure VLAN 100. |
(config-vlan)#exit | Exit the VLAN Database mode and return to Configure mode. |
(config)#interface eth1 | Enter interface mode. |
(config-if)#switchport | Switch to Layer-2 mode. |
(config-if)#switchport mode access | Set the switching characteristics of this interface to access mode. |
(config-if)#mpls-l2-circuit pw1 vlan 100 | Bind the pseudowire PW1 to access interface. |
(config-if)#mpls-l2-circuit pw2 vlan 100 | Bind the pseudowire PW2 to access interface. |
(config-if)#exit | Exit interface mode. |
(config)#exit | Exit the Configure mode. |
#configure terminal | Enter configure mode. |
(config)#router ldp | Enter the Router LDP mode. |
(config-router)#pw-status-tlv | Configure PW status TLV for PW status signaling. |
(config-router)#targeted-peer ipv4 3.3.3.3 | Configure targeted LDP session to PE3 loopback address. |
(config-router)#targeted-peer ipv4 4.4.4.4 | Configure targeted LDP session to PE4 loopback address. |
(config-router)#exit | Exit the Router LDP mode and return to Configure mode. |
(config)#mpls l2-circuit pw3 30 3.3.3.3 | Configure pseudowire PW3 between PE2 and PE3. |
(config-pseduowire)#exit | Exit pseudowire mode. |
(config)#mpls l2-circuit pw4 40 4.4.4.4 | Configure pseudowire PW4 between PE2 and PE4. |
(config-pseduowire)#exit | Exit pseudowire mode. |
(config)#bridge 1 protocol ieee vlan-bridge | Specify the VLAN for bridge 1. |
(config)#vlan database | Enter the VLAN Database mode. |
(config-vlan)#vlan 100 bridge 1 | Configure VLAN 100. |
(config-vlan)#exit | Exit the VLAN Database mode and return to Configure mode. |
(config)#interface eth1 | Enter interface mode. |
(config-if)#switchport | Switch to Layer-2 mode. |
(config-if)#switchport mode access | Set the switching characteristics of this Interface to Access mode. |
(config-if)#mpls-l2-circuit pw3 vlan 100 | Bind the pseudowire PW3 to access interface. |
(config-if)#mpls-l2-circuit pw4 vlan 100 | Bind the pseudowire PW4 to access interface. |
(config-if)#vc-mode standby vlan 100 | Configure VC-mode as standby for VLAN 100. Note: The command for Ethernet PWs is vc-mode standby. |
(config-if)#exit | Exit interface mode. |
(config)#exit | Exit the Configure mode. |
#configure terminal | Enter configure mode. |
(config)#router ldp | Enter the Router LDP mode. |
(config-router)#pw-status-tlv | Configure PW status TLV for PW status signaling. |
(config-router)#targeted-peer ipv4 1.1.1.1 | Configure targeted LDP session to PE1 loopback address. |
(config-router)#targeted-peer ipv4 2.2.2.2 | Configure targeted LDP session to PE2 loopback address. |
(config-router)#exit | Exit the Router LDP mode and return to Configure mode. |
(config)#mpls l2-circuit pw1 10 1.1.1.1 | Configure pseudowire PW1 between PE3 and PE1. |
(config-pseduowire)#exit | Exit pseudowire mode. |
(config)#mpls l2-circuit pw3 30 2.2.2.2 | Configure pseudowire pw2 between PE3 and PE2. |
(config-pseduowire)#exit | Exit pseudowire mode. |
(config)#bridge 1 protocol ieee vlan-bridge | Specify the VLAN for bridge 1. |
(config)#vlan database | Enter the VLAN Database mode. |
(config-vlan)#vlan 100 bridge 1 | Configure VLAN 100. |
(config-vlan)#exit | Exit the VLAN Database mode and return to Configure mode. |
(config)#interface eth1 | Enter interface mode. |
(config-if)#switchport | Switch to Layer-2 mode. |
(config-if)#switchport mode access | Set the switching characteristics of this interface to access mode. |
(config-if)#mpls-l2-circuit pw1 vlan 100 | Bind the pseudowire PW1 to access interface. |
(config-if)#mpls-l2-circuit pw3 vlan 100 | Bind the pseudowire PW3 to access interface. |
(config-if)#exit | Exit interface mode. |
(config)#exit | Exit the Configure mode. |
#configure terminal | Enter configure mode. |
(config)#router ldp | Enter the Router LDP mode. |
(config-router)#pw-status-tlv | Configure PW status TLV for PW status signaling. |
(config-router)#targeted-peer ipv4 1.1.1.1 | Configure targeted LDP session to PE1 loopback address. |
(config-router)#targeted-peer ipv4 2.2.2.2 | Configure targeted LDP session to PE2 loopback address. |
(config-router)#exit | Exit the Router LDP mode and return to Configure mode. |
(config)#mpls l2-circuit pw2 20 1.1.1.1 | Configure pseudowire PW2 between PE4 and PE3. |
(config-pseduowire)#exit | Exit pseudowire mode. |
(config)#mpls l2-circuit pw4 40 2.2.2.2 | Configure pseudowire PW4 between PE4 and PE2. |
(config-pseduowire)#exit | Exit pseudowire mode. |
(config)#bridge 1 protocol ieee vlan-bridge | Specify the VLAN for bridge 1. |
(config)#vlan database | Enter the VLAN Database mode. |
(config-vlan)#vlan 100 bridge 1 | Configure VLAN 100. |
(config-vlan)#exit | Exit the VLAN Database mode and return to Configure mode. |
(config)#interface eth1 | Enter interface mode. |
(config-if)#switchport | Switch to Layer-2 mode. |
(config-if)#switchport mode access | Set the switching characteristics of this interface to access mode. |
(config-if)#mpls-l2-circuit pw2 vlan 100 | Bind the pseudowire PW2 to access interface. |
(config-if)#mpls-l2-circuit pw4 vlan 100 | Bind the pseudowire PW4 to access interface. |
(config-if)#vc-mode standby vlan 100 | Configure VC-mode as standby for VLAN 100. Note: The command for Ethernet PWs is vc-mode standby. |
(config-if)#exit | Exit interface mode. |
(config)#exit | Exit the Configure mode. |
#configure terminal | Enter configure mode. |
(config)#interface eth1 | Enter interface mode. |
(config-if)#no vc-mode standby vlan 100 | Remove VC-mode standby for VLAN 100. |
(config-if)#exit | Exit interface mode. |