#configure terminal | Enter Configure mode. |
(config)#interface lo | Enter interface mode |
(config -if)#ip address 111.111.111.111/32 secondary | Configure IP address for the loopback interface |
(config-if)#commit | Commit the configuration |
(config-if)#exit | Exit interface mode |
(config)#router ldp | Enter router mode for LDP |
(config-router)#router-id 111.111.111.111 | Configure Router-id |
(config-router)#targeted-peer ipv4 222.222.222.222 | Configuring targeted LDP sessions to PE2 |
(config-router)#explicit-null | Configure explicit-null. |
(config-router)#entropy-label-capability | Enable entropy capability in ldp |
(config-router-targeted-peer)#exit-targeted-peer-mode | Exit from targeted-peer mode |
(config-router)#transport-address ipv4 111.111.111.111 | Configure the transport address to be used for a TCP session over which LDP will run on an IPv4 interface |
(config-router)#commit | Commit the configuration |
(config-router)#exit | Exit from router mode |
(config)#interface xe13 | Enter interface mode |
(config-if)#speed 1g | Configure interface speed to 1g |
(config-if)#ip address 10.0.1.10/24 | Configure IP address on interface |
(config-if)#ip ospf cost 10 | Assign ospf cost to the interface |
(config-if)#label-switching | Enable label switching capability on the interface |
(config-if)#enable-ldp ipv4 | Enabling LDP on the interface |
(config-if)#commit | Commit the configuration |
(config-if)#exit | Exit interface mode |
(config)#interface po1000 | Enter the Interface mode for po1000 |
(config-if)#exit | Exit interface mode |
(config)#interface po1000.1000 | Enter interface mode for po1000.1000 |
(config-if)#encapsulation dot1q 1000 | Configure encapsulation under a subinterface |
(config-if)#ip address 10.0.0.10/24 | Configure IP address on interface |
(config-if)#ip ospf cost 10 | Assign ospf cost to the interface |
(config-if)#label-switching | Enable label switching capability on the interface |
(config-if)#enable-ldp ipv4 | Enabling LDP on the interface |
(config-if)#commit | Commit the configuration |
(config-if)#exit | Exit interface mode |
(config)#interface xe4 | Enter interface mode |
(config-if)#speed 1g | Configure interface speed to 1g |
(config-if)#ip address 16.0.0.10/24 | Configure IP address on interface |
(config-if)#ip ospf cost 10 | Assign ospf cost to the interface |
(config-if)#label-switching | Enable label switching capability on the interface |
(config-if)#enable-ldp ipv4 | Enabling LDP on the interface |
(config-if)#commit | Commit the configuration |
(config-if)#exit | Exit interface mode |
(config)#interface xe4.1001 | Enter interface mode |
(config-if)#encapsulation dot1q 1001 | Configure encapsulation under a subinterface |
(config-if)#ip address 16.0.1.10/24 | Configure IP address on interface |
(config-if)#ip ospf cost 10 | Assign ospf cost to the interface |
(config-if)#label-switching | Enable label switching capability on the interface |
(config-if)#enable-ldp ipv4 | Enabling LDP on the interface |
(config-if)#commit | Commit the configuration |
(config-if)#exit | Exit interface mode |
(config-if)#interface xe12 | Enter interface mode |
(config-if)#speed 1g | Configure interface speed to 1g |
(config-if)#channel-group 1000 mode active | Moving interface to Dynamic LAG |
(config-if)#exit | Exit interface mode |
(config)#ip vrf l3vpnvrf300 | IP VRF config with name l3vpnvrf300 |
(config-vrf)#rd 300:1 | Route-distinguisher value |
(config-vrf)#route-target both 300:1 | Route target value |
(config-vrf)#exit | Exit to config mode |
(config)#router ospf 100 | Configure the routing process and specify the Process ID, (100). The Process ID should be a unique positive integer to identifying the routing process. |
(config-router)#ospf router-id 111.111.111.111 | Configure ospf Router-id |
(config-router)#network 10.0.0.0/24 area 0 | Define the interface on which OSPF runs and associate the area ID (0) with the interface. |
(config-router)#network 10.0.1.0/24 area 0 | Define the interface on which OSPF runs and associate the area ID (0) with the interface. |
(config-router)#network 16.0.0.0/24 area 0 | Define the interface on which OSPF runs and associate the area ID (0) with the interface. |
(config-router)#network 16.0.1.0/24 area 0 | Define the interface on which OSPF runs and associate the area ID (0) with the interface. |
(config-router)#network 111.111.111.111/32 area 0 | Define the interface on which OSPF runs and associate the area ID (0) with the interface. |
(config-router)#commit | Commit the transaction. |
(config-router)#exit | Exit from router mode |
(config)#router bgp 100 | Configure router bgp in AS 100 |
(config-router)#bgp router-id 111.111.111.111 | Configure BGP router ID |
(config-router)#neighbor 222.222.222.222 remote-as 100 | Configure neighbor in remote-as 100 |
(config-router)#neighbor 222.222.222.222 update-source lo | Configure neighbor with update-source loopback |
(config-router)#address-family vpnv4 unicast | Enter VPNv4 Address family mode |
(config-router-af)#neighbor 222.222.222.222 activate | mode Activate VPNv4 neighbor |
(config-router-af)#exit-address-family | Exit from Address Family configuration |
(config-router)#address-family l2vpn vpls | Enter vpls Address family mode |
(config-router-af)#neighbor 222.222.222.222 activate | mode Activate vpls neighbor |
(config-router-af)#exit-address-family | Exit from Address Family configuration |
(config-router)#address-family vrf l3vpnvrf300 | Configure VRF address family |
(config-router-af)#redistribute connected | Redistribute connected addresses |
(config-router-af)#exit-address-family | Exit from Address Family configuration |
(config-router)#exit | Exit from router mode |
(config)#mpls vplsldp100 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 222.222.222.222 | Configuring VPLS mesh peers |
(config-vpls-sig)#exit-signaling | Exit from VPLS signaling mode |
(config-vpls)#exit-vpls | Exit from VPLS mode |
(config)#mpls l2-circuit VPWS400 400 222.222.222.222 | Configuring VPWS instance with name and VPWS ID |
(config)#mpls vpls vplsbgp200 200 | Configuring VPLS instance with name and VPLS ID |
(config-vpls)#signaling bgp | Enabling LDP signaling for the VPLS instance |
(config-vpls-sig)#ve-id 200 | Configure VE ID, which is mandatory for BGP VPLS, |
otherwise, signaling does not take place. VE ID should be | |
unique per VPLS instance | |
(config-vpls-sig)#exit-signaling | Exit from VPLS signaling mode |
(config-vpls)#exit-vpls | Exit from VPLS mode |
(config-if)#interface xe8.100 switchport | Enter sub interface mode |
(config-if)#encapsulation dot1q 100 | Configure encapsulation under a subinterface |
(config-if)#access-if-vpls | Access VPLS under sub interface |
(config-acc-if-vpls)#mpls-vpls vplsldp100 | Associating the VPLS Instance to the attachment circuit interface. |
(config-acc-if-vpls)#exit | Exit from access mode |
(config-if)#interface xe8.400 switchport | Enter sub interface mode |
(config-if)#encapsulation dot1q 400 | Configure encapsulation under a subinterface |
(config-if)#access-if-vpws | Access VPWS under sub interface |
(config-acc-if-vpws)#mpls-vpws VPWS400 | Associating the VPWS Instance to the attachment circuit interface. |
(config-acc-if-vpws)#exit | Exit from access mode |
(config-if)#interface xe8.200 switchport | Enter sub interface mode |
(config-if)#split-horizon group access1 | Configure split-horizon group on sub-interface |
(config-if)#split-horizon group access1 | Configure split-horizon group on sub-interface |
(config-if)#encapsulation dot1q 200 | Configure encapsulation under a subinterface |
(config-if)#access-if-vpls | Access VPLS under sub interface |
(config-acc-if-vpls)#mpls-vpls vplsbgp200 | Associating the VPLS Instance to the attachment circuit interface. |
(config-acc-if-vpls)#exit | Exit from access mode |
(config-if)#interface xe8.300 | Enter sub interface mode |
(config-if)#encapsulation dot1q 300 | Configure encapsulation under a subinterface |
(config-if)#ip vrf forwarding l3vpnvrf300 | Attaching xe8.300 to as part of l3vpnvrf300 |
(config-if)#ip address 110.110.110.1/24 | Configure the IP address of the interface. |
(config-if)#exit | Exit interface mode |
(config)#commit | Commit the configuration |
(config)#end | Return to privilege mode |
#configure terminal | Enter Configure mode. |
(config)#mpls ilm-ecmp | Enable ilm ecmp |
(config)#interface lo | Enter interface mode |
(config -if)#ip address 11.11.11.11/32 secondary | Configure IP address for the loopback interface |
(config-if)#commit | Commit the configuration |
(config-if)#exit | Exit interface mode |
(config)#router ldp | Enter router mode for LDP |
(config-router)#router-id 11.11.11.11 | Configure Router-id |
(config-router)#transport-address ipv4 11.11.11.11 | Configure the transport address to be used for a TCP session over which LDP will run on an IPv4 interface |
(config-router)#commit | Commit the configuration |
(config-router)#exit | Exit from router mode |
(config)#interface ge13 | Enter interface mode |
(config-if)#ip address 10.0.1.20/24 | Configure IP address on interface |
(config-if)#ip ospf cost 10 | Assign ospf cost to the interface |
(config-if)#label-switching | Enable label switching capability on the interface |
(config-if)#enable-ldp ipv4 | Enabling LDP on the interface |
(config-if)#commit | Commit the configuration |
(config-if)#exit | Exit interface mode |
(config)#interface po1000 | Enter the Interface mode for po1000 |
(config-if)#exit | Exit interface mode |
(config)#interface po1000.1000 | Enter interface mode for po1000.1000 |
(config-if)#encapsulation dot1q 1000 | Configure encapsulation under a subinterface |
(config-if)#ip address 10.0.0.20/24 | Configure IP address on interface |
(config-if)#ip ospf cost 10 | Assign ospf cost to the interface |
(config-if)#label-switching | Enable label switching capability on the interface |
(config-if)#enable-ldp ipv4 | Enabling LDP on the interface |
(config-if)#commit | Commit the configuration |
(config-if)#exit | Exit interface mode |
(config)#interface po2000 | Enter the Interface mode for po2000 |
(config-if)#exit | Exit interface mode |
(config)#interface po2000.100 | Enter interface mode for po2000.100 |
(config-if)#encapsulation dot1q 100 | Configure encapsulation under a subinterface |
(config-if)#ip address 11.0.0.10/24 | Configure IP address on interface |
(config-if)#ip ospf cost 10 | Assign ospf cost to the interface |
(config-if)#label-switching | Enable label switching capability on the interface |
(config-if)#enable-ldp ipv4 | Enabling LDP on the interface |
(config-if)#commit | Commit the configuration |
(config-if)#exit | Exit interface mode |
(config)#interface ge4 | Enter interface mode |
(config-if)#ip address 9.0.0.10/24 | Configure IP address on interface |
(config-if)#ip ospf cost 20 | Assign ospf cost to the interface |
(config-if)#label-switching | Enable label switching capability on the interface |
(config-if)#enable-ldp ipv4 | Enabling LDP on the interface |
(config-if)#commit | Commit the configuration |
(config-if)#exit | Exit interface mode |
(config)#interface ge12 | Enter interface mode |
(config-if)#channel-group 1000 mode active | Moving interface to Dynamic LAG |
(config)#interface xe23 | Enter interface mode |
(config-if)#channel-group 2000 mode active | Moving interface to Dynamic LAG |
(config-if)#speed 1g | Configure speed 1g |
(config)#interface xe24 | Enter interface mode |
(config-if)#channel-group 2000 mode active | Moving interface to Dynamic LAG |
(config-if)#speed 1g | Configure speed 1g |
(config-if)#exit | Exit interface mode |
(config)#commit | Commit the transaction. |
(config)#router ospf 100 | Configure the routing process and specify the Process ID, (100). The Process ID should be a unique positive integer to identifying the routing process. |
(config-router)#ospf router-id 11.11.11.11 | Configure ospf Router-id |
(config-router)#network 10.0.0.0/24 area 0 | Define the interface on which OSPF runs and associate the area ID (0) with the interface. |
(config-router)#network 10.0.1.0/24 area 0 | Define the interface on which OSPF runs and associate the area ID (0) with the interface. |
(config-router)#network 11.0.0.0/24 area 0 | Define the interface on which OSPF runs and associate the area ID (0) with the interface. |
(config-router)#network 9.0.0.0/24 area 0 | Define the interface on which OSPF runs and associate the area ID (0) with the interface. |
(config-router)#network 11.11.11.11/32 area 0 | Define the interface on which OSPF runs and associate the area ID (0) with the interface. |
(config-router)#exit | Exit from router mode |
(config)#commit | Commit the transaction. |
#configure terminal | Enter Configure mode. |
(config)#interface lo | Enter interface mode |
(config -if)#ip address 22.22.22.22/32 secondary | Configure IP address for the loopback interface |
(config-if)#commit | Commit the configuration |
(config-if)#exit | Exit interface mode |
(config)#router ldp | Enter router mode for LDP |
(config-router)#router-id 22.22.22.22 | Configure Router-id |
(config-router)#transport-address ipv4 22.22.22.22 | Configure the transport address to be used for a TCP session over which LDP will run on an IPv4 interface |
(config-router)#commit | Commit the configuration |
(config-router)#exit | Exit from router mode |
(config)#interface ge6.300 | Enter interface mode |
(config-if)#encapsulation dot1q 300 | Configure encapsulation under a subinterface |
(config-if)#ip address 15.0.0.10/24 | Configure IP address on interface |
(config-if)#ip ospf cost 10 | Assign ospf cost to the interface |
(config-if)#label-switching | Enable label switching capability on the interface |
(config-if)#enable-ldp ipv4 | Enabling LDP on the interface |
(config-if)#commit | Commit the configuration |
(config-if)#exit | Exit interface mode |
(config)#interface ge6.1001 | Enter interface mode |
(config-if)#encapsulation dot1q 1001 | Configure encapsulation under a subinterface |
(config-if)#ip address 15.0.1.10/24 | Configure IP address on interface |
(config-if)#ip ospf cost 10 | Assign ospf cost to the interface |
(config-if)#label-switching | Enable label switching capability on the interface |
(config-if)#enable-ldp ipv4 | Enabling LDP on the interface |
(config-if)#commit | Commit the configuration |
(config-if)#exit | Exit interface mode |
(config)#interface po2000 | Enter the Interface mode for po2000 |
(config-if)#exit | Exit interface mode |
(config)#interface po2000.100 | Enter interface mode for po2000.100 |
(config-if)#encapsulation dot1q 100 | Configure encapsulation under a subinterface |
(config-if)#ip address 11.0.0.20/24 | Configure IP address on interface |
(config-if)#ip ospf cost 10 | Assign ospf cost to the interface |
(config-if)#label-switching | Enable label switching capability on the interface |
(config-if)#enable-ldp ipv4 | Enabling LDP on the interface |
(config-if)#commit | Commit the configuration |
(config-if)#exit | Exit interface mode |
(config)#interface ge5 | Enter interface mode |
(config-if)#channel-group 2000 mode active | Moving interface to Dynamic LAG |
(config)#interface ge11 | Enter interface mode |
(config-if)#channel-group 2000 mode active | Moving interface to Dynamic LAG |
(config-if)#exit | Exit interface mode |
(config)#commit | Commit the transaction. |
(config)#router ospf 100 | Configure the routing process and specify the Process ID, (100). The Process ID should be a unique positive integer to identifying the routing process. |
(config-router)#ospf router-id 22.22.22.22 | Configure ospf Router-id |
(config-router)#network 15.0.0.0/24 area 0 | Define the interface on which OSPF runs and associate the area ID (0) with the interface. |
(config-router)#network 15.0.1.0/24 area 0 | Define the interface on which OSPF runs and associate the area ID (0) with the interface. |
(config-router)#network 11.0.0.0/24 area 0 | Define the interface on which OSPF runs and associate the area ID (0) with the interface. |
(config-router)#network 22.22.22.22/32 area 0 | Define the interface on which OSPF runs and associate the area ID (0) with the interface. |
(config-router)#exit | Exit from router mode |
(config)#commit | Commit the transaction. |
#configure terminal | Enter Configure mode. |
(config)#interface lo | Enter interface mode |
(config -if)#ip address 33.33.33.33/32 secondary | Configure IP address for the loopback interface |
(config-if)#commit | Commit the configuration |
(config-if)#exit | Exit interface mode |
(config)#router ldp | Enter router mode for LDP |
(config-router)#router-id 33.33.33.33 | Configure Router-id |
(config-router)#transport-address ipv4 33.33.33.33 | Configure the transport address to be used for a TCP session over which LDP will run on an IPv4 interface |
(config-router)#commit | Commit the configuration |
(config-router)#exit | Exit from router mode |
(config)#interface ge5 | Enter interface mode |
(config-if)#ip address 16.0.0.20/24 | Configure IP address on interface |
(config-if)#ip ospf cost 10 | Assign ospf cost to the interface |
(config-if)#label-switching | Enable label switching capability on the interface |
(config-if)#enable-ldp ipv4 | Enabling LDP on the interface |
(config-if)#commit | Commit the configuration |
(config-if)#exit | Exit interface mode |
(config)#interface ge5.1001 | Enter interface mode |
(config-if)#encapsulation dot1q 1001 | Configure encapsulation under a subinterface |
(config-if)#ip address 16.0.1.20/24 | Configure IP address on interface |
(config-if)#ip ospf cost 10 | Assign ospf cost to the interface |
(config-if)#label-switching | Enable label switching capability on the interface |
(config-if)#enable-ldp ipv4 | Enabling LDP on the interface |
(config-if)#commit | Commit the configuration |
(config-if)#exit | Exit interface mode |
(config)#interface sa4000 | Enter the Interface mode for sa4000 |
(config-if)#exit | Exit interface mode |
(config)#interface sa4000.200 | Enter interface mode for psa4000.200 |
(config-if)#encapsulation dot1q 200 | Configure encapsulation under a subinterface |
(config-if)#ip address 17.0.0.20/24 | Configure IP address on interface |
(config-if)#ip ospf cost 10 | Assign ospf cost to the interface |
(config-if)#label-switching | Enable label switching capability on the interface |
(config-if)#enable-ldp ipv4 | Enabling LDP on the interface |
(config-if)#commit | Commit the configuration |
(config-if)#exit | Exit interface mode |
(config)#interface xe12 | Enter interface mode |
(config-if)# static-channel-group 4000 | Moving interface to Static LAG |
(config)#interface xe13 | Enter interface mode |
(config-if)# static-channel-group 4000 | Moving interface to Static LAG |
(config-if)#exit | Exit interface mode |
(config)#commit | Commit the transaction. |
(config)#router ospf 100 | Configure the routing process and specify the Process ID, (100). The Process ID should be a unique positive integer to identifying the routing process. |
(config-router)#ospf router-id 33.33.33.33 | Configure ospf Router-id |
(config-router)#network 16.0.0.0/24 area 0 | Define the interface on which OSPF runs and associate the area ID (0) with the interface. |
(config-router)#network 16.0.1.0/24 area 0 | Define the interface on which OSPF runs and associate the area ID (0) with the interface. |
(config-router)#network 17.0.0.0/24 area 0 | Define the interface on which OSPF runs and associate the area ID (0) with the interface. |
(config-router)#network 33.33.33.33/32 area 0 | Define the interface on which OSPF runs and associate the area ID (0) with the interface. |
(config-router)#exit | Exit from router mode |
(config)#commit | Commit the transaction. |
#configure terminal | Enter Configure mode. |
(config)#interface lo | Enter interface mode |
(config -if)#ip address 44.44.44.44/32 secondary | Configure IP address for the loopback interface |
(config-if)#commit | Commit the configuration |
(config-if)#exit | Exit interface mode |
(config)#router ldp | Enter router mode for LDP |
(config-router)#router-id 44.44.44.44 | Configure Router-id |
(config-router)#transport-address ipv4 44.44.44.44 | Configure the transport address to be used for a TCP session over which LDP will run on an IPv4 interface |
(config-router)#commit | Commit the configuration |
(config-router)#exit | Exit from router mode |
(config)#interface sa3000 | Enter the Interface mode for sa3000 |
(config-if)#exit | Exit interface mode |
(config)#interface sa3000 | Enter interface mode |
(config-if)#ip address 18.0.0.10/24 | Configure IP address on interface |
(config-if)#ip ospf cost 10 | Assign ospf cost to the interface |
(config-if)#label-switching | Enable label switching capability on the interface |
(config-if)#enable-ldp ipv4 | Enabling LDP on the interface |
(config-if)#commit | Commit the configuration |
(config-if)#exit | Exit interface mode |
(config)#interface sa3000.1001 | Enter interface mode |
(config-if)#encapsulation dot1q 1001 | Configure encapsulation under a subinterface |
(config-if)#ip address 18.0.1.10/24 | Configure IP address on interface |
(config-if)#ip ospf cost 10 | Assign ospf cost to the interface |
(config-if)#label-switching | Enable label switching capability on the interface |
(config-if)#enable-ldp ipv4 | Enabling LDP on the interface |
(config-if)#commit | Commit the configuration |
(config-if)#exit | Exit interface mode |
(config)#interface sa4000 | Enter the Interface mode for sa4000 |
(config-if)#exit | Exit interface mode |
(config)#interface sa4000.200 | Enter interface mode for psa4000.200 |
(config-if)#encapsulation dot1q 200 | Configure encapsulation under a subinterface |
(config-if)#ip address 17.0.0.10/24 | Configure IP address on interface |
(config-if)#ip ospf cost 10 | Assign ospf cost to the interface |
(config-if)#label-switching | Enable label switching capability on the interface |
(config-if)#enable-ldp ipv4 | Enabling LDP on the interface |
(config-if)#commit | Commit the configuration |
(config-if)#exit | Exit interface mode |
(config)#interface xe6 | Enter interface mode |
config-if)#speed 1g | Configure speed 1g |
(config-if)#static-channel-group 3000 | Moving interface to Static LAG |
(config)#interface xe8 | Enter interface mode |
config-if)#speed 1g | Configure speed 1g |
(config-if)#static-channel-group 3000 | Moving interface to Static LAG |
(config)#interface xe12 | Enter interface mode |
(config-if)# static-channel-group 4000 | Moving interface to Static LAG |
(config)#interface xe13 | Enter interface mode |
(config-if)# static-channel-group 4000 | Moving interface to Static LAG |
(config-if)#exit | Exit interface mode |
(config)#commit | Commit the transaction. |
(config)#router ospf 100 | Configure the routing process and specify the Process ID, (100). The Process ID should be a unique positive integer to identifying the routing process. |
(config-router)#ospf router-id 44.44.44.44 | Configure ospf Router-id |
(config-router)#network 18.0.0.0/24 area 0 | Define the interface on which OSPF runs and associate the area ID (0) with the interface. |
(config-router)#network 18.0.1.0/24 area 0 | Define the interface on which OSPF runs and associate the area ID (0) with the interface. |
(config-router)#network 17.0.0.0/24 area 0 | Define the interface on which OSPF runs and associate the area ID (0) with the interface. |
(config-router)#network 44.44.44.44/32 area 0 | Define the interface on which OSPF runs and associate the area ID (0) with the interface. |
(config-router)#exit | Exit from router mode |
(config)#commit | Commit the transaction. |
#configure terminal | Enter Configure mode. |
(config)#interface lo | Enter interface mode |
(config -if)#ip address 222.222.222.222/32 secondary | Configure IP address for the loopback interface |
(config-if)#commit | Commit the configuration |
(config-if)#exit | Exit interface mode |
(config)#router ldp | Enter router mode for LDP |
(config-router)#router-id 222.222.222.222 | Configure Router-id |
(config-router)#targeted-peer ipv4 111.111.111.111 | Configuring targeted LDP sessions to PE2 |
(config-router)#explicit-null | Configure explicit-null. |
(config-router)#entropy-label-capability | Enable entropy capability in ldp |
(config-router-targeted-peer)#exit-targeted-peer-mode | Exit from targeted-peer mode |
(config-router)#transport-address ipv4 222.222.222.222 | Configure the transport address to be used for a TCP session over which LDP will run on an IPv4 interface |
(config-router)#commit | Commit the configuration |
(config-router)#exit | Exit from router mode |
(config)#interface xe14 | Enter interface mode |
(config-if)#speed 1g | Configure interface speed to 1g |
(config)#interface xe14.1001 | Enter interface mode |
(config-if)#encapsulation dot1q 1001 | Configure encapsulation under a subinterface |
(config-if)#ip address 15.0.1.20/24 | Configure IP address on interface |
(config-if)#ip ospf cost 10 | Assign ospf cost to the interface |
(config-if)#label-switching | Enable label switching capability on the interface |
(config-if)#enable-ldp ipv4 | Enabling LDP on the interface |
(config-if)#commit | Commit the configuration |
(config-if)#exit | Exit interface mode |
(config)#interface xe14.1002 | Enter interface mode |
(config-if)#encapsulation dot1q 300 | Configure encapsulation under a subinterface |
(config-if)#ip address 15.0.0.20/24 | Configure IP address on interface |
(config-if)#ip ospf cost 10 | Assign ospf cost to the interface |
(config-if)#label-switching | Enable label switching capability on the interface |
(config-if)#enable-ldp ipv4 | Enabling LDP on the interface |
(config-if)#commit | Commit the configuration |
(config-if)#exit | Exit interface mode |
(config)#interface sa3000 | Enter interface mode |
(config-if)#ip address 18.0.0.20/24 | Configure IP address on interface |
(config-if)#ip ospf cost 10 | Assign ospf cost to the interface |
(config-if)#label-switching | Enable label switching capability on the interface |
(config-if)#enable-ldp ipv4 | Enabling LDP on the interface |
(config-if)#commit | Commit the configuration |
(config-if)#exit | Exit interface mode |
(config)#interface sa3000.1001 | Enter interface mode |
(config-if)#encapsulation dot1q 1001 | Configure encapsulation under a subinterface |
(config-if)#ip address 18.0.1.20/24 | Configure IP address on interface |
(config-if)#ip ospf cost 10 | Assign ospf cost to the interface |
(config-if)#label-switching | Enable label switching capability on the interface |
(config-if)#enable-ldp ipv4 | Enabling LDP on the interface |
(config-if)#commit | Commit the configuration |
(config-if)#exit | Exit interface mode |
(config-if)#interface ge5 | Enter interface mode |
(config-if)# static-channel-group 3000 | Moving interface to static LAG |
(config-if)#interface ge7 | Enter interface mode |
(config-if)# static-channel-group 3000 | Moving interface to static LAG |
(config-if)#exit | Exit interface mode |
(config)#interface ge9 | Enter interface mode |
(config-if)#ip address 9.0.0.20/24 | Configure IP address on interface |
(config-if)#ip ospf cost 20 | Assign ospf cost to the interface |
(config-if)#label-switching | Enable label switching capability on the interface |
(config-if)#enable-ldp ipv4 | Enabling LDP on the interface |
(config-if)#commit | Commit the configuration |
(config-if)#exit | Exit interface mode |
(config)#ip vrf l3vpnvrf300 | IP VRF config with name l3vpnvrf300 |
(config-vrf)#rd 300:1 | Route-distinguisher value |
(config-vrf)#route-target both 300:1 | Route target value |
(config-vrf)#exit | Exit to config mode |
(config)#router ospf 100 | Configure the routing process and specify the Process ID, (100). The Process ID should be a unique positive integer to identifying the routing process. |
(config-router)#ospf router-id 222.222.222.222 | Configure ospf Router-id |
(config-router)#network 9.0.0.0/24 area 0 | Define the interface on which OSPF runs and associate the area ID (0) with the interface. |
(config-router)#network 15.0.0.0/24 area 0 | Define the interface on which OSPF runs and associate the area ID (0) with the interface. |
(config-router)#network 15.0.1.0/24 area 0 | Define the interface on which OSPF runs and associate the area ID (0) with the interface. |
(config-router)#network 18.0.0.0/24 area 0 | Define the interface on which OSPF runs and associate the area ID (0) with the interface. |
(config-router)#network 18.0.1.0/24 area 0 | Define the interface on which OSPF runs and associate the area ID (0) with the interface. |
(config-router)#network 222.222.222.222/32 area 0 | Define the interface on which OSPF runs and associate the area ID (0) with the interface. |
(config-router)#commit | Commit the transaction. |
(config-router)#exit | Exit from router mode |
(config)#router bgp 100 | Configure router bgp in AS 100 |
(config-router)#bgp router-id 222.222.222.222 | Configure BGP router ID |
(config-router)#neighbor 111.111.111.111 remote-as 100 | Configure neighbor in remote-as 100 |
(config-router)#neighbor 111.111.111.111 update-source lo | Configure neighbor with update-source loopback |
(config-router)#address-family vpnv4 unicast | Enter VPNv4 Address family mode |
(config-router-af)#neighbor 111.111.111.111 activate | mode Activate VPNv4 neighbor |
(config-router-af)#exit-address-family | Exit from Address Family configuration |
(config-router)#address-family l2vpn vpls | Enter vpls Address family mode |
(config-router-af)#neighbor 111.111.111.111 activate | mode Activate vpls neighbor |
(config-router-af)#exit-address-family | Exit from Address Family configuration |
(config-router)#address-family vrf l3vpnvrf300 | Configure VRF address family |
(config-router-af)#redistribute connected | Redistribute connected addresses |
(config-router-af)#exit-address-family | Exit from Address Family configuration |
(config-router)#exit | Exit from router mode |
(config)#mpls vplsldp100 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 111.111.111.111 | Configuring VPLS mesh peers |
(config-vpls-sig)#exit-signaling | Exit from VPLS signaling mode |
(config-vpls)#exit-vpls | Exit from VPLS mode |
(config)#mpls l2-circuit VPWS400 400 111.111.111.111 | Configuring VPWS instance with name and VPWS ID |
(config)#mpls vpls vplsbgp200 200 | Configuring VPLS instance with name and VPLS ID |
(config-vpls)#signaling bgp | Enabling LDP signaling for the VPLS instance |
(config-vpls-sig)#ve-id 201 | Configure VE ID, which is mandatory for BGP VPLS,otherwise, signaling does not take place. VE ID should be unique per VPLS instance |
(config-vpls-sig)#exit-signaling | Exit from VPLS signaling mode |
(config-vpls)#exit-vpls | Exit from VPLS mode |
(config-if)#interface xe12.100 switchport | Enter sub interface mode |
(config-if)#split-horizon group access1 | Configure split-horizon group on sub-interface |
(config-if)#encapsulation dot1q 100 | Configure encapsulation under a subinterface |
(config-if)#access-if-vpls | Access VPLS under sub interface |
(config-acc-if-vpls)#mpls-vpls vplsldp100 | Associating the VPLS Instance to the attachment circuit interface. |
(config-acc-if-vpls)#exit | Exit from access mode |
(config-if)#interface xe12.400 switchport | Enter sub interface mode |
(config-if)#encapsulation dot1q 400 | Configure encapsulation under a subinterface |
(config-if)#access-if-vpws | Access VPWS under sub interface |
(config-acc-if-vpws)#mpls-vpws VPWS400 | Associating the VPWS Instance to the attachment circuit interface. |
(config-acc-if-vpws)#exit | Exit from access mode |
(config-if)#interface xe12.200 switchport | Enter sub interface mode |
(config-if)#split-horizon group access1 | Configure split-horizon group on sub-interface |
(config-if)#encapsulation dot1q 200 | Configure encapsulation under a subinterface |
(config-if)#access-if-vpls | Access VPLS under sub interface |
(config-acc-if-vpls)#mpls-vpls vplsbgp200 | Associating the VPLS Instance to the attachment circuit interface. |
(config-acc-if-vpls)#exit | Exit from access mode |
(config-if)#interface xe12.300 | Enter sub interface mode |
(config-if)#encapsulation dot1q 300 | Configure encapsulation under a subinterface |
(config-if)#ip vrf forwarding l3vpnvrf300 | Attaching xe12.300 to as part of l3vpnvrf300 |
(config-if)#ip address 210.210.210.1/24 | Configure the IP address of the interface. |
(config-if)#exit | Exit interface mode |
(config)#commit | Commit the configuration |
(config)#end | Return to privilege mode |