#configure terminal | Enter the configure mode |
(config)#mpls ftn-entry tunnel-id 11 2.2.2.2/32 102 10.10.1.2 xe1 primary | Configure the MPLS FTN entry for the creation of a static LSP to PE-2 |
(config)#mpls ftn-entry tunnel-id 22 3.3.3.3/32 103 10.10.1.2 xe1 primary | Configure the MPLS FTN entry for the creation of a static LSP to PE-3 |
(config)#mpls ilm-entry 201 pop | Configure the MPLS ILM entry for the creation of a static LSP to PE-2 |
(config)#mpls ilm-entry 301 pop | Configure the MPLS ILM entry for the creation of a static LSP to PE-3 |
(config)#mpls vpls v1 100 | Configure the VPLS v1 with ID 100 on PE-1 |
(config-vpls)#vpls-peer 2.2.2.2 tunnel-id 11 manual | Configure the PE-2 as a manual VPLS peer using the static LSP tunnel ID 11 |
(config-vpls)#vpls-peer 3.3.3.3 tunnel-id 22 manual | Configure the PE-3 as a manual VPLS peer using the static LSP tunnel ID 22 |
(config-vpls)#exit | Exit the configure VPLS mode |
(config)#interface xe1 | Enter the interface mode |
(config-if)#ip address 10.10.1.1/24 | Configure the IP address for the interface |
(config-if)#label-switching | Enable the label switching capability on the interface |
(config-if)#exit | Exit the interface mode |
(config)#interface lo | Enter interface mode |
(config-if)#ip address 1.1.1.1/32 secondary | Configure the IP address for the loopback interface |
(config-if)#exit | Exit the interface mode |
(config)#router ospf 100 | Configure the routing process and specify the routing process ID(100) |
(config-router)#ospf router-id 1.1.1.1 | Configure the OSPF router id same as loopback ip address |
(config-router)#transport-address ipv4 1.1.1.1 | Configure the transport address as loopback address |
(config-router)# targeted-peer ipv4 3.3.3.3 | Configure the targeted peer |
(config-router-targeted-peer)#exit | Exit targeted peer mode |
(config-router)#network 10.10.1.0/24 area 0 | Define the interface address on which the OSPF runs and associate an area ID(0) with the interface address |
(config-router)#network 1.1.1.1/32 area 0 | Define the interface address on which the OSPF runs and associate an area ID(0) with the interface address |
(config-router)#exit | Exit the router mode |
(config-if)#label-switching | Configure the label switching |
(config-if)#exit | Exit the interface mode. |
(config)#service-template st1 | Template configuration |
(config-svc)#exit | Exit the service template mode |
(config)#interface xe2 | Enter the interface mode |
(config-if)#switchport | Switch to Layer-2 mode |
(config-if)#mpls-vpls v1 service-template st1 | Bind the VPLS to the Access Interface. |
(config-if-vpls)#exit | Exit VPLS attachment-circuit mode |
(config-if)#exit | Exit the interface mode. |
(config)#vpls fib-entry 100 peer 2.2.2.2 1000 xe1 2000 | Configure VPLS FIB entry for VPLS peer PE-2. |
(config)#vpls fib-entry 100 peer 3.3.3.3 3000 xe1 4000 | Configure VPLS FIB entry for VPLS peer PE-3. |
#configure terminal | Enter the configure mode |
(config)#interface lo | Enter the interface mode |
(config-if)#ip address 9.9.9.9/32 secondary | Configure IP address for the loopback interface |
(config-if)#exit | Exit the interface mode |
(config)#interface xe1 | Specify the interface to be configured |
(config-if)#ip address 10.10.1.2/24 | Configure the IP address for the interface |
(config-if)#label-switching | Enable label switching capability on the interface |
(config-if)#exit | Exit the interface mode |
(config)#interface xe2 | Enter the interface mode |
(config-if)#ip address 20.20.1.1/24 | Configure the IP address for the interface |
(config-if)#label-switching | Enable the label switching capability on the interface. |
(config-if)#exit | Exit the interface mode |
(config)#interface xe3 | Enter the interface mode |
(config-if)#ip address 30.30.1.1/24 | Configure IP address for the interface |
(config-if)#label-switching | Enable label switching capability on the interface |
(config-if)#exit Exit | Exit the interface mode |
(config)#router ospf 100 | Configure the routing process and specify the routing process ID(100) |
(config-router)#ospf router-id 9.9.9.9 | Configure the OSPF router id same as loopback ip address |
(config-router)#transport-address ipv4 9.9.9.9 | Configure the transport address as loopback address |
(config-router)#network 10.1.1.0/24 area 0 | Define the interface address on which the OSPF runs and associate an area ID(0) with the Interface address |
(config-router)#network 20.20.1.0/24 area 0 | Define the interface address on which the OSPF runs and associate an area ID(0) with the Interface address |
(config-router)#network 30.30.1.0/24 area 0 | Define the interface address on which the OSPF runs and associate an area ID(0) with the Interface address. |
(config-router)#network 9.9.9.9/32 area 0 | Define the interface address on which the OSPF runs and associate an area ID(0) with the Interface address |
(config-router)#exit | Exit the router mode |
#configure terminal | Enter the Configure mode |
(config)# mpls ftn-entry tunnel-id 11 1.1.1.1/32 201 20.20.1.2 xe1 primary | Configure the MPLS FTN entry for the creation of a static LSP to PE-1, and designate xe1 as primary |
(config)# mpls ftn-entry tunnel-id 33 3.3.3.3/32 301 20.20.1.2 xe1 primary | Configure the MPLS FTN entry for the creation of a static LSP to PE-3, and designate xe1 as primary. |
(config)#mpls ilm-entry 102 pop | Configure the MPLS ILM entry for the creation of a static LSP to PE-1. |
(config)#mpls ilm-entry 302 pop | Configure the MPLS ILM entry for the creation of a static LSP to PE-3 |
(config)#mpls vpls v1 100 | Configure the VPLS v1 with ID 100 on PE-2. |
(config-vpls)#vpls-peer 1.1.1.1 tunnel-id 11 manual | Configure the PE-1 as a manual VPLS peer using static LSP tunnel ID |
(config-vpls)#vpls-peer 3.3.3.3 tunnel-id 33 manual | Configure the PE-3 as a manual VPLS peer using static LSP tunnel ID |
(config-vpls)#exit | Exit the Configure VPLS mode |
(config)#interface lo | Enter the interface mode |
(config-if)#ip address 2.2.2.2/32 secondary | Configure the IP address for the loopback interface. |
(config-if)#exit | Exit the interface mode |
(config)#interface xe1 | Enter the interface mode |
(config-if)#ip address 20.20.1.2/24 | Configure the IP address for the interface |
(config-if)#label-switching | Configure the label switching |
(config-if)#exit | Exit the interface mode |
(config)#service-template st1 | Template configuration |
(config-svc)#exit | Exit the service template mode |
(config)#interface xe2 | Enter the interface mode |
(config-if)#switchport Switch to Layer-2 mode | Make port Layer-2 |
(config-if)#mpls-vpls v1 service-template st1 | Bind the VPLS to the Access Interface |
(config-if-vpls)#exit | Exit the VPLS attachment-circuit mode |
(config-if)#exit | Exit the interface mode |
(config)# vpls fib-entry 100 peer 1.1.1.1 2500 xe1 1500 | Configure VPLS FIB entry for VPLS peer PE-1 |
(config)# vpls fib-entry 100 peer 3.3.3.3 3500 xe1 4500 | Configure VPLS FIB entry for VPLS peer PE-3 |
(config)#router ospf 100 | Configure the routing process and specify the routing process ID(100) |
(config-router)#ospf router-id 2.2.2.2 | Configure OSPF router id same as loopback ip address |
(config-router)#transport-address ipv4 2.2.2.2 | Configure transport address as loopback address |
(config-router)# targeted-peer ipv4 1.1.1.1 | Configure the targeted peer |
(config-router-targeted-peer)#exit | Exit targeted peer mode |
(config-router)#network 20.20.1.0/24 area 0 | Define the interface address on which the OSPF runs and associate an area ID(0) with the interface address |
(config-router)#network 2.2.2.2/32 area 0 | Define the interface address on which the OSPF runs and associate an area ID(0) with the interface address |
(config-router)#exit | Exit the router mode |
(config)#exit | Exit the configure mode |
#configure terminal | Enter the Configure mode |
(config)#mpls ftn-entry tunnel-id 11 1.1.1.1/32 301 30.30.1.2 xe1 primary | Configure the MPLS FTN entry for the creation of a static LSP to PE-1 |
(config)# mpls ftn-entry tunnel-id 22 2.2.2.2/32 302 30.30.1.2 xe1 primary | Configure the MPLS FTN entry for the creation of a static LSP to PE-2 |
(config)#mpls ilm-entry 103 pop | Configure the MPLS ILM entry for the creation of a static LSP to PE-1 |
(config)#mpls ilm-entry 203 pop | Configure the MPLS ILM entry for the creation of a static LSP to PE-2 |
(config)#mpls vpls v1 100 | Configure the VPLS v1 with ID 100 on PE-3 |
(config-vpls)#vpls-peer 1.1.1.1 tunnel-id 11 manual | Configure the PE-1 as a manual VPLS peer using static LSP tunnel ID 11. |
(config-vpls)#vpls-peer 2.2.2.2 tunnel-id 22 manual | Configure the PE-2 as a manual VPLS peer using static LSP tunnel ID 22. |
(config-vpls)#exit | Exit the Configure VPLS mode |
(config)#interface lo | Enter the interface mode |
(config-if)#ip address 3.3.3.3/32 secondary | Configure the IP address for the loopback interface |
(config-if)#exit | Exit the interface mode |
(config)#interface xe1 | Enter the interface mode |
(config-if)#ip address 30.30.1.1/24 | Configure the IP address for the interface |
(config-if)#label-switching | Configure the label switching |
(config-if)#exit | Exit the interface mode |
(config)#service-template st1 | Template configuration |
(config-svc)#exit | Exit the service template mode |
(config)#interface xe2 | Enter the interface mode |
(config-if)#switchport | Switch to Layer-2 mode |
(config-if)#mpls-vpls v1 service-template st1 | Bind the VPLS to the Access Interface |
(config-if-vpls)#exit | Exit the VPLS attachment-circuit mode |
(config-if)#exit | Exit the interface mode. |
(config)#vpls fib-entry 100 peer 1.1.1.1 4000 xe1 3000 | Configure the VPLS FIB entry for VPLS peer PE-1. |
(config)#vpls fib-entry 100 peer 2.2.2.2 4500 xe1 3500 | Configure the VPLS FIB entry for VPLS peer PE-2. |
(config)#router ospf 100 | Configure the routing process and specify the routing process ID(100). |
config-router)#ospf router-id 3.3.3.3 | Configure the OSPF router id same as loopback ip address |
(config-router)#transport-address ipv4 3.3.3.3 | Configure the transport address as loopback address |
(config-router)# targeted-peer ipv4 1.1.1.1 | Configure the targeted peer |
(config-router-targeted-peer)#exit | Exit targeted peer mode |
(config-router)#network 30.30.1.0/24 area 0 | Define the interface address on which the OSPF runs and associate an area ID(0) with the interface address |
(config-router)#network 3.3.3.3/32 area 0 | Define the interface address on which the OSPF runs and associate an area ID(0) with the interface address |
(config-router)#exit | Exit the router mode |
#configure terminal | Enter the configure mode |
(config)#no vpls fib-entry 100 peer 1.1.1.1 | Remove the VPLS FIB for VPLS peer PE-1 |
(config)#no vpls fib-entry 100 peer 3.3.3.3 | Remove the VPLS FIB for VPLS peer PE-3 |
(config)#exit | Exit the configure mode |