P1#configure terminal | Enter configure mode |
P1(config)#interface ce51 | Enter interface mode |
P1(config-if)# ipv6 address 5001::2/64 | Configure the IPv6 address of the interface |
P1(config-if)# ipv6 router isis 1 | Make the interface part of the router ISIS 1 instance |
P1(config)#interface ce50 | Enter interface mode |
P1(config-if)# ipv6 address 3001::1/64 | Configure the IP address of the interface |
P1(config-if)# ipv6 router isis 1 | Make the interface part of the router ISIS 1 instance |
P1(config-if)#exit | Exit interface mode |
PE1(config)# interface eth1 | Enter the interface mode for eth1 |
PE1(config-if)# ip vrf forwarding vrf1 | Bind the VRF instance to the interface |
PE1(config-if)# ip address 101.1.1.1/24 | Configure IPv4 address |
PE1(config-if)# label-switching | Commit interface configurations |
PE1(config-if)# exit | Exit interface mode |
PE1#configure terminal | Enter configure mode |
PE1(config)#segment-routing | Enter the Segment Routing mode |
PE1(config-sr)#traffic-engineering | Enter traffic-engineering mode |
PE1(config-sr-te)#on-demand-nexthop 1001 | Configure SRODN template |
PE1(config-sr-odn)#candidate-path 1 | Enter candidate path mode |
PE1(config-sr-odn-cp)#dynamic-path ospf 100 | Configure dynamic path OSPF |
PE1(config-sr-odn-cp)#exit-odn-cp | Exit candidate-path mode |
PE1(config-sr-odn)#exit-sr-odn | Exit ODN template mode |
PE1(config-sr-te)#exit-te | Exit from traffic-engineering mode |
PE1(config-sr)#commit | Commit SR configuration |
PE1(config-sr)#exit | Exit from Segment-routing mode |
PE1(config)#router bgp 100 | Enter Router BGP mode |
PE1(config-router)#bgp router-id 1.1.1.1 | Configure BGP router-id |
PE1(config-router)#neighbor 4.4.4.4 remote-as 100 | Configuring PE2 as iBGP neighbor using it's loopback ip |
PE1(config-router)# neighbor 4.4.4.4 update-source lo | Source of routing updates as loopback |
PE1(config-router)#address-family vpnv4 unicast | Enter VPNv4 Address family mod |
PE1(config-router-af)# neighbor 4.4.4.4 activate | Enabling VPNv4 Address family for neighbor |
PE1(config-router-af)# exit-address-family | Exit Address-family mode |
PE1(config-router)#address-family ipv4 vrf vrf1 | Configure VRF address family |
PE1(config-router-af)# redistribute connected | Redistribute connected router |
PE1(config-router-af)# exit-address-family | Exit VRF address family |
PE1(config-router)# commit | Commit BGP configurations |
PE1(config-router)# exit | Exit form Router BGP mode and return to config mode |
P2#configure terminal | Enter configure mode |
PE2(config)#ip vrf vrf1 | Create new vrf name vrf1 |
PE2(config-vrf)#rd 100:100 | Assign the route distinguisher (RD) value as 100:100 |
PE2(config-vrf)#route-target both 101:101 | Import routes between route target (RT) ext-communities 101 and 101 |
PE2(config-vrf)#commit | Commit vrf configuration |
PE2(config)#exit | Exit form vrf mode |
PE2(config)# interface eth1 | Enter the interface mode for eth1 |
PE2(config-if)# ip vrf forwarding vrf1 | Bind the VRF instance to the interface |
PE2(config-if)# ip address 101.1.1.1/24 | Configure IPv4 address |
PE2(config-if)# label-switching | Commit interface configurations |
PE2(config-if)# exit | Exit interface mode |
PE2#configure terminal | Enter configure mode |
PE2(config)#route-map pfp1 permit 10 | Create route-map |
PE2(config-route-map)# set extcommunity color 1001 | Configure set extcommunity color to route-map |
PE2(config-route-map)# commit | Commit the route-map configurations |
PE2(config-route-map)# exit | Exit from route-map and return to configuration mode |
PE2(config)#router bgp 100 | Enter Router BGP mode |
PE2(config-router)#bgp router-id 4.4.4.4 | Configure BGP router-id |
PE2(config-router)#neighbor 1.1.1.1 remote-as 100 | Configuring PE2 as iBGP neighbor using it's loopback ip |
PE2(config-router)# neighbor 1.1..1.1 update-source lo | Source of routing updates as loopback |
PE2(config-router)#address-family vpnv4 unicast | Enter VPNv4 Address family mod |
PE2(config-router-af)# neighbor 1.1.1.1 activate | Enabling VPNv4 Address family for neighbor |
PE2(config-router-af)# exit-address-family | Exit Address-family mode |
PE2(config-router)#address-family ipv4 vrf vrf1 | Configure VRF address family |
PE2(config-router-af)# redistribute connected route-map pfp1 | Redistribute connected router |
PE2(config-router-af)# exit-address-family | Exit VRF address family |
PE2(config-router)# commit | Commit BGP configurations |
PE2(config-router)# exit | Exit form Router BGP mode and return to config mode |