#configure terminal | Enter Configure mode. |
(config)# ip vrf vrf100 | Create a new VRF named vrf100 |
(config-vrf)#rd 100:1 | Assign the route distinguisher (RD) value as 100:1 |
(config-vrf)#route-target both 100:1 | Import routes between route target (RT) ext-communities 100 and 1 |
(config-vrf)#exit | Exit VRF mode |
(config)#interface lo | Enter loopback interface mode |
(config-if)#ip address 18.18.18.18/32 sec-ondary | Assign IP address to Loopback interface |
(config-if)#exit | Exit Interface mode |
(config)#interface xe8 | Enter Interface mode |
(config-if)# ip address 10.1.1.18/24 | Assign IP address to interface |
(config-if)#enable-ldp ipv4 | Enable LDP on the physical interface |
(config-if)#label-switching | Enable label switching on the interface |
(config-if)#exit | Exit Interface mode |
(config)#interface xe11 | Enter Interface mode |
(config-if)# ip vrf forwarding vrf100 | Bind the interface connected to the CE1 router with VRF 100 |
(config-if)# ip address 100.1.1.1/24 | Assign IP address to interface |
(config-if)#exit | Exit interface mode |
(config)#router ldp | Enter the Router LDP mode |
(config-router)#router-id 18.18.18.18 | Configure router id as loopback address |
(config-router)#transport-address ipv4 18.18.18.18 | Configure ldp transport addess as loopback address |
(config-router)#exit | Exit from the router ldp mode |
(config)# router ospf 1 | Enter Router OSPF mode |
(config-router)# ospf router-id 18.18.18.18 | Configure OSPF router-id |
(config-router)# network 10.1.1.0/24 area 0.0.0.0 | Define the network on which OSPF runs and associate area id. |
(config-router)# network 18.18.18.18/32 area 0.0.0.0 | Define the network on which OSPF runs and associate area id. |
(config-router)# commit | Commit the configurations |
(config-router)# exit | Exit from router OSPF mode |
(config)# router bgp 100 | Enter BGP router mode |
(config-router)# bgp router-id 18.18.18.18 | Configure BGP router-id |
(config-router)# neighbor 8.8.8.8 remote-as 100 | Configure PE2 as an iBGP4+ neighbor |
(config-router)# neighbor 8.8.8.8 up-date-source lo | Update the source as loopback for iBGP peering with the remote PE2 router |
(config-router)# address-family vpnv4 unicast | Enter address-family vpnv4 mode |
(config-router-af)# neighbor 8.8.8.8 activate | Activate the PE2 neighbor in the vpnv4 address family |
(config-router-af)# neighbor 8.8.8.8 next-hop-self | Activate the neighbor as next hop self |
(config-router-af)#exit | Exit form address family |
(config-router)# address-family ipv4 vrf vrf100 | Enter the IPv4 address family for VRF 100 |
(config-router-af)# redistribute connected | Redistribute connected routes |
(config-router-af)# neighbor 100.1.1.2 re-mote-as 200 | Configure CE1 neighbor in the vrf address family |
(config-router-af)# neighbor 100.1.1.2 acti-vate | Activate the CE1 neighbor |
(config-router-af)#exit | Exit form address family |
(config-router)# commit | Commit the configurations |
#configure terminal | Enter Configure mode. |
(config)#interface lo | Enter loopback interface mode |
(config-if)#ip address 3.3.3.3/32 secondary | Assign IP address to Loopback interface |
(config-if)#exit | Exit Interface mode |
(config)#router ldp | Enter the Router LDP mode |
(config-router)#router-id 3.3.3.3 | Configure router id as loopback address |
(config-router)#transport-address ipv4 3.3.3.3 | Configure ldp transport addess as loopback address |
(config-router)#exit | Exit from the router ldp mode |
(config)#interface xe14 | Enter Interface mode |
(config-if)# ip address 10.1.1.3/24 | Assign IP address to interface |
(config-if)#enable-ldp ipv4 | Enable LDP on the physical interface |
(config-if)#label-switching | Enable label switching on the interface |
(config-if)#exit | Exit Interface mode |
(config)#interface xe15 | Enter Interface mode |
(config-if)# ip address 11.1.1.3/24 | Assign IP address to interface |
(config-if)#enable-ldp ipv4 | Enable LDP on the physical interface |
(config-if)#label-switching | Enable label switching on the interface |
(config-if)#exit | Exit interface mode |
(config)# router ospf 1 | Enter Router OSPF mode |
(config-router)# ospf router-id 18.18.18.18 | Configure OSPF router-id |
(config-router)# network 10.1.1.0/24 area 0.0.0.0 | Define the network on which OSPF runs and associate area id. |
(config-router)# network 3.3.3.3/32 area 0.0.0.0 | Define the network on which OSPF runs and associate area id. |
(config-router)# network 11.1.1.0/24 area 0.0.0.0 | Define the network on which OSPF runs and associate area id. |
(config-router)# commit | Commit the configurations |
(config-router)# exit | Exit from router OSPF mode |
#configure terminal | Enter Configure mode. |
(config)#ip vrf vrf100 | Create a new VRF named vrf100 |
(config-vrf)#rd 101:1 | Assign the route distinguisher (RD) value as 101:1 |
(config-vrf)#route-target both 100:1 | Import routes between route target (RT) ext-communities 100 and 1 |
(config-vrf)#exit | Exit VRF mode |
(config)#router ldp | Enter the Router LDP mode |
(config-router)#router-id 8.8.8.8 | Configure router id as loopback address |
(config-router)#transport-address ipv4 8.8.8.8 | Configure ldp transport addess as loopback address |
(config-router)#exit | Exit from the router ldp mode |
(config)#interface lo | Enter loopback interface mode |
(config-if)#ip address 8.8.8.8/32 secondary | Assign IP address to Loopback interface |
(config-if)#exit | Exit Interface mode |
(config)#interface xe24 | Enter Interface mode |
(config-if)# ip address 11.1.1.8/24 | Assign IP address to interface |
(config-if)#enable-ldp ipv4 | Enable LDP on the physical interface |
(config-if)#label-switching | Enable label switching on the interface |
(config-if)#exit | Exit Interface mode |
(config)#interface xe25 | Enter Interface mode |
(config-if)# ip vrf forwarding vrf100 | Bind the interface connected to the CE1 router with VRF 100 |
(config-if)# ip address 101.1.1.1/24 | Assign IP address to interface |
(config-if)#exit | Exit interface mode |
(config)# router ospf 1 | Enter Router OSPF mode |
(config-router)# ospf router-id 8.8.8.8 | Configure OSPF router-id |
(config-router)# network 11.1.1.0/24 area 0.0.0.0 | Define the network on which OSPF runs and associate area id. |
(config-router)# network 8.8.8.8/32 area 0.0.0.0 | Define the network on which OSPF runs and associate area id. |
(config-router)#exit | Exit from router OSPF mode |
(config)# router bgp 100 | Enter BGP router mode |
(config-router)# bgp router-id 8.8.8.8 | Configure BGP router-id |
(config-router)# neighbor 18.18.18.18 re-mote-as 100 | Configure PE1 as an iBGP4+ neighbor |
(config-router)# neighbor 18.18.18.18 up-date-source lo | Update the source as loopback for iBGP peering with the remote PE1 router |
(config-router)# address-family vpnv4 unicast | Enter address-family vpnv4 mode |
(config-router-af)# neighbor 18.18.18.18 ac-tivate | Activate the PE1 neighbor in the vpnv4 address family |
(config-router-af)# neighbor 18.18.18.18 next-hop-self | Activate the neighbor as next hop self |
(config-router-af)#exit | Exit form address family |
(config-router)# address-family ipv4 vrf vrf100 | Enter the IPv4 address family for VRF 100 |
(config-router-af)# redistribute connected | Redistribute connected routes |
(config-router-af)# neighbor 101.1.1.2 re-mote-as 200 | Configure CE2 neighbor in the vrf address family |
(config-router-af)# neighbor 101.1.1.2 acti-vate | Activate the CE2 neighbor |
(config-router-af)#exit | Exit form address family |
(config-router)# commit | Commit the configurations |
#configure terminal | Enter Configure mode. |
(config)#interface lo | Enter loopback interface mode |
(config-if)#ip address 37.37.37.37/32 secondary | Assign IP address to Loopback interface |
(config-if)#exit | Exit Interface mode |
(config)#interface xe24 | Enter Interface mode |
(config-if)# ip address 100.1.1.2/24 | Assign IP address to interface |
(config-if)#exit | Exit Interface mode |
(config)#interface xe26 | Enter Interface mode |
(config-if)# ip address 200.1.1.1/24 | Assign IP address to interface |
(config-if)#exit | Exit interface mode |
(config)# router bgp 200 | Enter BGP router mode |
(config-router)# bgp router-id 37.37.37.37 | Configure BGP router-id |
(config-router)#neighbor 100.1.1.1 remote-as 100 | Configure PE1 as an eBGP4+ neighbor |
(config-router)# address-family ipv4 unicast | Enter address-family IPv4 unicast mode |
(config-router-af)# redistribute connected | Redistribute the connected route under address family IPv4 unicast |
(config-router-af)# neighbor 100.1.1.1 activate | Activate the neighbor in the IPv4 address family |
(config-router-af)#exit | Exit form address family |
(config-router)# commit | Commit the configurations |
#configure terminal | Enter Configure mode. |
(config)#interface lo | Enter loopback interface mode |
(config-if)#ip address 2.2.2.2/32 secondary | Assign IP address to Loopback interface |
(config-if)#exit | Exit Interface mode |
(config)#interface xe14 | Enter Interface mode |
(config-if)# ip address 101.1.1.2/24 | Assign IP address to interface |
(config-if)#exit | Exit Interface mode |
(config)#interface xe15 | Enter Interface mode |
(config-if)# ip address 201.1.1.1/24 | Assign IP address to interface |
(config-if)#exit | Exit interface mode |
(config)# router bgp 300 | Enter BGP router mode |
(config-router)# bgp router-id 2.2.2.2 | Configure BGP router-id |
(config-router)#neighbor 101.1.1.1 remote-as 100 | Configure PE2 as an eBGP4+ neighbor |
(config-router)# address-family ipv4 unicast | Enter address-family IPv4 unicast mode |
(config-router-af)# redistribute connected | Redistribute the connected route under address family IPv4 unicast |
(config-router-af)# neighbor 101.1.1.1 acti-vate | Activate the neighbor in the IPv4 address family |
(config-router-af)#exit | Exit form address family |
(config-router)# commit | Commit the configurations |
#configure terminal | Enter Configure mode. |
(config)# hardware-profile filter twamp-ipv4 enable | Enable hardware filter for ipv4 to configure TWAMP meas-urement configs |
(config)#commit | Commit the configuration |
(config)# twamp-light control | Enable TWAMP light controller on PE1 |
(config-twamp-light-con)# control-admin-state enable | Enable TWAMP Controller admin state |
(config)#interface lo | Enter Interface Loopback mode |
(config-if)# delay-measurement dynamic twamp reflector-ip 11.1.1.8 | Configure delay measurement on interface Loopback to re-flector PE2 |
(config-if)#commit | Commit the configurations |
(config-if)#end | Return to privilege mode |
#configure terminal | Enter Configure mode. |
(config)# hardware-profile filter twamp-ipv4 enable | Enable hardware filter for ipv4 to configure TWAMP meas-urement configs |
(config)#commit | Commit the configuration |
(config)# twamp-light reflector | Enable TWAMP light Reflector on PE2 |
(config-twamp-light-ref)# reflec-tor-admin-state enable | Enable the TWAMP reflector admin state |
(config-twamp-light-ref)# reflector-name pe2 reflector-ip ipv4 11.1.1.8 | Configure TWAMP reflector IP as PE2 interface IP |
(config-twamp-light-ref)#commit | Commit the configurations |
(config-if)#end | Return to privilege mode |