#configure terminal | Enter configuration mode. |
(config)#interface lo | Enter interface mode for the loopback interface. |
(config-if)#ip address 21.21.21.21/32 secondary | Configure IP address on loopback interface. |
(config-if)#exit | Exit interface mode |
(config)#interface eth2 | Enter interface mode for eth2. |
(config-if)#ip address 10.10.23.21/24 | Configure IP address on the interface. |
(config-if)#label-switching | Enable label switching on the interface. |
(config-if)#exit | Exit interface mode |
(config)#mpls vpls v1 25 | Enter VPLS configuration mode |
(config-vpls)#vpls-peer 23.23.23.23 tunnel-id 1 manual | Configure VPLS peer |
(config-vpls)#exit | Exit from VPLS configuration mode |
(config)#mpls vpls v2 26 | Enter VPLS configuration mode |
(config-vpls)#vpls-peer 23.23.23.23 tunnel-id 1 manual | Configure VPLS peer |
(config-vpls)#exit | Exit from VPLS configuration mode |
(config)#mpls vpls v3 27 | Enter VPLS configuration mode |
(config-vpls)#vpls-peer 23.23.23.23 tunnel-id 1 manual | Configure VPLS peer |
(config-vpls)#end | Exit from VPLS configuration and configuration mode |
#configure terminal | Enter configuration mode. |
(config)#mpls ftn-entry tunnel-id 1 23.23.23.23/32 100 10.10.23.22 eth2 primary | Configure Static LSP FTN entry |
(config)#mpls ilm-entry 250 pop | Configure ILM entry |
(config)#exit | Exit |
#configure terminal | Enter configuration mode. |
(config)#interface lo | Enter interface mode for the loopback interface. |
(config-if)#ip address 22.22.22.22/32 secondary | Configure IP address on loopback interface. |
(config-if)#exit | Exit interface mode |
(config)#interface eth1 | Enter interface mode for eth1. |
(config-if)#ip address 10.10.23.22/24 | Configure IP address on the interface. |
(config-if)#label-switching | Enable label switching on the interface. |
(config-if)#exit | Exit interface mode |
(config)#interface eth2 | Enter interface mode for eth2. |
(config-if)#ip address 10.10.21.22/24 | Configure IP address on the interface. |
(config-if)#label-switching | Enable label switching on the interface. |
(config-if)#exit | Exit interface mode |
#configure terminal | Enter configure mode. |
(config)#mpls ilm-entry 100 swap 200 eth2 10.10.21.23 23.23.23.23/32 | Configure Static LSP ILM entry |
(config)#mpls ilm-entry 150 swap 250 eth1 10.10.23.21 21.21.21.21/32 | Configure ILM entry |
(config)#exit | Exit |
#configure terminal | Enter configuration mode. |
(config)#interface lo | Enter interface mode for the loopback interface. |
(config-if)#ip address 23.23.23.23/32 secondary | Configure IP address on loopback interface. |
(config-if)#exit | Exit interface mode |
(config)#interface eth1 | Enter interface mode for eth1. |
(config-if)#ip address 10.10.21.23/24 | Configure IP address on the interface. |
(config-if)#label-switching | Enable label switching on the interface. |
(config-if)#exit | Exit interface mode |
(config)#mpls vpls v1 25 | Enter VPLS configuration mode |
(config-vpls)#vpls-peer 21.21.21.21 tunnel-id 1 manual | Configure VPLS peer |
(config-vpls)#exit | Exit from VPLS configuration mode |
(config)#mpls vpls v2 26 | Enter VPLS configuration mode |
(config-vpls)#vpls-peer 21.21.21.21 tunnel-id 1 manual | Configure VPLS peer |
(config-vpls)#exit | Exit from VPLS configuration mode |
(config)#mpls vpls v3 27 | Enter VPLS configuration mode |
(config-vpls)#vpls-peer 21.21.21.21 tunnel-id 1 manual | Configure VPLS peer |
(config-vpls)#exit | Exit from VPLS configuration and configuration mode |
(config)#mpls vpls v4 28 | Enter VPLS configuration mode |
(config-vpls)#vpls-peer 21.21.21.21 tunnel-id 1 manual | Configure VPLS peer |
(config-vpls)#exit | Exit from VPLS configuration and configuration mode |
(config)#mpls ftn-entry tunnel-id 1 21.21.21.21/32 150 10.10.21.22 eth1 | Configure Static LSP FTN entry |
(config)#mpls ilm-entry 200 pop | Configure ILM entry |
(config)#exit | Exit |
#configure terminal | Enter configuration mode. |
(config)#service-template template1 | Template configuration |
(config-svc)#match double-tag outer-vlan 2024 inner-vlan 2023 | Match criteria under template configuration |
(config-svc)#rewrite ingress pop outgoing-tpid dot1.q | Action to be performed for the match. |
(config-svc)#exit | Exit template configuration mode |
(config)#service-template template2 | Template configuration |
(config-svc)#match double-tag outer-vlan 2030 inner-vlan 2024 | Match criteria under template configuration |
(config-svc)#rewrite ingress translate 2026 outgoing-tpid dot1.q | Action to be performed for the match |
(config-svc)#exit | Exit template configuration mode |
(config)#service-template template3 | Template configuration |
(config-svc)#rewrite ingress push 300 | Action to be performed for the default match . |
(config-svc)#exit | Exit template configuration mode |
(config)#service-template template4 | Template configuration |
(config-svc)# match outer-vlan 700 | Allow VLAN 700 traffic on this VC |
(config-svc)# match double-tag outer-vlan 1200 inner-vlan 3200 | Allow double tag match with s+c tags |
(config-svc)# match untagged | Allow untagged traffic |
(config-svc)# rewrite ingress push 300 | Push Action performed for service template |
(config-svc)#exit | Exit configure SVC mode |
(config)#interface eth1 | Enter the Interface mode for ethernet1. |
(config-if)#switchport | Configure interface as L2 interface |
(config-if)#mpls-vpls v1 service-template template1 | Configure template configuration. |
(config_if_vpls)#no ac-admin-status | Making Ac-admin-status Up |
(config_if_vpls)#exit | Exit Interface VPLS mode and return to Interface mode. |
(config-if)#mpls-vpls v2 service-template template2 | Configure template configuration. |
(config_if_vpls)#no ac-admin-status | Making Ac-admin-status Up |
(config_if_vpls)#exit | Exit Interface VPLS mode and return to Interface mode. |
(config-if)#mpls-vpls v3 service-template template3 | Configure template configuration. |
(config_if_vpls)#no ac-admin-status | Making Ac-admin-status Up |
(config_if_vpls)#exit | Exit Interface VPLS mode and return to Interface mode. |
(config-if)#mpls-vpls v4 service-template template4 | Configure template configuration. |
(config_if_vpls)#no ac-admin-status | Making Ac-admin-status Up |
(config_if_vpls)#exit | Exit Interface mode and return to Configure mode. |
(config_if)#exit | Exit interface mode. |
(config)#vpls fib-entry 25 peer 23.23.23.23 1001 eth2 2001 | Configure access port |
(config)#vpls fib-entry 26 peer 23.23.23.23 1002 eth2 2002 | Configure access port |
(config)#vpls fib-entry 27 peer 23.23.23.23 1003 eth2 2003 | Configure access port |
(config)#vpls fib-entry 28 peer 23.23.23.23 1004 eth2 2004 | Configure access port |
#configure terminal | Configure mode |
(config)#service-template template1 | Template configuration |
(config-svc)#match double-tag outer-vlan 2024 inner-vlan 2023 | Match criteria under template configuration |
(config-svc)#rewrite ingress pop outgoing-tpid dot1.q | Action to be performed for the match. |
(config-svc)#exit | Exit template configuration mode |
(config)#service-template template2 | Template configuration |
(config-svc)#match double-tag outer-vlan 2030 inner-vlan 2024 | Match criteria under template configuration |
(config-svc)#rewrite ingress translate 2026 outgoing-tpid dot1.q | Action to be performed for the match |
(config-svc)#exit | Exit template configuration mode |
(config)#service-template template3 | Template configuration |
(config-svc)#rewrite ingress push 300 | Action to be performed for the default match . |
(config-svc)#exit | Exit template configuration mode |
(config)#service-template template4 | Template configuration |
(config-svc)# match outer-vlan 700 | Allow VLAN 700 traffic on this VC |
(config-svc)# match double-tag outer-vlan 1200 inner-vlan 3200 | Allow double tag match with s+c tags |
(config-svc)# match untagged | Allow untagged traffic |
(config-svc)# rewrite ingress push 300 | Push Action performed for service template |
(config-svc)#exit | Exit configure SVC mode |
(config)#interface eth2 | Enter the Interface mode for ethernet2. |
(config-if)#switchport | Configure interface as L2 interface |
(config-if)#mpls-vpls v1 service-template template1 | Configure template configuration. |
(config_if_vpls)#no ac-admin-status | Making Ac-admin-status Up |
(config_if_vpls)#exit | Exit Interface VPLS mode and return to Interface mode. |
(config-if)#mpls-vpls v2 service-template template2 | Configure template configuration. |
(config_if_vpls)#no ac-admin-status | Making Ac-admin-status Up |
(config_if_vpls)#exit | Exit Interface VPLS mode and return to Interface mode. |
(config-if)#mpls-vpls v3 service-template template3 | Configure template configuration. |
(config_if_vpls)#no ac-admin-status | Making Ac-admin-status Up |
(config_if_vpls)#exit | Exit Interface VPLS mode and return to Interface mode. |
(config-if)#mpls-vpls v4 service-template template4 | Configure template configuration. |
(config_if_vpls)#no ac-admin-status | Making Ac-admin-status Up |
(config_if_vpls)#exit | Exit Interface VPLS mode and return to Interface mode. |
(config-if)#exit | Exit Interface mode and return to Configure mode. |
(config)#vpls fib-entry 25 peer 21.21.21.21 2001 eth1 1001 | Configure access port |
(config)#vpls fib-entry 26 peer 21.21.21.21 2002 eth1 1002 | Configure access port |
(config)#vpls fib-entry 27 peer 21.21.21.21 2003 eth1 1003 | Configure access port |
(config)#vpls fib-entry 28 peer 21.21.21.21 2004 eth1 1004 | Configure access port |