#configure terminal | Enter configure mode. |
(config)#interface lo | Enter interface mode. |
(config-if)#ip address 1.1.1.1/32 secondary | Configure IP address for the loopback interface. |
(config-if)#exit | Exit interface mode. |
(config)#interface eth1 | Specify the Interface (eth1) to be configured. |
(config-if)#ip address 10.10.1.1/24 | Configure IP address for the interface. |
(config-if)#no shutdown | Administratively brining up the interface. |
(config-if)#exit | Exit interface mode. |
(config)#router ospf 100 | Configure the routing process and specify the routing process ID(100). |
(config-router)#network 10.1.1.0/24 area 0 (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 router mode. |
(config)#router ldp | Enter router mode for LDP. |
(config-router)#targeted-peer ipv4 2.2.2.2 | Configuring targeted LDP sessions to PE-2 |
(config-router-targeted-peer)#exi | Exit config-router-targeted-peer mode |
(config-router)#targeted-peer ipv4 3.3.3.3 | Enter targeted-peer-mode and PE-3 |
(config-router-targeted-peer)#exit | Exit config-router-targeted-peer mode |
(config-router)#exit | Exit router configuration mode. |
(config)#interface eth1 | Enter interface mode. |
(config-if)#label-switching | Enable label switching capability on the interface. |
(config-if)#enable-ldp ipv4 | Enabling LDP on the interface. |
(config-if)#exit | Exit interface mode. |
(config)#mpls vpls VPLS1 100 | Configuring VPLS instance with name and VPLS ID. |
(config-vpls)#signaling ldp | Enabling LDP signaling for the VPLS instance. |
(config-vpls-sig)#vpls-peer 2.2.2.2 (config-vpls-sig)#vpls-peer 3.3.3.3 | Configuring VPLS mesh peers. |
(config-vpls-sig)#exit-signaling | Exit from VPLS signaling mode. |
(config-vpls)#exit | Exit from VPLS Mode. |
(config)#service-template st1 | Template configuration |
(config-svc)# exit | Exit service template mode |
(config)#interface eth2 | Specify the attachment circuit interface. |
(config-if)#switchport | Configuring the attachment circuit interface as Layer-2. |
(config-if)mpls-vpls VPLS1 service-template st1 | Associating the VPLS Instance to the attachment circuit interface. |
(config-if-vpls)#exit | Exit VPLS attachment-circuit mode |
(config-if)exit | Exit interface mode. |
(config)#exit | Exit configure mode. |
#copy running-config startup-config | Save the configuration. |
#configure terminal | Enter configure mode. |
(config)#interface lo | Enter interface mode. |
(config-if)#ip address 9.9.9.9/32 secondary | Configure IP address for the loopback interface. |
(config-if)#exit | Exit interface mode. |
(config)#interface eth1 | Specify the interface to be configured. |
(config-if)#ip address 10.10.1.2/24 | Configure IP address for the interface. |
(config-if)#exit | Exit interface mode. |
(config)#interface eth2 | Enter interface mode. |
(config-if)#ip address 20.20.1.2/24 | Configure IP address for the interface. |
(config-if)#exit | Exit interface mode. |
(config)#interface eth3 | Enter interface mode. |
(config-if)#ip address 30.30.1.2/24 | Configure IP address for the interface. |
(config-if)#exit | Exit interface mode. |
(config)#router ospf 100 | Configure the routing process and specify the routing process ID(100). |
(config-router)#network 10.1.1.0/24 area 0 (config-router)#network 20.20.1.0/24 area 0 (config-router)#network 30.30.1.0/24 area 0 (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 router mode. |
(config)#router ldp | Enter router mode for LDP. |
(config-router)#exit | Exit router mode. |
(config)#interface eth1 | Enter interface mode. |
(config-if)#label-switching | Enable label switching capability on the interface. |
(config-if)#enable-ldp ipv4 | Enabling LDP on the interface. |
(congig-if)#exit | Exit interface configuration mode. |
(config)#interface eth2 | Specify the interface to be configured. |
(config-if)#label-switching | Enable label switching capability on the interface. |
(config-if)#enable-ldp ipv4 | Enabling LDP on the interface. |
(congig-if)#exit | Exit interface mode. |
(config)#interface eth3 | Enter interface mode. |
(config-if)#label-switching | Enable label switching capability on the interface. |
(config-if)#enable-ldp ipv4 | Enabling LDP on the interface. |
(congig-if)#exit | Exit interface mode. |
(config)#exit | Exit configure mode. |
#copy running-config startup-config | Save the configuration. |
#configure terminal | Enter configure mode. |
(config)#interface lo | Enter interface mode. |
(config-if)#ip address 2.2.2.2/32 secondary | Configure IP address for the loopback interface. |
(config-if)#exit | Exit interface mode. |
(config)#interface eth1 | Specify the Interface (eth1) to be configured. |
(config-if)#ip address 20.20.1.1/24 | Configure IP address for the interface. |
(config-if)#no shutdown | Administratively brining up the interface. |
(config-if)#exit | Exit interface mode. |
(config)#router ospf 100 | Configure the routing process and specify the routing process ID(100). |
(config-router)#network 20.20.1.0/24 area 0 (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 router mode. |
(config)#router ldp | Enter router mode for LDP. |
(config-router)#targeted-peer ipv4 1.1.1.1 | Configuring targeted LDP sessions to PE-2. |
(config-router-targeted-peer)#exit | Exit targeted-peer-mode |
(config-router)#targeted-peer ipv4 3.3.3.3 | Configuring targeted LDP sessions to PE-3 |
(config-router-targeted-peer)#exit | Exit targeted-peer-mode |
(config-router)#exit | Exit router configuration mode. |
(config)#interface eth1 | Enter interface mode. |
(config-if)#label-switching | Enable label switching capability on the interface. |
(config-if)#enable-ldp ipv4 | Enabling LDP on the interface. |
(config-if)#exit | Exit interface mode. |
(config)#mpls vpls VPLS1 100 | Configuring VPLS instance with name and VPLS ID. |
(config-vpls)#signaling ldp | Enabling LDP signaling for the VPLS instance. |
(config-vpls-sig)#vpls-peer 1.1.1.1 (config-vpls-sig)#vpls-peer 3.3.3.3 | Configuring VPLS mesh peers. |
(config-vpls-sig)#exit-signaling | Exit from VPLS signaling mode. |
(config-vpls)#exit | Exit from VPLS Mode. |
(config)#service-template st1 | Template configuration. |
(config-svc)# exit | Exit service template mode. |
(config)#interface eth2 | Specify the attachment circuit interface. |
(config-if)#switchport | Configuring the attachment circuit interface as Layer-2. |
(config-if)mpls-vpls VPLS1 service-template st1 | Associating the VPLS Instance to the attachment circuit interface. |
(config-if-vpls)#exit | Exit VPLS attachment-circuit mode |
(config-if)exit | Exit interface mode. |
(config)#exit | Exit configure mode. |
#copy running-config startup-config | Save the configuration. |
#configure terminal | Enter configure mode. |
(config)#interface lo | Enter interface mode. |
(config-if)#ip address 3.3.3.3/32 secondary | Configure IP address for the loopback interface. |
(config-if)#exit | Exit interface mode. |
(config)#interface eth1 | Specify the Interface (eth1) to be configured. |
(config-if)#ip address 30.30.1.1/24 | Configure IP address for the interface. |
(config-if)#no shutdown | Administratively brining up the interface. |
(config-if)#exit | Exit interface mode. |
(config)#router ospf 100 | Configure the routing process and specify the routing process ID(100). |
(config-router)#network 30.30.1.0/24 area 0 (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 router mode. |
(config)#router ldp | Enter router mode for LDP. |
(config-router)#targeted-peer ipv4 1.1.1.1 | Configuring targeted LDP sessions to PE-2 |
(config-router-targeted-peer)#exit | Exit targeted-peer-mode |
(config-router)#targeted-peer ipv4 2.2.2.2 | Configuring targeted LDP sessions to PE-3 |
(config-router-targeted-peer)#exit | Exit targeted-peer-mode |
(config-router)#exit | Exit router configuration mode. |
(config)#interface eth1 | Enter interface mode. |
(config-if)#label-switching | Enable label switching capability on the interface. |
(config-if)#enable-ldp ipv4 | Enabling LDP on the interface. |
(config-if)#exit | Exit interface mode. |
(config)#mpls vpls VPLS1 100 | Configuring VPLS instance with name and VPLS ID. |
(config-vpls)#signaling ldp | Enabling LDP signaling for the VPLS instance. |
(config-vpls-sig)#vpls-peer 1.1.1.1 (config-vpls-sig)#vpls-peer 2.2.2.2 | Configuring VPLS mesh peers. |
(config-vpls-sig)#exit-signaling | Exit from VPLS signaling mode. |
(config-vpls)#exit | Exit from VPLS Mode. |
(config)#service-template st1 | Template configuration. |
(config-svc)# exit | Exit service template mode. |
(config)#interface eth2 | Specify the attachment circuit interface. |
(config-if)#switchport | Configuring the attachment circuit interface as Layer-2. |
(config-if)mpls-vpls VPLS1 service-template st1 | Associating the VPLS Instance to the attachment circuit interface. |
(config-if-vpls)#exit | Exit VPLS attachment-circuit mode |
(config-if)exit | Exit interface mode. |
(config)#exit | Exit configure mode. |
#copy running-config startup-config | Save the configuration. |
#configure terminal | Enter configure mode. |
(config)#interface lo | Enter interface mode. |
(config-if)#ip address 1.1.1.1/32 secondary | Configure IP address for the loopback interface. |
(config-if)#exit | Exit interface mode. |
(config)#interface eth1 | Specify the Interface (eth1) to be configured. |
(config-if)#ip address 10.10.1.1/24 | Configure IP address for the interface. |
(config-if)#no shutdown | Administratively brining up the interface. |
(config-if)#exit | Exit interface mode. |
(config)#router ospf 100 | Configure the routing process and specify the routing process ID(100). |
(config-router)#network 10.1.1.0/24 area 0 (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 router mode. |
(config)#router ldp | Enter router mode for LDP. |
(config-router)#targeted-peer ipv4 2.2.2.2 | Configuring targeted LDP sessions to PE-2 |
(config-router-targeted-peer)#exit | Exit targeted peer mode |
(config-router-targeted-peer)#targeted-peer ipv4 3.3.3.3 | Configuring targeted LDP sessions to PE-3 |
(config-router-targeted-peer)#exit | Exit targeted peer mode |
(config-router)#exit | Exit router configuration mode |
(config)#interface eth1 | Enter interface mode |
(config-if)#label-switching | Enable label switching capability on the interface. |
(config-if)#enable-ldp ipv4 | Enabling LDP on the interface. |
(config-if)#exit | Exit interface mode. |
(config)#mpls vpls VPLS1 100 | Configuring VPLS instance with name and VPLS ID. |
(config-vpls)#signaling ldp | Enabling LDP signaling for the VPLS instance. |
(config-vpls-sig)#vpls-type vlan | Configuring VPLS type as VLAN mode. |
(config-vpls-sig)#vpls-peer 2.2.2.2 (config-vpls-sig)#vpls-peer 3.3.3.3 | Configuring VPLS mesh peers. |
(config-vpls-sig)#exit-signaling | Exit from VPLS signaling mode. |
(config-vpls)#exit | Exit from VPLS Mode. |
(config)#mpls vpls v4 28 | Enter VPLS config mode |
(config-vpls)#signaling ldp | Define Signaling as LDP |
(config-vpls-sig)#vpls-type vlan | Type VLAN configuration for VPLS |
(config-vpls-sig)#vpls-peer 2.2.2.2 | Configure VPLS Peers |
config-vpls-sig)#vpls-peer 3.3.3.3 | Configure VPLS Peers |
(config-vpls-sig)# exit-signaling | Exit Signaling LDP mode |
(config-vpls)#exit | Exit VPLS mode |
(config)#service-template st1 | Template configuration. |
(config-svc)# match outer-vlan 10 | Match criteria under template configuration |
(config-svc)# exit | Exit service template mode. |
(config)#interface eth2 | Specify the attachment circuit interface. |
(config-if)#switchport | Configuring the attachment circuit interface as Layer-2. |
(config-if)mpls-vpls VPLS1 service-template st1 | Associating the VPLS Instance to the attachment circuit interface to match service template st1. |
(config-if-vpls)#exit | Exit VPLS attachment-circuit mode |
(config-if)exit | Exit interface mode. |
(config)#exit | Exit configure mode. |
#copy running-config startup-config | Save the configuration. |
(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 | Specify the attachment circuit interface. |
(config-if)#switchport | Configuring the attachment circuit interface as Layer-2. |
(config-if)mpls-vpls v4 service-template template4 | Associating the VPLS Instance to the attachment circuit interface. |
(config-if-vpls)#exit | Exit VPLS attachment-circuit mode |
#configure terminal | Enter configure mode. |
(config)#interface lo | Enter interface mode. |
(config-if)#ip address 9.9.9.9/32 secondary | Configure IP address for the loopback interface. |
(config-if)#exit | Exit interface mode. |
(config)#interface eth1 | Specify the interface to be configured. |
(config-if)#ip address 10.10.1.2/24 | Configure IP address for the interface. |
(config-if)#exit | Exit interface mode. |
(config)#interface eth2 | Enter interface mode. |
(config-if)#ip address 20.20.1.2/24 | Configure IP address for the interface. |
(config-if)#exit | Exit interface mode. |
(config)#interface eth3 | Enter interface mode. |
(config-if)#ip address 30.30.1.2/24 | Configure IP address for the interface. |
(config-if)#exit | Exit interface mode. |
(config)#router ospf 100 | Configure the routing process and specify the routing process ID(100). |
(config-router)#network 10.1.1.0/24 area 0 (config-router)#network 20.20.1.0/24 area 0 (config-router)#network 30.30.1.0/24 area 0 (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 router mode. |
(config)#router ldp | Enter router mode for LDP. |
(config-router)#exit | Exit router mode. |
(config)#interface eth1 | Enter interface mode. |
(config-if)#label-switching | Enable label switching capability on the interface. |
(config-if)#enable-ldp ipv4 | Enabling LDP on the interface. |
(congig-if)#exit | Exit interface configuration mode. |
(config)#interface eth2 | Specify the interface to be configured. |
(config-if)#label-switching | Enable label switching capability on the interface. |
(config-if)#enable-ldp ipv4 | Enabling LDP on the interface. |
(congig-if)#exit | Exit interface mode. |
(config)#interface eth3 | Enter interface mode. |
(config-if)#label-switching | Enable label switching capability on the interface. |
(config-if)#enable-ldp ipv4 | Enabling LDP on the interface. |
(congig-if)#exit | Exit interface mode. |
(config)#exit | Exit configure mode. |
#copy running-config startup-config | Save the configuration. |
#configure terminal | Enter configure mode. |
(config)#interface lo | Enter interface mode. |
(config-if)#ip address 2.2.2.2/32 secondary | Configure IP address for the loopback interface. |
(config-if)#exit | Exit interface mode. |
(config)#interface eth1 | Specify the Interface (eth1) to be configured. |
(config-if)#ip address 20.20.1.1/24 | Configure IP address for the interface. |
(config-if)#no shutdown | Administratively brining up the interface. |
(config-if)#exit | Exit interface mode. |
(config)#router ospf 100 | Configure the routing process and specify the routing process ID(100). |
(config-router)#network 20.20.1.0/24 area 0 (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 router mode. |
(config)#router ldp | Enter router mode for LDP. |
(config-router)#targeted-peer ipv4 1.1.1.1 | Configuring targeted LDP sessions to PE-2 |
(config-router-targeted-peer)#exit | Exit targeted peer mode |
(config-router-targeted-peer)#targeted-peer ipv4 3.3.3.3 | Configuring targeted LDP sessions to PE-3 |
(config-router-targeted-peer)#exit | Exit targeted peer mode |
(config-router-targeted-peer)#exit-targeted-peer-mode | Exit targeted peer mode. |
(config-router)#exit | Exit router configuration mode. |
(config)#interface eth1 | Enter interface mode. |
(config-if)#label-switching | Enable label switching capability on the interface. |
(config-if)#enable-ldp ipv4 | Enabling LDP on the interface. |
(config-if)#exit | Exit interface mode. |
(config)#mpls vpls VPLS1 100 | Configuring VPLS instance with name and VPLS ID. |
(config-vpls)#signaling ldp | Enabling LDP signaling for the VPLS instance. |
(config-vpls-sig)#vpls-type vlan | Configuring VPLS type as VLAN mode. |
(config-vpls-sig)#vpls-peer 1.1.1.1 (config-vpls-sig)#vpls-peer 3.3.3.3 | Configuring VPLS mesh peers. |
(config-vpls-sig)#exit-signaling | Exit from VPLS signaling mode. |
(config-vpls)#exit | Exit from VPLS Mode. |
(config)#mpls vpls v4 28 | Enter VPLS config mode |
(config-vpls)#signaling ldp | Define Signaling as LDP |
(config-vpls-sig)#vpls-type vlan | Type VLAN configuration for VPLS |
(config-vpls-sig)#vpls-peer 1.1.1.1 | Configure VPLS Peers |
config-vpls-sig)#vpls-peer 3.3.33 | Configure VPLS Peers |
(config-vpls-sig)# exit-signaling | Exit Signaling LDP mode |
(config-vpls)#exit | Exit VPLS mode |
(config)#service-template st1 | Template configuration. |
(config-svc)#match outer-vlan 10 | Match criteria under template configuration |
(config-svc)#exit | Exit service template 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 | Specify the attachment circuit interface. |
(config-if)#switchport | Configuring the attachment circuit interface as Layer-2. |
(config-if)mpls-vpls VPLS1 service-template st1 | Associating the VPLS Instance to the attachment circuit interface to match service template st1. |
(config-if)mpls-vpls v4 service-template template4 | Associating the VPLS Instance to the attachment circuit interface. |
(config-if-vpls)#exit | Exit VPLS attachment-circuit mode |
(config-if)exit | Exit interface mode. |
(config)#exit | Exit configure mode. |
#copy running-config startup-config | Save the configuration. |
#configure terminal | Enter configure mode. |
(config)#interface lo | Enter interface mode. |
(config-if)#ip address 3.3.3.3/32 secondary | Configure IP address for the loopback interface. |
(config-if)#exit | Exit interface mode. |
(config)#interface eth1 | Specify the Interface (eth1) to be configured. |
(config-if)#ip address 30.30.1.1/24 | Configure IP address for the interface. |
(config-if)#no shutdown | Administratively brining up the interface. |
(config-if)#exit | Exit interface mode. |
(config)#router ospf 100 | Configure the routing process and specify the routing process ID(100). |
(config-router)#network 30.30.1.0/24 area 0 (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 router mode. |
(config)#router ldp | Enter router mode for LDP. |
(config-router)#targeted-peer ipv4 1.1.1.1 | Configuring targeted LDP sessions to PE-2 |
(config-router-targeted-peer)#exit | Exit targeted peer mode |
(config-router-targeted-peer)#targeted-peer ipv4 2.2.2.2 | Configuring targeted LDP sessions to PE-3 |
config-router-targeted-peer)#exit | Exit targeted peer mode |
(config-router)#exit | Exit router configuration mode. |
(config)#interface eth1 | Enter interface mode. |
(config-if)#label-switching | Enable label switching capability on the interface. |
(config-if)#enable-ldp ipv4 | Enabling LDP on the interface. |
(config-if)#exit | Exit interface mode. |
(config)#mpls vpls VPLS1 100 | Configuring VPLS instance with name and VPLS ID. |
(config-vpls)#signaling ldp | Enabling LDP signaling for the VPLS instance. |
(config-vpls-sig)#vpls-type vlan | Configuring VPLS type as VLAN mode. |
(config-vpls-sig)#vpls-peer 1.1.1.1 (config-vpls-sig)#vpls-peer 2.2.2.2 | Configuring VPLS mesh peers. |
(config-vpls-sig)#exit-signaling | Exit from VPLS signaling mode. |
(config-vpls)#exit | Exit from VPLS Mode. |
(config)#mpls vpls v4 28 | Enter VPLS config mode |
(config-vpls)#signaling ldp | Define Signaling as LDP |
(config-vpls-sig)#vpls-type vlan | Type VLAN configuration for VPLS |
(config-vpls-sig)#vpls-peer 1.1.1.1 | Configure VPLS Peers |
(config-vpls-sig)#vpls-peer 2.2.2.2 | Configure VPLS Peers |
(config-vpls-sig)#exit-signaling | Exit from VPLS signaling mode. |
(config-vpls)#exit | Exit from VPLS Mode. |
(config)#service-template st1 | Template configuration. |
(config-svc)# match outer-vlan 20 | Match criteria under template configuration |
(config-svc)# exit | Exit service template 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 | Specify the attachment circuit interface. |
(config-if)#switchport | Configuring the attachment circuit interface as Layer-2. |
(config-if)mpls-vpls VPLS1 service-template st1 | Associating the VPLS Instance to the attachment circuit interface to match service template st1. |
(config-if-vpls)#exit | Exit VPLS attachment-circuit mode |
(config-if)exit | Exit interface mode. |
(config)#exit | Exit configure mode. |
#copy running-config startup-config | Save the configuration. |