#configure terminal | Enter configure mode. |
(config)#interface lo | Specify the loopback interface (lo0) to be configured. |
(config-if)#ip address 1.1.1.1/32 secondary | Set the IP address of the loopback interface to 1.1.1.1/ 32. |
(config-if)#exit | Exit interface mode. |
(config)#interface xe6 | Specify the interface (xe6) to be configured. |
(config-if)#ip address 40.1.1.1/24 | Set the IP address of the interface to 40.1.1.1/24 |
(config)#interface xe1 | Specify the interface (xe1) to be configured. |
(config-if)#ip address 20.20.20.1/24 | Set the IP address of the interface to 20.20.20.1/24 |
(config-if)#exit | Exit interface mode. |
(config)#router ospf 100 | Configure the routing process and specify the Process ID (100). The Process ID should be a unique positive integer identifying the routing process. |
(config-router)#network 40.1.1.0/24 area 0 (config-router)#network 1.1.1.1/32 area 0 (config-router)# network 20.20.20.0/24 area 0 | Define the interface on which OSPF runs and associate the area ID (0) with the interface. |
#configure terminal | Enter configure mode. |
(config)#interface lo | Specify the loopback interface (lo0) to be configured. |
(config-if)#ip address 4.4.4.4/32 secondary | Set the IP address of the loopback interface to 9.9.9.9/ 32. |
(config-if)#exit | Exit interface mode. |
(config)#interface xe1/1 | Specify the interface (xe1/1) to be configured. |
(config-if)#ip address 40.1.1.2/24 | Set the IP address of the interface to 40.1.1.2/24. |
(config-if)#exit | Exit interface mode. |
(config)#interface xe33 | Specify the interface (xe33) to be configured. |
(config-if)#ip address 50.1.1.2/24 | Set the IP address of the interface to 50.1.1.1/24. |
(config-if)#exit | Exit interface mode. |
(config)#router ospf 100 | Configure the routing process and specify the Process ID (100). The Process ID should be a unique positive integer identifying the routing process. |
(config-router)#network 40.1.1.0/24 area 0 (config-router)#network 50.1.1.0/24 area 0 (config-router)#network 4.4.4.4/32 area 0 | Define the interface on which OSPF runs and associate the area ID (0) with the interface. |
#configure terminal | Enter configure mode. |
(config)#interface lo | Specify the loopback interface (lo0) to be configured. |
(config-if)#ip address 5.5.5.5/32 secondary | Set the IP address of the loopback interface to 5.5.5.5/ 32. |
(config-if)#exit | Exit interface mode. |
(config)#interface xe6 | Specify the interface (xe1/1) to be configured. |
(config-if)#ip address 70.1.1.1/24 | Set the IP address of the interface to 70.1.1.1/24. |
(config-if)#exit | Exit interface mode. |
(config)#interface xe47 | Specify the interface (xe47) to be configured. |
(config-if)#ip address 20.20.20.2/24 | Set the IP address of the interface to 20.20.20.2/24. |
(config-if)#exit | Exit interface mode. |
(config)#router ospf 100 | Configure the routing process and specify the Process ID (100). The Process ID should be a unique positive integer identifying the routing process. |
(config-router)#network 20.20.20.20/24 area 0 (config-router)#network 70.1.1.0/24 area 0 (config-router)#network 5.5.5.5/32 area 0 | Define the interface on which OSPF runs and associate the area ID (0) with the interface. |
#configure terminal | Enter configure mode. |
(config)#interface lo | Specify the loopback interface (lo0) to be configured. |
(config-if)#ip address 2.2.2.2/32 secondary | Set the IP address of the loopback interface to 2.2.2.2/ 32. |
(config-if)#exit | Exit interface mode. |
(config)#interface xe33 | Specify the interface (xe33) to be configured. |
(config-if)#ip address 50.1.1.1/24 | Set the IP address of the interface to 50.1.1.1/24 |
(config-if)#exit | Exit interface mode. |
(config)#router ospf 100 | Configure the routing process and specify the Process ID (100). The Process ID should be a unique positive integer identifying the routing process. |
(config-router)#network 50.1.1.0/24 area 0 (config-router)#network 2.2.2.2/32 area 0 | Define the interface on which OSPF runs, and associate the area ID (0) with the interface. |
#configure terminal | Enter configure mode. |
(config)#interface lo | Specify the loopback interface (lo0) to be configured. |
(config-if)#ip address 3.3.3.3/32 secondary | Set the IP address of the loopback interface to 3.3.3.3/ 32. |
(config-if)#exit | Exit interface mode. |
(config)#interface xe6 | Specify the interface (xe33) to be configured. |
(config-if)#ip address 70.1.1.2/24 | Set the IP address of the interface 70.1.1.2/24 |
(config-if)#exit | Exit interface mode. |
(config)#router ospf 100 | Configure the routing process and specify the Process ID (100). The Process ID should be a unique positive integer identifying the routing process. |
(config-router)#network 70.1.1.0/24 area 0 (config-router)#network 3.3.3.3/32 area 0 | Define the interface on which OSPF runs, and associate the area ID (0) with the interface. |
#configure terminal | Enter configure mode. |
(config)#router ldp | Enter the Router mode. |
(config)# router-id 1.1.1.1 | Configure LDP router ID. |
(config-router)#pw-status-tlv | Set PW status TLV |
(config-router)#transport-address ipv4 1.1.1.1 | Configure the transport address to be used for a TCP session over which LDP will run on an IPv4 interface. |
(config-router)#targeted-peer ipv4 2.2.2.2 | Specify the targeted LDP peer on PE-1. |
(config-router)#targeted-peer ipv4 3.3.3.3 | Specify the targeted LDP peer on PE-1. |
(config-router-targeted-peer)# exit | Exit the Router targeted peer mode. |
(config-router)#exit | Exit the Router mode. |
(config)#interface xe1 | Specify the interface (xe1) to be configured. |
(config-if)#label-switching | Enable label switching on interface xe1. |
(config-if)#enable-ldp ipv4 | Enable LDP on interface xe1. |
(config)#interface xe6 | Specify the interface (xe6) to be configured. |
(config-if)#label-switching | Enable label switching on interface xe6 |
(config-if)#enable-ldp ipv4 | Enable LDP on interface xe6. |
#configure terminal | Enter configure mode. |
(config)#router ldp | Enter the Router mode. |
(config)# router-id 2.2.2.2 | Configure LDP router ID. |
(config-router)#pw-status-tlv | Set PW status TLV |
(config-router)#transport-address ipv4 2.2.2.2 | Configure the transport address to be used for a TCP session over which LDP will run on an IPv4 interface. |
(config-router)#targeted-peer ipv4 1.1.1.1 | Specify the targeted LDP peer on PE-1. |
(config-router-targeted-peer)# exit | Exit the Router targeted peer mode. |
(config-router)#exit | Exit the Router mode. |
(config)#interface xe33 | Specify the interface (xe33) to be configured. |
(config-if)#label-switching | Enable label switching on interface xe1. |
(config-if)#enable-ldp ipv4 | Enable LDP on interface xe33. |
#configure terminal | Enter configure mode. |
(config)#router ldp | Enter the Router mode. |
(config)# router-id 3.3.3.3 | Configure LDP router ID. |
(config-router)#pw-status-tlv | Set PW status TLV |
(config-router)#transport-address ipv4 3.3.3.3 | Configure the transport address to be used for a TCP session over which LDP will run on an IPv4 interface. |
(config-router)#targeted-peer ipv4 1.1.1.1 | Specify the targeted LDP peer on PE-1. |
(config-router-targeted-peer)# exit | Exit the Router targeted peer mode. |
(config-router)#exit | Exit the Router mode. |
(config)#interface xe6 | Specify the interface (xe6) to be configured. |
(config-if)#label-switching | Enable label switching on interface xe6. |
(config-if)#enable-ldp ipv4 | Enable LDP on interface xe6. |
#configure terminal | Enter configure mode. |
(config)#router ldp | Enter the Router mode. |
(config)# router-id 4.4.4.4 | Configure LDP router ID. |
(config-router)#exit | Exit the Router mode. |
(config)#interface xe1/1 | Specify the interface (xe1/1) to be configured. |
(config-if)#label-switching | Enable label switching on interface xe1/1. |
(config-if)#enable-ldp ipv4 | Enable LDP on interface xe1. |
(config)#interface xe33 | Specify the interface (xe6) to be configured. |
(config-if)#label-switching | Enable label switching on interface xe33. |
(config-if)#enable-ldp ipv4 | Enable LDP on interface xe33. |
#configure terminal | Enter configure mode. |
(config)#router ldp | Enter the Router mode. |
(config)# router-id 5.5.5.5 | Configure LDP router ID. |
(config-router)#exit | Exit the Router mode. |
(config)#interface xe6 | Specify the interface (xe6) to be configured. |
(config-if)#label-switching | Enable label switching on interface xe6. |
(config-if)#enable-ldp ipv4 | Enable LDP on interface xe1. |
(config)#interface xe47 | Specify the interface (xe47) to be configured. |
(config-if)#label-switching | Enable label switching on interface xe47. |
(config-if)#enable-ldp ipv4 | Enable LDP on interface xe47. |
#configure terminal | Enter configure mode. |
(config)# mpls l2-circuit VPLS-100-1 10000100 3.3.3.3 | Configure the VC for PE-3. In this example, VPLS-100-1 is the VC name, 10000100 is the VC ID, and 3.3.3.3 is the VC endpoint IP address. |
(config-pseudowire)# mpls l2-circuit VPLS-200-3 30000200 2.2.2.2 | Configure the VC for PE-2. In this example, VPLS-200-3 is the VC name, 30000200 is the VC ID, and 2.2.2.2 is the VC endpoint IP address. |
#configure terminal | Enter configure mode. |
(config)# mpls l2-circuit VPLS-200-3 30000200 1.1.1.1 | Configure the VC for PE-1. In this example, VPLS-200-3 is the VC name, 30000200 is the VC ID, and 1.1.1.1 is the VC endpoint IP address. |
#configure terminal | Enter configure mode. |
(config)# mpls l2-circuit VPLS-100-1 10000100 1.1.1.1 mode tagged | Configure the VC for PE-1. In this example, VPLS-100-1 is the VC name, 10000100is the VC ID, and 1.1.1.1 is the VC endpoint IP address. |
#configure terminal | Enter configure mode. |
(config)# mpls l2-circuit VPLS-100-1 10000100 3.3.3.3 | Configure the VC for PE-3. In this example, VPLS-100-1 is the VC name, 10000100 is the VC ID, and 3.3.3.3 is the VC endpoint IP address. |
(config-pseudowire)# mpls l2-circuit VPLS-200-3 30000200 2.2.2.2 | Configure the VC for PE-2. In this example, VPLS-200-3 is the VC name, 30000200 is the VC ID, and 2.2.2.2 is the VC endpoint IP address. |
(config-pseudowire)#exit | Exit pseudowire config mode. |
(config)#interface xe9.10 switchport | Creates a L2 sub-interface as xe9.10 |
(config-if)#encapsulation dot1q 10 | Configure the encapsulation as dot1q matching vlan 10 |
(config-if)#access-if-vpws | Configure access-if-vpws on interface mode |
(config-acc-if-vpws)#mpls-l2-circuit VPLS-200-3 primary | Configure the VC for PE-1 In this example, VPLS-200-3 is the VC name |
(config-acc-if-vpws)#mpls-l2-circuit VPLS-100-1 secondary | Configure the VC for PE-1 In this example, VPLS-200-3 is the VC name |
(config-acc-if-vpws)#vc-mode revertive | Configured the vc-mode revertive |
#configure terminal | Enter configure mode. |
(config)# mpls l2-circuit VPLS-200-3 30000200 1.1.1.1 | Configure the VC for PE-1. In this example, VPLS-200-3 is the VC name, 30000200 is the VC ID, and 1.1.1.1 is the VC endpoint IP address. |
(config-pseudowire)#exit | Exit pseudowire config mode. |
(config)#interface xe9.10 switchport | Creates a L2 sub-interface as xe9.10 |
(config-if)#encapsulation dot1q 10 | Configure the encapsulation as dot1q matching vlan 10 |
(config-if)#access-if-vpws | Configure access-if-vpws on interface mode |
(config-acc-if-vpws)#mpls-l2-circuit VPLS-200-3 primary | Configure the VC for PE-12 In this example, VPLS-200-3 is the VC name. |
#configure terminal | Enter configure mode. |
(config)# mpls l2-circuit VPLS-200-3 30000200 1.1.1.1 | Configure the VC for PE-1. In this example, VPLS-200-3 is the VC name, 30000200 is the VC ID, and 1.1.1.1 is the VC endpoint IP address. |
(config-pseudowire)#exit | Exit pseudowire config mode. |
(config)#interface xe6.100 switchport | Creates a L2 sub-interface as xe6.100 |
(config-if)#encapsulation dot1q 100 | Configure the encapsulation as dot1q matching vlan 100 |
(config-if)#access-if-vpws | Configure access-if-vpws on interface mode |
(config-acc-if-vpws)# mpls-l2-circuit VPLS-100-1 primary | Configure the VC for PE-12 In this example, VPLS-100-1 is the VC name |