PE1#configure terminal | Enter configure mode. |
PE1(config)#tunnel-policy policy0 | Configure tunnel policy |
PE1(config-tnl-policy)#color 1 | Color to be used as 1 |
PE1(config-tnl-policy)#exit | Exit to config mode |
PE1(config)#ip vrf vrf1 | IP VRF config with name vrf1 |
PE1(config-vrf)#tunnel-select-policy policy0 | Tunnel-policy to be mapped as policy0 |
PE1(config-vrf)#rd 1:1 | Route-distinguisher value |
PE1(config-vrf)#route-target both 1:1 | Route target value |
PE1(config-vrf)#exit | Exit to config mode |
PE1(config)#interface lo | Enter interface mode. |
PE1(config-if)#ipv6 address cafe:1:2::11/128 | Configure IPv6 address of the loopback interface. |
PE1(config-if)# ip address 11.11.11.11/32 secondary | Configure IP address on the loopback interface as secondary |
PE1(config-if)# ipv6 address cafe:1:2::11/128 | Configure IPv6 address |
PE1(config-if)# ipv6 router ospf area 0.0.0.0 tag 1 instance-id 0 | Make the interface part of the router ospf area 0. |
PE1(config-if)#exit | Exit interface mode. |
PE1(config)#interface eth1 | Enter interface mode. |
PE1(config-if)#ipv6 address 1111::2/64 | Configure the IPv6 address of the interface. |
PE1(config-if)#ipv6 router ospf area 0.0.0.0 tag 1 instance-id 0 | Make the interface part of the router OSPF area 0. |
PE1(config)#interface eth2 | Enter interface mode. |
PE1(config-if)#ip vrf forwarding vrf1 | Attaching eth2 to as part of vrf1 |
PE1(config-if)#ip address 101.1.1.1/24 | Configure the IP address of the interface. |
PE1(config-if)#exit | Exit interface mode |
PE1(config)#router ipv6 ospf 1 | Set the routing process ID as 1 |
PE1(config-router-af)#segment-routing srv6 | Enable SRv6 under IPv6 address-family |
PE1(config-router-af-srv6)# srv6-locator Srs123 | Name to SRv6 locator |
PE1(config-router-af-srv6)#exit-srv6 | Exit SRv6 mode |
PE1(config-router)#exit | Exit router mode. |
PE1(config)# router bgp 1000 | Configure router BGP in AS 1000 |
PE1(config-router)# neighbor cafe:1:2::22 remote-as 1000 | Configure neighbor in remote-as 1000 |
PE1(config-router)#neghbor cafe:1:2::22 update-source lo | Configure neighbor with update-source lo |
PE1(config-router)# address-family vpnv4 unicast | Enter VPNv4 Address family mode |
PE1(config-router-af)# segment-routing srv6 | Enter SR6 mode |
PE1(config-router-vpnv4-srv6)# srv6-locator srs123 | Configure locator name under srv6 mode |
PE1(config-router-vpnv4-srv6)# exit-srv6 | Exit SRv6 mode |
PE1(config-router-af)#neighbor cafe:1:2::22 activate | Activate VPNv4 neighbor |
PE1(config-router-af)# neighbor cafe:1:2::22 capability extended-nexthop-encode | Configure extended nexthop encode capability for vpnv4 neighbor |
PE1(config-router-af)#exit-address-family | Exit from Address Family configuration mode |
PE1(config-router)#address-family ipv4 vrf vrf1 | Enter VRF address family |
PE1(config-router-af)#redistribute connected | Redistribute connected routes |
PE1(config-router-af)#segment-routing srv6 | Enter SRv6 mode |
PE1(config-router-vrfv4-srv6)#sid-alloc per-vrf | Allocate sid per VRF |
PE1(config-router-vrfv4-srv6)#exit-srv6 | Exit SRv6 mode |
PE1(config-router-vrfv4-srv6)#exit-address-family | Exit from Address Family configuration mode |
PE1(config-router-af)#exit | Exit from router mode |
PE1(config)#segment-routing | Configuring segment-routing |
PE1(config-sr)#srv6 | Segment-Routing over IPv6 Data-Plane |
PE1(config-srv6)#locators | Configure SRv6 locators |
PE1(config-srv6-loc)#locator srs123 | Locator name as Srs123 |
PE1(config-srv6-loc-conf)# prefix cafe:1:2:a11::/64 | IPv6 prefix for locator |
PE1(config-srv6-loc-conf)#exit-locator | Exit from locator mode |
PE1(config-srv6-loc)#exit-locators | Exit from SRv6 locators configuration mode |
PE1(config-srv6)#exit-srv6 | Exit from SRv6 configuration mode |
PE1(config-sr)#traffic-engineering | Segment Routing traffic engineering |
Segment Routing traffic engineering | Configure segment list as 1 |
PE1(config-sr-sl)#index 1 segment-type-2 cafe:1:2:a22:2001:: | Configure segment type 2 with SRv6 SIDs |
PE1(config-sr-sl)#exit-sr-sl | Exit segment list mode |
PE1(config-sr-te)#policy 1 | Policy configuration with name 1 |
PE1(config-sr-pol)# color 1 end-point cafe:1:2::22 | SR-policy color and end-point |
PE1(config-sr-pol-cp)#candidate-path 1 | SR policy candidate path |
PE1(config-sr-pol-cp)#preference 100 | Candidate Path preference |
PE1(config-sr-pol-cp)# explicit segment-list l | Dynamic candidate path as OSPF |
PE1(config-sr-pol)#exit-sr-pol | Exit from SR policy configuration mode |
PE1(config-sr-te)#exit-te | Exit from traffic engineering configuration mode |
P1#configure terminal | Enter configure mode. |
P1(config)#interface eth1 | Enter interface mode. |
P1(config-if)# ipv6 address 1111::1/64 | Configure the IPv6 address of the interface. |
P1(config-if)#ipv6 router ospf area 0.0.0.0 tag 1 instance-id 0 | Make the interface part of the router ospf area 0. |
P1(config)#interface eth2 | Enter interface mode. |
P1(config-if)# ipv6 address 5001::1/64 | Configure the IP address of the interface. |
P1(config-if)#ipv6 router ospf area 0.0.0.0 tag 1 instance-id 0 | Make the interface part of the router OSPF area 0. |
P1(config-if)#exit | Exit interface mode. |
P1(config)#router ipv6 ospf 1 | Set the routing process ID as 1 |
P1(config-router)#segment-routing srv6 | Enable SRv6 under IPv6 address-family |
PE1(config-router-af-srv6)# srv6-locator srs123 | Name to SRv6 locator |
P1(config-router)#exit | Exit router mode. |
P2#configure terminal | Enter configure mode. |
P2(config)#interface eth1 | Enter interface mode. |
P2(config-if)# ipv6 address 50::50/64 | Configure the IPv6 address of the interface. |
P2(config-if)#ipv6 router ospf area 0.0.0.0 tag 1 instance-id 0 | Make the interface part of the router OSPF area 0. |
P2(config)#interface eth2 | Enter interface mode. |
P2(config-if)# ipv6 address 5001::2/64 | Configure the IP address of the interface. |
P2(config-if)#ipv6 router ospf area 0.0.0.0 tag 1 instance-id 0 | Make the interface part of the router OSPF area 0. |
P2(config-if)#exit | Exit interface mode. |
P2(config)#router ipv6 ospf 1 | Set the routing process ID as 1 |
P2(config-router)#segment-routing srv6 | Configure is-type as level-2 |
P2(config-router-af-srv6)#srv6-locator srs123 | Name to SRv6 locator |
P2(config-router)#exit | Exit router mode. |
P3#configure terminal | Enter configure mode. |
P3(config)#interface eth1 | Enter interface mode. |
P3(config-if)# ipv6 address 50::5/64 | Configure the IPv6 address of the interface. |
P3(config-if)#ipv6 router ospf area 0.0.0.0 tag 1 instance-id 0 | Make the interface part of the router OSPF area 0. |
P3(config)#interface eth2 | Enter interface mode. |
P3(config-if)# ipv6 address 511::1/64 | Configure the IP address of the interface. |
P3(config-if)#ipv6 router ospf area 0.0.0.0 tag 1 instance-id 0 | Make the interface part of the router OSPF area 0. |
P3(config-if)#exit | Exit interface mode. |
P3(config)#router ipv6 ospf 1 | Set the routing process ID as 1 |
P3(config-router)#segment-routing srv6 | Configure is-type as level-2 |
P3(config-router-af-srv6)#srv6-locator srs123 | Name to SRv6 locator |
P3(config-router)#exit | Exit router mode. |
P4#configure terminal | Enter configure mode. |
P4(config)#interface eth1 | Enter interface mode. |
P4(config-if)# ipv6 address 611::1/64 | Configure the IPv6 address of the interface. |
P4(config-if)#ipv6 router ospf area 0.0.0.0 tag 1 instance-id 0 | Make the interface part of the router OSPF area 0. |
P4(config)#interface eth2 | Enter interface mode. |
P4(config-if)# ipv6 address 511::2/64 | Configure the IP address of the interface. |
P4(config-if)#ipv6 router ospf area 0.0.0.0 tag 1 instance-id 0 | Make the interface part of the router OSPF area 0. |
P4(config-if)#exit | Exit interface mode. |
P4(config)#router ipv6 ospf 1 | Set the routing process ID as 1 |
P4(config-router)#segment-routing srv6 | Configure is-type as level-2 |
P4(config-router-af-srv6)#srv6-locator srs123 | Name to SRv6 locator |
P4(config-router)#exit | Exit router mode. |
PE2#configure terminal | Enter configure mode. |
PE2(config)#tunnel-policy policy0 | Configure tunnel policy |
PE2(config-tnl-policy)#color 1 | Color to be used as 1 |
PE2(config-tnl-policy)#exit | Exit to config mode |
PE2(config)#ip vrf vrf1 | IP VRF config with name vrf1 |
PE2(config-vrf)#tunnel-select-policy policy0 | tunnel-policy to be mapped as policy0 |
PE2(config-vrf)#rd 1:2 | Route-distinguisher value |
PE2(config-vrf)#route-target both 1:1 | Route target value |
PE2(config-vrf)#exit | Exit to config mode |
PE2(config)#interface lo | Enter interface mode. |
PE2(config-if)# ip address 6.6.6.6/32 secondary | Configure ip address on the loopback interface as secondary |
PE2(config-if)#ipv6 address cafe:1:2::22/128 | Configure IPv6 address of the loopback interface. |
PE2(config-if)#ipv6 router ospf area 0.0.0.0 tag 1 instance-id 0 | Make the interface part of the router OSPF area 0. |
PE2(config-if)#exit | Exit interface mode. |
PE2(config)#interface eth1 | Enter interface mode. |
PE2(config-if)#ipv6 address 611::2/64 | Configure the IPv6 address of the interface. |
PE2(config-if)#ipv6 router ospf area 0.0.0.0 tag 1 instance-id 0 | Make the interface part of the router ospf area 0. |
PE2(config)#interface eth2 | Enter interface mode. |
PE2(config-if)#ip vrf forwarding vrf1 | Attaching eth2 to as part of vrf1 |
PE2(config-if)#ip address 201.1.1.1/24 | Configure the IP address of the interface. |
PE2(config-if)#exit | Exit interface mode |
PE2(config)#router ipv6 ospf 1 | Set the routing process ID as 1 |
PE2(config-router)#segment-routing srv6 | Configure is-type as level-2 |
PE2(config-router-af-srv6)#srv6-locator srs123 | Name to SRv6 locator |
PE2(config-router-af-srv6)#exit-srv6 | Exit SRv6 mode |
PE2(config-router)#exit | Exit router mode. |
PE2(config)# router bgp 1000 | Configure router BGP in AS 1000 |
PE2(config-router)# neighbor cafe:1:2::11 remote-as 1000 | Configure neighbor in remote-as 1000 |
PE2(config-router)#neighbor cafe:1:2::11 update-source lo | Configure neighbor with update-source lo |
PE2(config-router)# address-family vpnv4 unicast | Enter VPNv4 Address family mode |
PE2(config-router-af)# segment-routing srv6 | Enter SRv6 mode |
PE2(config-router-vpnv4-srv6)# srv6-locator PE2_locator | Configure locator name under SRv6 mode |
PE2(config-router-vpnv4-srv6)# exit-srv6 | Exit SRv6 mode |
PE2(config-router-af)#neighbor cafe:1:2::11 activate | Activate VPNv4 neighbor |
PE2(config-router-af)# neighbor cafe:1:2::11 capability extended-nexthop-encode | Configure extended nexthop encode capability for VPNv4 neighbor |
PE2(config-router-af)#exit-address-family | Exit from Address Family configuration mode |
PE2(config-router)#address-family ipv4 vrf vrf1 | Enter VRF address family |
PE2(config-router-af)#redistribute connected | Redistribute connected routes |
PE2(config-router-af)#segment-routing srv6 | Enter SRv6 mode |
PE2(config-router-vrfv4-srv6)#sid-alloc per-vrf | Allocate sid per VRF |
PE2(config-router-vrfv4-srv6)#exit-srv6 | Exit SRv6 mode |
PE2(config-router-vrfv4-srv6)#exit-address-family | Exit from Address Family configuration mode |
PE2(config-router-af)#exit | Exit from router mode |
PE2(config)#segment-routing | Configuring segment-routing |
PE2(config-sr)#srv6 | Segment-Routing over IPv6 Data-Plane |
PE2(config-srv6)#locators | Configure SRv6 locators |
PE2(config-srv6-loc)#locator srs123 | Locator name as PE2_locator |
PE2(config-srv6-loc-conf)# prefix cafe:1:2:a11::/64 | IPv6 prefix for locator |
PE2(config-srv6-loc-conf)#exit-locator | Exit from locator mode |
PE2(config-srv6-loc)#exit-locators | Exit from SRv6 locators configuration mode |
PE2(config-srv6)#exit-srv6 | Exit from SRv6 configuration mode |
PE2(config-sr)#traffic-engineering | Segment Routing traffic engineering |
PE2(config-sr-sl)#segment-list 1 | Configure segment list as 1 |
PE2(config-sr-sl)#index 1 segment-type-2 cafe:1:2:a22:2001:: | Configure segment type 2 with SRv6 SIDs |
PE2(config-sr-sl)#exit-sr-sl | Exit segment list mode |
PE2(config-sr-te)#policy 1 | Policy configuration with name 1 |
PE2(config-sr-pol)# color 1 end-point cafe:1:2::11 | SR-policy color and end-point |
PE2(config-sr-pol-cp)#candidate-path 1 | SR policy candidate path |
PE2(config-sr-pol-cp)#preference 100 | Candidate Path preference |
PE2(config-sr-pol-cp)# explicit segment-list l | Configuring explicit segment-list as 1 |
PE2(config-sr-pol)#exit-sr-pol | Exit from SR policy configuration mode |
PE2(config-sr-te)#exit-te | Exit from traffic engineering configuration mode |