#configure terminal | Enter configure mode. |
(config-if)#interface lo | Identify the loopback interface to configure (lo). |
(config-if)#ip address 66.66.66.66/32 | Set the IP address of the loopback interface to 66.66.66.66/32. |
(config-if)#exit | Exit interface mode |
(config)#interface eth1 | Enter interface mode. |
(config-if)#label-switching | Enable label switching on the interface. |
(config-if)#ip address 11.0.0.66/24 | Set the IP address of the interface to 11.0.0.66/24. |
(config-if)#exit | Exit interface mode. |
(config)#router ospf | Enter the Router OSPF mode. |
(config-router)#network 11.0.0.0/24 area 0 (config-router)#network 66.66.66.66/32 area 0 | Define the Network on which OSPF runs and associate the area ID (area 0) with the interface. |
(config-router)#exit | Exit Router mode and return to Configure mode. |
(config)#router ldp | Enter the Router mode for LDP. |
(config-router)#transport-address ipv4 66.66.66.66 | Configure loopback address as LDP transport address. |
(config-router)#pw-status-tlv | Enable the PW Status TLV (pw-status-tlv). |
(config-router)#targeted-peer-ipv4 68.68.68.68 | Configure LDP targeted peer to PE2. |
(config-router)#targeted-peer-ipv4 69.69.69.69 | Configure LDP targeted peer to PE4. |
(config-router)#exit | Exit Router mode and return to Configure mode. |
(config)#interface eth1 | Enter interface mode. |
(config-if)#enable-ldp ipv4 | Enable IPv4 LDP on the interface. |
(config-if)#exit | Exit interface mode. |
(config)#mpls l2-circuit vc1 10 68.68.68.68 | Configure a Virtual Circuit for PE1. In this example, vc1 is the VC name, 10 is the VC ID, and 68.68.68.68 is the endpoint IP address. |
(config-pseduowire)#exit | Exit pseudowire mode. |
(config)#mpls l2-circuit vc2 20 69.69.69.69 | Configure another Virtual Circuit for PE1. In this example, vc2 is the VC name, 20 is the VC ID, and 69.69.69.69 is the endpoint IP address. |
(config-pseduowire)#exit | Exit pseudowire mode. |
(config-if)#interface eth2 | Enter interface mode. |
(config-if)#switchport | Switch to Layer 2 mode. |
(config-if)#mpls-l2-circuit vc1 ethernet | Bind VC1 as an Ethernet circuit. |
(config-if)#mpls-l2-circuit vc2 ethernet | Bind VC2 as an Ethernet circuit. |
(config-if)#exit | Exit interface mode. |
#configure terminal | Enter configure mode. |
(config-if)#interface lo | Identify the loopback interface to configure (lo). |
(config-if)#ip address 68.68.68.68/24 | Set the IP address of the loopback interface to 68.68.68.68/24. |
(config-if)#exit | Exit interface mode. |
(config)#interface eth3 | Enter interface mode. |
(config-if)#label switching | Enable label switching on the interface. |
(config-if)#ip address 33.0.0.68/24 | Set the IP address of the interface to 33.0.0.68/24. |
(config-if)#exit | Exit interface mode. |
(config)#router ospf | Enter the Router mode for OSPF. |
(config-router)#network 68.68.68.68/32 area 0 (config-router)#network 33.0.0.0/24 area 0 | Define the Network on which OSPF runs and associate the area ID (area 0) with the interface. |
(config-router)#exit | Exit Router mode and return to Configure mode. |
(config)#router ldp | Enter the Router mode for LDP. |
(config-router)#transport-address ipv4 68.68.68.68 | Configure loopback address as LDP transport address. |
(config-router)#pw-status-tlv | Enable the PW Status TLV (pw-status-tlv). |
(config-router)#targeted-peer-ipv4 66.66.66.66 | Configure LDP targeted peer to PE1. |
(config-router)#targeted-peer-ipv4 67.67.67.67 | Configure LDP targeted peer to PE3. |
(config-router)#exit | Exit Router mode and return to Configure mode. |
(config)#interface eth3 | Enter interface mode. |
(config-if)#enable-ldp ipv4 | Enable IPv4 LDP on the interface. |
(config-if)#exit | Exit interface mode. |
(config)#mpls l2-circuit vc1 10 66.66.66.66 | Configure a Virtual Circuit for PE2. In this example, vc1 is the VC name, 10 is the VC ID, and 66.66.66.66 is the endpoint IP address. |
(config-pseduowire)#exit | Exit pseudowire mode. |
(config)#mpls l2-circuit vc2 20 67.67.67.67 | Configure another Virtual Circuit for PE2. In this example, vc2 is the VC name, 20 is the VC ID, and 67.67.67.67 is the endpoint IP address. |
(config-pseduowire)#exit | Exit pseudowire mode. |
(config-if)#interface eth2 | Enter interface mode. |
(config-if)#switchport | Switch to Layer 2 mode. |
(config-if)#mpls-l2-circuit vc1 ethernet | Bind VC1 as an Ethernet circuit. |
(config-if)#mpls-l2-circuit vc2 ethernet | Bind VC2 as an Ethernet circuit. |
(config-if)#exit | Exit interface mode. |
#configure terminal | Enter configure mode. |
(config-if)#interface lo | Identify the loopback interface to configure (lo). |
(config-if)#ip address 67.67.67.67/32 | Set the IP address of the loopback interface to 67.67.67.67/32. |
(config-if)#exit | Exit interface mode. |
(config)#interface eth2 | Enter interface mode. |
(config-if)#label-switching | Enable label switching on the interface. |
(config-if)#ip address 22.0.0.67/24 | Set the IP address of the interface to 22.0.0.67/24. |
(config-if)#exit | Exit interface mode. |
(config)#router ospf | Enter the Router mode for OSPF. |
(config-router)#network 67.67.67.67/32 area 0 (config-router)#network 22.0.0.0/24 area 0 | Define the Network on which OSPF runs and associate the area ID (area 0) with the interface. |
(config-router)#exit | Exit Router mode and return to Configure mode. |
(config)#router ldp | Enter the Router mode for LDP. |
(config-router)#transport-address ipv4 67.67.67.67 | Configure loopback address as LDP transport address. |
(config-router)#pw-status-tlv | Enable the PW Status TLV (pw-status-tlv). |
(config-router)#targeted-peer-ipv4 68.68.68.68 | Configure LDP targeted peer for PE2. |
(config-router)#targeted-peer-ipv4 69.69.69.69 | Configure LDP targeted peer for PE4. |
(config-router)#exit | Exit Router mode and return to Configure mode. |
(config)#interface eth2 | Enter interface mode. |
(config-if)#enable-ldp ipv4 | Enable IPv4 LDP on the interface. |
(config-if)#exit | Exit interface mode. |
(config)#mpls l2-circuit vc3 30 68.68.68.68 | Configure a Virtual Circuit for PE3. In this example, vc3 is the VC name, 30 is the VC ID, and 68.68.68.68 is the endpoint IP address. |
(config-pseduowire)#exit | Exit pseudowire mode. |
(config)#mpls l2-circuit vc4 40 69.69.69.69 | Configure another Virtual Circuit for PE3. In this example, vc4 is the VC name, 40 is the VC ID, and 69.69.69.69 is the endpoint IP address. |
(config-pseduowire)#exit | Exit pseudowire mode. |
(config-if)#interface eth1 | Enter interface mode. |
(config-if)#switchport | Switch to Layer 2 mode. |
(config-if)#mpls-l2-circuit vc1 ethernet | Bind VC3 as an Ethernet circuit. |
(config-if)#mpls-l2-circuit vc2 ethernet | Bind VC4 as an Ethernet circuit. |
(config-if)#vc-mode standby | Configure VC mode as standby. |
(config-if)#exit | Exit interface mode. |
#configure terminal | Enter configure mode. |
(config-if)#interface lo | Identify the loopback interface to configure (lo). |
(config-if)#ip address 69.69.69.69/32 | Set the IP address of the loopback interface to 69.69.69.69/32. |
(config-if)#exit | Exit interface mode. |
(config)#interface eth4 | Enter interface mode. |
(config-if)#label-switching | Enable label switching on the interface. |
(config-if)#ip address 44.0.0.69/24 | Set the IP address of the interface to 44.0.0.69/24. |
(config-if)#exit | Exit interface mode. |
(config)#router ospf | Enter the Router mode for OSPF. |
(config-router)#network 69.69.69.69/32 area 0 (config-router)#network 44.0.0.0/24 area 0 | Define the Network on which OSPF runs and associate the area ID (area 0) with the interface. |
(config-router)#exit | Exit Router mode and return to Configure mode. |
(config)#router ldp | Enter the Router mode for LDP. |
(config-router)#transport-address ipv4 69.69.69.69 | Configure LDP loopback address as transport address. |
(config-router)#pw-status-tlv | Enable the Pseudowire Status TLV (pw-status-tlv). |
(config-router)#targeted-peer-ipv4 68.68.68.68 | Configure LDP targeted peer to PE1. |
(config-router)#targeted-peer-ipv4 69.69.69.69 | Configure LDP targeted peer to PE3. |
(config-router)#exit | Exit the Router mode and return to Configure mode. |
(config)#interface eth4 | Enter interface mode. |
(config-if)#enable-ldp ipv4 | Enable IPv4 LDP on the interface. |
(config-if)#exit | Exit interface mode. |
(config)#mpls l2-circuit vc2 20 66.66.66.66 | Configure a Virtual Circuit for PE1. In this example, vc2 is the VC name, 20 is the VC ID, and 66.66.66.66 is the endpoint IP address. |
(config-pseduowire)#exit | Exit pseudowire mode. |
(config)#mpls l2-circuit vc4 40 67.67.67.67 | Configure another Virtual Circuit for PE3. In this example, vc4 is the VC name, 40 is the VC ID, and 66.66.66.66 is the endpoint IP address. |
(config-pseduowire)#exit | Exit pseudowire mode. |
(config-if)#interface eth1 | Enter interface mode. |
(config-if)#switchport | Switch to Layer 2 mode. |
(config-if)#mpls-l2-circuit vc2 ethernet | Bind VC2 as an Ethernet circuit. |
(config-if)#mpls-l2-circuit vc3 ethernet | Bind VC4 as an Ethernet circuit. |
(config-if)#vc-mode standby | Configure VC mode as standby. |
(config-if)#exit | Exit interface mode. |
#configure terminal | Enter configure mode. |
(config-if)#interface lo | Identify the loopback interface to configure (lo). |
(config-if)#ip address 71.71.71.71 | Set the IP address of the loopback interface to 71.71.71.71. |
(config-if)#exit | Exit interface mode. |
(config)#router ldp | Enter the Router mode for LDP. |
(config-router)#transport-address ipv4 71.71.71.71 | Configure loopback address as LDP transport address. |
(config-router)#pw-status-tlv | Enable the PW Status TLV (pw-status-tlv). |
(config-router)#exit | Exit Router mode and return to Configure more. |
(config)#interface eth1 | Enter interface mode. |
(config-if)#ip address 11.0.0.71/24 | Set the IP address of eth0 to 11.0.0.71/24. |
(config-if)#exit | Exit interface mode. |
(config)#interface eth2 | Enter interface mode. |
(config-if)#label-switching | Enable label switching on interface eth1. |
(config-if) ip address 22.0.0.71/24 | Set the IP address of the interface to 22.0.0.71/24. |
(config-if)#enable-ldp ipv4 | Enable IPv4 LDP on the interface. |
(config-if)#exit | Exit interface mode. |
(config)#interface eth3 | Enter interface mode. |
(config-if)#label-switching | Enable label switching on the interface. |
(config-if)#ip address 33.0.0.71/24 | Set the IP address for the interface to 33.0.0.71/24. |
(config-if)#enable-ldp ipv4 | Enable IPv4 LDP on the interface. |
(config-if)#exit | Exit interface mode. |
(config)#interface eth4 | Enter interface mode. |
(config-if)#label-switching | Enable label switching on the interface. |
(config-if)#ip address 44.0.0.71/24 | Set the IP address for the interface to 44.0.0.71/24. |
(config-if) enable-ldp ipv4 | Enable IPv4 LDP on the interface. |
(config-if)#exit | Exit interface mode. |
(config)#router ospf | Enter the Router mode for OSPF. |
(config-router)#network 11.0.0.0/24 area 0 (config-router)#network 22.0.0.0/24 area 0 (config-router)#network 33.0.0.0/24 area 0 (config-router)#network 44.0.0.0/24 area 0 (config-router)#network 71.71.71.71/32 area 0 | Configure the Network associations for router P and associate them all with area 0. |
(config-router)#exit | Exit Router mode and return to Configure mode. |
#configure terminal | Enter configure mode. |
(config-if)#lo | Identify the loopback interface to configure (lo). |
(config-if)#ip address 66.66.66.66/32 | Set the IP address of the loopback interface to 66.96.66.66/32. |
(config-if)#exit | Exit interface mode. |
(config)#interface eth1 | Enter interface mode. |
(config-if)#label-switching | Enable label switching on the interface. |
(config-if)#ip address 11.0.0.66/24 | Set the IP address of the interface to 11.1.1.66./24. |
(config-if)#exit | Exit interface mode. |
(config)#router ospf | Enter the Router mode for OSPF. |
(config-router)#network 66.66.66.66/32 area 0 (config-router)#network 11.0.0.66/24 area 0 | Define the Network on which OSPF runs and associate the area ID (area 0) with the interface. |
(config-router)#exit | Exit Router mode and return to Configure mode. |
(config)#router ldp | Enter the Router mode for LDP. |
(config-router)#transport-address ipv4 66.66.66.66 | Configure loopback address as LDP transport address. |
(config-router)#pw-status-tlv | Enable the PW Status TLV (pw-status-tlv). |
(config-router)#targeted-peer-ipv4 68.68.68.68 | Configure LDP targeted peer to PE1. |
(config-router)#targeted-peer-ipv4 69.69.69.69 | Configure LDP targeted peer to PE2. |
(config-router)#exit | Exit Router mode and return to Configure mode. |
(config)#interface eth1 | Enter interface mode. |
(config-if)#enable-ldp ipv4 | Enable IPv4 LDP on the interface. |
(config-if)#exit | Exit interface mode. |
(config)#mpls l2-circuit vc1 10 68.68.68.68 | Configure a Virtual Circuit to PE1. In this example, vc1 is the VC name, 10 is the VC ID, and 68.68.68.68 is the endpoint IP address. |
(config-pseduowire)#exit | Exit pseudowire mode. |
(config)#mpls l2-circuit vc2 20 69.69.69.69 | Configure another Virtual Circuit to PE1. In this example, vc2 is the VC name, 20 is the VC ID, and 69.69.69.69 is the endpoint IP address. |
(config-pseduowire)#exit | Exit pseudowire mode. |
(config-if)#interface eth2 | Enter interface mode. |
(config-if)#switchport | Switch to Layer 2 mode. |
(config-if)#mpls-l2-circuit vc1 ethernet | Bind VC1 as an Ethernet circuit. |
(config-if)#mpls-l2-circuit vc2 ethernet secondary | Bind VC2 as secondary. |
(config-if)#exit | Exit interface mode. |
#configure terminal | Enter configure mode. |
(config-if)#interface lo | Identify the loopback interface to configure (lo). |
(config-if)#ip address 71.71.71.71 | Set the IP address of the loopback interface to 71.71.71.71. |
(config-if)#exit | Exit interface mode. |
(config)#router ldp | Enter the Router mode for LDP. |
(config-router)#transport-address ipv4 71.71.71.71 | Configure loopback address as LDP transport address. |
(config-router)#pw-status-tlv | Enable the PW Status TLV (pw-status-tlv). |
(config-router)#exit | Exit Router mode and return to Configure mode. |
(config)#interface eth1 | Enter interface mode. |
(config-if)#label-switching | Enable label switching on the interface. |
(config-if)#ip address 11.0.0.71/24 | Set the IP address of eth1 to 11.0.0.71/24. |
(config-if)#enable-ldp ipv4 | Enable IPv4 LDP on the interface. |
(config-if)#exit | Exit interface mode. |
(config)#interface eth3 | Enter interface mode. |
(config-if)#label-switching | Enable label switching on the interface. |
(config-if)#ip address 33.0.0.71/24 | Set the IP address for eth3 to 33.0.0.71/24. |
(config-if)#enable-ldp ipv4 | Enable IPv4 LDP on the interface. |
(config-if)#exit | Exit interface mode. |
(config)#interface eth4 | Enter interface mode. |
(config-if)#label-switching | Enable label switching on the interface. |
(config-if)#ip address 44.0.0.71/24 | Set the IP address for the interface to 44.0.0.71/24. |
(config-if)#enable-ldp ipv4 | Enable IPv4 LDP on the interface. |
(config-if)#exit | Exit interface mode. |
(config)#router ospf | Enter the Router mode for OSPF. |
(config-router)#network 71.71.71.71/32 area 0 (config-router)#network 11.0.0.71/24 area 0 (config-router)#network 33.0.0.71/24 area 0 (config-router)#network 44.0.0.71/24 area 0 | Configure the Network associations for router P1 and associate them all to area0. |
(config-router)#exit | Exit Router mode and return to Configure mode. |
#configure terminal | Enter configure mode. |
(config-if)#interface lo | Identify the loopback interface to configure (lo). |
(config-if)#ip address 68.68.68.68/32 | Set the IP address of the loopback interface to 68.68.68.68/32. |
(config-if)#exit | Exit interface mode. |
(config)#interface eth3 | Enter interface mode. |
(config-if)#label-switching | Enable label switching on the interface. |
(config-if)#ip address 33.0.0.68/24 | Set the IP address of the interface to 33.0.0.68/24. |
(config-if)#exit | Exit interface mode. |
(config)#interface eth1 | Enter interface mode. |
(config-if)#label-switching | Enable label switching on the interface. |
(config-if)#ip address 22.0.0.68/24 | Set the IP address of the interface to 22.0.0.68/24. |
(config-if)#exit | Exit interface mode. |
(config)#router ospf | Enter the Router mode for OSPF. |
(config-router)#network 68.68.68.68/32 area 0 (config-router)#network 33.0.0.0/24 area 0 (config-router)#network 22.0.0.0/24 area 0 | Define the Network on which OSPF runs and associate the area ID (area 0) with the interfaces. |
(config-router)#exit | Exit Router mode and return to Configure mode. |
(config)#router ldp | Enter the Router mode for LDP. |
(config-router)#transport-address ipv4 68.68.68.68 | Configure loopback address as LDP transport address. |
(config-router)#pw-status-tlv | Enable the PW Status TLV (pw-status-tlv). |
(config-router)#targeted-peer-ipv4 66.66.66.66 | Configure LDP targeted peer to MTU-s. |
(config-router)#targeted-peer-ipv4 67.67.67.67 | Configure LDP targeted peer to PE3. |
(config-router)#exit | Exit Router mode and return to Configure mode. |
(config)#interface eth3 | Enter interface mode. |
(config-if)#enable-ldp ipv4 | Enable IPv4 LDP on the interface. |
(config-if)#exit | Exit interface mode. |
(config)#interface eth1 | Enter interface mode. |
(config-if)#enable-ldp ipv4 | Enable IPv4 LDP on the interface. |
(config-if)#exit | Exit interface mode. |
(config)#mpls l2-circuit vc1 10 66.66.66.66 | Configure a Virtual Circuit to MTU-s. In this example, vc1 is the VC name, 10 is the VC ID, and 66.66.66.66 is the endpoint IP address. |
(config-pseduowire)#exit | Exit pseudowire mode. |
(config)#mpls vpls vp1 15 | Enter VPLS mode and configure VPLS vp1 with VPLS ID 15. |
(config-vpls)#signaling ldp | Enter VPLS signaling LDP mode. |
(config-vpls-sig)#vpls-peer 67.67.67.67 | Configure a VPLS mesh peer to PE3. |
(config-vpls-sig)#exit | Exit signaling LDP mode. |
(config-vpls)#vpls-vc vc1 | Configure vc1 as a VPLS spoke peer. |
(config-vpls)#exit | Exit interface mode. |
#configure terminal | Enter configure mode. |
(config-if)#interface lo | Identify the loopback interface to configure (lo). |
(config-if)#ip address 69.69.69.69/32 | Set the IP address of the loopback interface to 69.69.69.69/32. |
(config-if)#exit | Exit interface mode. |
(config)#interface eth4 | Enter interface mode. |
(config-if)#label-switching | Enable label switching on the interface. |
(config-if)#ip address 44.0.0.69/24 | Set the IP address of the interface to 44.0.0.69/24. |
(config-if)#exit | Exit interface mode. |
(config)#interface eth1 | Enter interface mode. |
(config-if)#label-switching | Enable label switching on the interface. |
(config-if)#ip address 23.0.0.69/24 | Set the IP address of the interface to 23.0.0.69/24. |
(config-if)#exit | Exit interface mode. |
(config)#router ospf | Enter the Router mode for OSPF. |
(config-router)#network 69.69.69.69/32 area 0 (config-router)#network 44.0.0.0/24 area 0 (config-router)#network 23.0.0.0/24 area 0 | Define the Network on which OSPF runs and associate the area ID (area 0) with the interfaces. |
(config-router)#exit | Exit Router mode and return to Configure mode. |
(config)#router ldp | Enter the Router mode for LDP. |
(config)#transport-address ipv4 69.69.69.69 | Configure LDP transport address as loopback address. |
(config-router)#pw-status-tlv | Enable the PW Status TLV (pw-status-tlv). |
(config-router)#targeted-peer-ipv4 66.66.66.66 | Configure LDP targeted peer to MTU-s. |
(config-router)#targeted-peer-ipv4 67.67.67.67 | Configure LDP targeted peer to PE3. |
(config-router)#exit | Exit the Router mode and return to Configure mode. |
(config)#interface eth4 | Enter interface mode. |
(config-if)#enable-ldp ipv4 | Enable IPv4 LDP on the interface. |
(config-if)#exit | Exit interface mode. |
(config)#interface eth1 | Enter interface mode. |
(config-if)#enable-ldp ipv4 | Enable IPv4 LDP on the interface. |
(config-if)#exit | Exit interface mode. |
(config)#mpls l2-circuit vc2 20 66.66.66.66 | Configure a Virtual Circuit to MTU-s. In this example, vc2 is the VC name, 20 is the VC ID, and 66.66.66.66 is the endpoint IP address. |
(config-pseduowire)#exit | Exit pseudowire mode. |
(config)#mpls vpls vp1 15 | Configure a VPLS vp1 with VPLS ID 15. |
(config-vpls)#signaling ldp | Enter VPLS signaling LDP mode. |
(config-vpls-sig)#vpls-peer 67.67.67.67 | Configure a VPLS mesh peer to PE3. |
(config-vpls-sig)#exit | Exit signaling LDP mode. |
(config-vpls)#vpls-vc vc2 | Configure vc2 as a VPLS spoke peer. |
(config-vpls)#exit | Exit VPLS mode and return to Configure mode. |
#configure terminal | Enter configure mode. |
(config-if)#interface lo | Identify the loopback interface to configure (lo). |
(config-if)#ip address 72.72.72.72 | Set the IP address of the loopback interface to 72.72.72.72. |
(config-if)#exit | Exit interface mode. |
(config)#router ldp | Enter the Router mode for LDP. |
(config-router)#transport-address ipv4 72.72.72.72 | Configure loopback address as LDP transport address. |
(config-router)#pw-status-tlv | Enable the PW Status TLV (pw-status-tlv). |
(config-if)#exit | Exit interface mode. |
(config)#interface eth1 | Enter interface mode. |
(config-if)#label-switching | Enable label switching on the interface. |
(config-if) ip address 22.0.0.72/24 | Set the IP address of the interface to 22.0.0.72/24. |
(config-if)#enable-ldp ipv4 | Enable IPv4 LDP on the interface. |
(config-if)#exit | Exit interface mode. |
(config)#interface eth2 | Enter interface mode. |
(config-if)#label-switching | Enable label switching on the interface. |
(config-if)#ip address 23.0.0.72/24 | Set the IP address for the interface to 23.0.0.72/24. |
(config-if)#enable-ldp ipv4 | Enable IPv4 LDP on the interface. |
(config-if)#exit | Exit interface mode. |
(config)#interface eth3 | Enter interface mode. |
(config-if)#label-switching | Enable label switching on the interface. |
(config-if)#ip address 24.0.0.72/24 | Set the IP address of the interface to 24.0.0.72/24. |
(config-if) enable-ldp ipv4 | Enable IPv4 LDP on the interface. |
(config-if)#exit | Exit interface mode. |
(config)#router ospf | Enter the Router mode for OSPF. |
(config-router)#network 72.72.72.72/32 area 0 (config-router)#network 22.0.0.0/24 area 0 (config-router)#network 23.0.0.0/24 area 0 (config-router)#network 24.0.0.0/24 area 0 | Configure the Network associations for router P2 and associate them all with area 0. |
(config-router)#exit | Exit Router mode and return to Configure mode. |
#configure terminal | Enter configure mode. |
(config-if)#interface lo | Identify the loopback interface to configure (lo). |
(config-if)#ip address 67.67.67.67/32 | Set the IP address of the loopback interface to 67.67.67.67/32. |
(config-if)#exit | Exit interface mode. |
(config)#interface eth2 | Enter interface mode. |
(config-if)#label-switching | Enable label switching on the interface. |
(config-if)#ip address 24.0.0.67/24 | Set the IP address of the interface to 24.0.0.67/24. |
(config-if)#exit | Exit interface mode. |
(config)#router ospf | Enter the Router mode for OSPF. |
(config-router)#network 67.67.67.67/32 area 0 (config-router)#network 24.0.0.0/24 area 0 | Define the Network on which OSPF runs and associate the area ID (area 0) with the interface. |
(config-router)#exit | Exit Router mode and return to Configure mode. |
(config)#router ldp | Enter the Router mode for LDP. |
(config-router)#transport-address ipv4 67.67.67.67 | Configure loopback address as LDP transport address. |
(config-router)#pw-status-tlv | Enable the Pseudowire Status TLV (pw-status-tlv). |
(config-router)#targeted-peer-ipv4 68.68.68.68 | Configure LDP targeted peer to PE1. |
(config-router)#targeted-peer-ipv4 69.69.69.69 | Configure LDP targeted peer to PE2. |
(config-router)#exit | Exit Router mode and return to Configure mode. |
(config)#interface eth2 | Enter interface mode. |
(config-if)#enable-ldp ipv4 | Enable IPv4 LDP on the interface. |
(config-if)#exit | Exit interface mode. |
(config)#mpls vpls vp1 15 | Configure VPLS vp1 with VPLS ID 15. |
(config-vpls)#signaling ldp | Enter VPLS signaling LDP mode. |
(config-vpls-sig)#vpls-peer 68.68.68.68 | Configure VPLS mesh peer to PE1. |
(config-vpls-sig)#vpls-peer 69.69.69.69 | Configure VPLS mesh peer to PE2. |
(config-vpls-sig)#exit | Exit signaling LDP mode. |
(config-vpls)#exit | Exit VPLS mode and return to Configure mode. |
(config)#interface eth1 | Enter interface mode. |
(config-if)#switchport | Switch to Layer 2 mode. |
(config-if)#mpls-vpls vp1 | Bind VPLS vp1 to interface. |
(config-if)#exit | Exit interface mode. |
#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. |
#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)#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)#mpls l2-circuit pw1 10 4.4.4.4 | Configure pseudowire PW1 between MTU-s and PE1 |
(config-pseduowire)#exit | Exit pseudowire mode. |
(config)#mpls l2-circuit pw2 20 4.4.4.4 | Configure pseudowire PW2 between MTU-s and PE2 |
(config-pseduowire)#exit | Exit pseudowire mode. |
(config)#interface eth3 | 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 PW1 as primary pseudowire to access interface |
(config-if)#mpls-l2-circuit pw2 vlan 100 secondary | Bind the PW2 as secondary pseudowire to access interface |
(config-if)#vc-mode revertive vlan 100 | Configure VC-mode as revertive. |
(config-if)#exit | Enter interface mode. |
(config)#exit | Enter configure mode. |
#vc-switchover pw1 pw2 | Configure VC-switchover to change the forwarding status of active PW1 to standby and standby PW2 to active. |
#configure terminal | Enter configure mode. |
(config)#router ldp | Enter the Router LDP mode. |
(config-router)#pw-status-tlv | Configure PW status TLV for pseudowire 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 MTU-s loopback address. |
(config-router)#exit | Exit the Router LDP mode and return to Configure 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)#mpls l2-circuit pw1 10 4.4.4.4 | Configure pseudowire PW1 between PE1 and MTU-s. |
(config-pseduowire)#exit | Exit pseudowire mode. |
(config)#mpls vpls v1 111 | Configure VPLS v1 with ID 111 on PE1. |
(config-vpls)#signaling ldp | Enter VPLS signaling LDP mode. |
(config-vpls-sig)#vpls-peer 3.3.3.3 | Configure PE3 as VPLS peer |
(config-vpls-sig)#exit | Exit signaling LDP mode. |
(config-vpls)#vpls-vc pw1 vlan | Configure PW1 as VLAN VC-Spoke. |
(config-vpls)#exit | Exit the VPLS mode and return to Configure mode. |
(config)#interface eth3 | Enter configure 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-vpls v1 | Bind the VPLS to access interface. |
(config-if)#exit | Enter interface mode. |
(config)#exit | Enter 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 pseudowire 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 MTU-s loopback address. |
(config-router)#exit | Exit the Router LDP mode and return to Configure 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)#mpls l2-circuit pw2 20 4.4.4.4 | Configure pseudowire PW2 between PE2 and MTU-s. |
(config)#mpls vpls v1 111 | Configure VPLS v1 with ID 111 on PE2. |
(config-vpls)#signaling ldp | Enter VPLS signaling LDP mode. |
(config-vpls-sig)#vpls-peer 3.3.3.3 | Configure PW3 as VPLS peer. |
(config-vpls-sig)#exit | Exit signaling LDP mode. |
(config-vpls)#vpls-vc pw2 vlan | Configure PW2 as VLAN VC-spoke. |
(config-vpls)#exit | Exit the VPLS mode and return to Configure mode. |
(config)#interface eth3 | 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-vpls v1 | Bind the VPLS to access interface |
(config-if)#exit | Exit interface 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 vpls v1 111 | Configure VPLS v1 with ID 111 on PE1. |
(config-vpls)#signaling ldp | Enter VPLS signaling LDP mode. |
(config-vpls-sig)#vpls-peer 1.1.1.1 | Configure PE1 as VPLS peer. |
(config-vpls-sig)#vpls-peer 2.2.2.2 | Configure PE2 as VPLS peer. |
(config-vpls-sig)#exit | Exit signaling LDP mode. |
(config-vpls)#exit | Exit the VPLS mode and return to Configure mode. |
(config)#interface eth3 | 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-vpls v1 | Bind the VPLS to access interface. |
(config-if)#exit | Enter interface mode. |
#configure terminal | Enter configure mode. |
(config)#interface eth3 | Enter interface mode. |
(config-if)#no vc-mode revertive vlan 100 | Remove VC-mode revertive for VLAN 100. |
(config-if)#exit | Enter interface mode. |
(config)#exit | Enter configure mode. |