#configure terminal | Enter configure mode. |
(config)#interface lo | Enter interface mode for loopback. |
(config-if)#ip address 1.2.3.4/32 | Configure the loopback IP address. |
(config-if)#interface eth1 | Enter interface mode. |
(config-if)#ip address 100.1.1.1/24 | Configure the IP address for interface eth1. |
#exit | Exit interface mode. |
(config)#router ospf 100 | Configure OSPF. |
(config-router)#network 1.2.3.4/32 area 0 | Add loopback IP address to OSPF network. |
(config)-router#network 100.1.1.0/24 area 0 | Add eth1 IP address to OSPF network. |
#configure terminal | Enter configure mode. |
(config)#interface lo | Enter interface mode for loopback. |
(config-if)#ip address 2.3.4.5/32 | Configure the loopback IP address. |
(config-if)#interface eth1 | Enter interface mode. |
(config-if)#ip address 100.1.1.2/24 | Configure the IP address for interface eth1. |
(config-if)#interface eth2 | Enter interface mode. |
(config-if)#ip address 200.1.1.1/24 | Configure the IP address for interface eth2. |
#exit | Exit interface mode. |
(config)#router ospf 100 | Configure OSPF. |
(config-router)#network 2.3.4.5/32 area 0 | Add loopback IP address to OSPF network. |
(config)-router#network 100.1.1.0/24 area 0 | Add eth1 IP address to OSPF network. |
(config)-router#network 200.1.1.0/24 area 0 | Add eth2 IP address to OSPF network. |
#configure terminal | Enter configure mode. |
(config)#interface lo | Enter interface mode for loopback. |
(config-if)#ip address 3.4.5.6/32 | Configure the loopback IP address. |
(config-if)#interface eth1 | Enter interface mode. |
(config-if)#ip address 200.1.1.2/24 | Configure the IP address for interface eth2. |
#exit | Exit interface mode. |
(config)#router ospf 100 | Configure OSPF. |
(config-router)#network 3.4.5.6/32 area 0 | Add loopback IP address to OSPF network. |
(config)-router#network 200.1.1.0/24 area 0 | Add eth1 IP address to OSPF network. |
#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.4.5.6 | Configure targeted LDP session to PE2 loopback address. |
(config-router)#exit | Exit Router LDP mode and return to Configure mode. |
(config)#interface eth2 | Enter interface mode. |
(config-if)#label-switching | Configure label-switching on provider interface PE1. |
(config-if)#enable-ldp ipv4 | Enable LDP at provider interface PE1. |
(config-if)#exit | Exit interface mode. |
(config)#mpls l2-circuit test 100 3.4.5.6 | Configure PW named “test” with PW-ID 100. |
(config-pseudowire)#control-word | Enable Control-word. |
(config-pseudowire)#vccv cc-type type-1 | Enable VCCV CC-Type as 1. |
(config-pseudowire)#vccv cv-type type-3 | Enable VCCV CV-Type as 3. |
(config-pseduowire)#exit | Exit pseudowire mode. |
(config)#bridge 1 protocol ieee vlan-bridge | Specify VLAN for bridge 1. |
(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 test | Bind the PW to access interface. |
(config-if)#exit | Exit interface mode. |
(config)#exit | Exit 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)#exit | Exit Router LDP mode. |
(config)#interface eth1 | Enter interface mode. |
(config-if)#label-switching | Configure label-switching for eth1. |
(config-if)#enable-ldp ipv4 | Enable LDP for eth1. |
(config-if)#exit | Exit interface mode. |
(config)#interface eth2 | Enter interface mode. |
(config-if)#label-switching | Configure label-switching for eth2. |
(config-if)#enable-ldp ipv4 | Enable LDP for eth2. |
(config-if)#exit | Exit interface mode. |
(config)#exit | Exit 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.2.3.4 | Configure targeted LDP session to PE1 loopback address. |
(config-router)#exit | Exit Router LDP mode. |
(config)#interface eth1 | Enter interface mode. |
(config-if)#label-switching | Configure label-switching on provider interface of PE2. |
(config-if)#enable-ldp ipv4 | Enable LDP on the provider interface of PE2. |
(config-if)#exit | Exit interface mode. |
(config)#mpls l2-circuit test 100 1.2.3.4 | Configure PW named “test” with PW-ID 100. |
(config-pseudowire)#control-word | Enable Control-word. |
(config-pseudowire)#vccv cc-type type-1 | Enable VCCV CC-Type as 1. |
(config-pseudowire)#vccv cv-type type-3 | Enable VCCV CV-Type as 3. |
(config-pseduowire)#exit | Exit pseudowire mode. |
(config)#bridge 1 protocol ieee vlan-bridge | Specify VLAN for bridge 1. |
(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 test | Bind the PW to access interface. |
(config-if)#exit | Exit interface mode. |
(config)#exit | Exit Configure mode. |
(config)#mpls vpls v1 100 | Configure VPLS v1 with id 100 on PE2. |
(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.4.5.6 | Configure targeted LDP session to PE2 loopback address. |
(config-router)#exit | Exit Router LDP mode. |
(config)#interface eth2 | Enter interface mode. |
(config-if)#label-switching | Configure label-switching on provider interface of PE1. |
(config-if)#enable-ldp ipv4 | Enable LDP on the provider interface of PE1. |
(config-if)#exit | Exit interface mode. |
(config)#mpls l2-circuit test 100 3.4.5.6 | Configure PW named “test” with PW-ID 100. |
(config-pseudowire)#manual-pseudowire | Enable pseudowire. |
(config-pseudowire)#vccv cc-type type-1 | Enable VCCV CC-Type as 1. |
(config-pseudowire)#vccv cv-type type-3 | Enable VCCV CV-Type as 3. |
(config-pseduowire)#exit | Exit pseudowire mode. |
(config)#mpls l2-circuit-fib-entry 100 111 222 3.4.5.6 eth2 eth1 | Configure mpls-l2 circuit FIB entry for manual VC. |
(config)#bridge 1 protocol ieee vlan-bridge | Specify VLAN for bridge 1. |
(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 test | Bind the PW to access interface. |
(config-if)#exit | Exit interface mode. |
(config)#exit | Exit 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)#exit | Exit Router LDP mode. |
(config)#interface eth1 | Enter interface mode. |
(config-if)#label-switching | Configure label-switching. |
(config-if)#enable-ldp ipv4 | Enable LDP. |
(config-if)#exit | Exit interface mode. |
(config)#interface eth2 | Enter interface mode. |
(config-if)#label-switching | Configure label-switching. |
(config-if)#enable-ldp ipv4 | Enable LDP. |
(config-if)#exit | Exit interface mode. |
(config)#exit | Exit 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 signalling. |
(config-router)#targeted-peer ipv4 1.2.3.4 | Configure targeted LDP session to PE1 loopback address. |
(config-router)#exit | Exit Router LDP mode. |
(config)#interface eth1 | Enter interface mode. |
(config-if)#label-switching | Configure label-switching on provider interface of PE2. |
(config-if)#enable-ldp ipv4 | Enable LDP on the provider interface of PE2. |
(config-if)#exit | Exit interface mode. |
(config)#mpls l2-circuit test 100 3.4.5.6 | Configure PW named “test” with PW-ID 100. |
(config-pseudowire)#manual-pseudowire | Enable pseudowire. |
(config-pseudowire)#vccv cc-type type-1 | Enable VCCV CC-Type as 1. |
(config-pseudowire)#vccv cv-type type-3 | Enable VCCV CV-Type as 3. |
(config-pseduowire)#exit | Exit pseudowire mode. |
(config)#mpls l2-circuit-fib-entry 100 222 111 1.2.3.4 eth2 eth1 | Configure mpls-l2 circuit FIB entry for the manual VC. |
(config)#bridge 1 protocol ieee vlan-bridge | Specify the VLAN for bridge 1. |
(config)#interface eth2 | 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 test | Bind the PW to access interface. |
(config-if)#exit | Exit interface mode. |
(config)#exit | Exit Configure mode. |
#configure terminal | Enter configure mode. |
(config)#no mpls l2-circuit test 100 3.4.5.6 control-word manual | Remove VC named “test”. |
(config)#exit | Exit Configure mode. |
#configure terminal | Enter configure mode. |
(config)#no mpls l2-circuit test 100 1.2.3.4 control-word manual | Remove VC named “test”. |
(config)#exit | Exit Configure mode. |