hostname R22
no buggy
!
vrf definition VRF_EXT
 exit
!
policy-map pingresetflowlabel
 description [POLICY-MAP USED TO SET FLOW LABEL TO 0 - NEEDED TO PING]
 sequence 10 action transit
 sequence 10 set flow 0
 exit
!
prefix-list filtertransittraffic
 description [PREFIX-LIST USED TO FILTER BGP TRANSIT TRAFFIC GENERATED ON THE CLIENTS - PERMIT ONLY ITS OWN LOOPBACK]
 sequence 10 permit fd01:20::22/128 ge 128 le 128
 exit
!
access-list acl_ipv6_flowlabel_atlas
 description [ACCESS-LIST TO MATCH ON THE ATLAS FLOW LABEL]
 sequence 10 permit all any all any all flow 131072&261632
 exit
!
access-list acl_ipv6_flowlabel_cms
 description [ACCESS-LIST TO MATCH ON THE CMS FLOW LABEL]
 sequence 10 permit all any all any all flow 65540&261884
 exit
!
ipv6 pbr VRF_EXT sequence 10 acl_ipv6_flowlabel_atlas VRF_EXT nexthop fd01:10:22::2
ipv6 pbr VRF_EXT sequence 20 acl_ipv6_flowlabel_cms VRF_EXT nexthop fd01:20:22::2
!
bridge 10
 description [VLAN ID = 10] [BRIDGE FOR ATLAS FLOW LABEL]
 mac-learn
 mac-move
 exit
!
interface bvi10
 description [VLAN ID = 10] [INTERFACE FOR ATLAS BRIDGE]
 no shutdown
 no log-link-change
 exit
!
bridge 20
 description [VLAN ID = 20] [BRIDGE FOR CMS FLOW LABEL]
 mac-learn
 mac-move
 exit
!
interface bvi20
 description [VLAN ID = 20] [INTERFACE FOR CMS BRIDGE]
 no shutdown
 no log-link-change
 exit
!
router bgp4 200
 description [IPv4 eBGP FOR R22]
 vrf VRF_EXT
 local-as 200
 router-id 10.22.20.22
 no safe-ebgp
 address-family unicast
 neighbor 10.10.22.2 remote-as 293
 neighbor 10.10.22.2 description [VLAN ID = 10] [R22@ETH1] -> [R2@ETH1]
 neighbor 10.10.22.2 local-as 200
 neighbor 10.10.22.2 address-family unicast
 neighbor 10.10.22.2 distance 20
 neighbor 10.10.22.2 additional-path-tx unicast
 neighbor 10.10.22.2 additional-path-rx unicast
 neighbor 10.10.22.2 update-source ethernet1.10
 neighbor 10.20.22.2 remote-as 293
 neighbor 10.20.22.2 description [VLAN ID = 20] [R22@ETH1] -> [R2@ETH1]
 neighbor 10.20.22.2 local-as 200
 neighbor 10.20.22.2 address-family unicast
 neighbor 10.20.22.2 distance 20
 neighbor 10.20.22.2 additional-path-tx unicast
 neighbor 10.20.22.2 additional-path-rx unicast
 neighbor 10.20.22.2 update-source ethernet1.20
 neighbor 10.30.22.2 remote-as 293
 neighbor 10.30.22.2 description [VLAN ID = 30] [R22@ETH1] -> [R2@ETH1]
 neighbor 10.30.22.2 local-as 200
 neighbor 10.30.22.2 address-family unicast
 neighbor 10.30.22.2 distance 20
 neighbor 10.30.22.2 additional-path-tx unicast
 neighbor 10.30.22.2 additional-path-rx unicast
 neighbor 10.30.22.2 update-source ethernet1.30
 readvertise 10.22.20.22/32
 ecmp
 exit
!
router bgp6 200
 description [IPv6 eBGP FOR R22]
 vrf VRF_EXT
 local-as 200
 router-id 10.22.20.22
 no safe-ebgp
 address-family unicast
 neighbor fd01:10:22::2 remote-as 293
 neighbor fd01:10:22::2 description [VLAN ID = 10] [R22@ETH1] -> [R2@ETH1]
 neighbor fd01:10:22::2 local-as 200
 neighbor fd01:10:22::2 address-family unicast
 neighbor fd01:10:22::2 distance 20
 neighbor fd01:10:22::2 additional-path-tx unicast
 neighbor fd01:10:22::2 additional-path-rx unicast
 neighbor fd01:10:22::2 prefix-list-out filtertransittraffic
 neighbor fd01:10:22::2 update-source ethernet1.10
 neighbor fd01:20:22::2 remote-as 293
 neighbor fd01:20:22::2 description [VLAN ID = 20] [R22@ETH1] -> [R2@ETH1]
 neighbor fd01:20:22::2 local-as 200
 neighbor fd01:20:22::2 address-family unicast
 neighbor fd01:20:22::2 distance 20
 neighbor fd01:20:22::2 additional-path-tx unicast
 neighbor fd01:20:22::2 additional-path-rx unicast
 neighbor fd01:20:22::2 prefix-list-out filtertransittraffic
 neighbor fd01:20:22::2 update-source ethernet1.20
 neighbor fd01:30:22::2 remote-as 293
 neighbor fd01:30:22::2 description [VLAN ID = 30] [R22@ETH1] -> [R2@ETH1]
 neighbor fd01:30:22::2 local-as 200
 neighbor fd01:30:22::2 address-family unicast
 neighbor fd01:30:22::2 distance 10
 neighbor fd01:30:22::2 additional-path-tx unicast
 neighbor fd01:30:22::2 additional-path-rx unicast
 neighbor fd01:30:22::2 prefix-list-out filtertransittraffic
 neighbor fd01:30:22::2 update-source ethernet1.30
 readvertise fd01:20::22/128
 ecmp
 exit
!
interface loopback200
 description [LOOPBACK FOR R22]
 vrf forwarding VRF_EXT
 ipv4 address 10.22.20.22 255.255.255.255
 ipv6 address fd01:20::22 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff
 ipv6 enable
 no shutdown
 no log-link-change
 exit
!
interface ethernet1
 no shutdown
 no log-link-change
 exit
!
interface ethernet1.10
 description [VLAN ID = 10] R22 --> R2
 service-policy-in pingresetflowlabel
 bridge-group 10
 bridge-filter ipv6in acl_ipv6_flowlabel_atlas
 vrf forwarding VRF_EXT
 ipv4 address 10.10.22.22 255.255.255.0
 ipv6 address fd01:10:22::22 ffff:ffff:ffff:ffff::
 ipv6 enable
 no shutdown
 no log-link-change
 exit
!
interface ethernet1.20
 description [VLAN ID = 20] R22 --> R2
 service-policy-in pingresetflowlabel
 bridge-group 20
 bridge-filter ipv6in acl_ipv6_flowlabel_cms
 vrf forwarding VRF_EXT
 ipv4 address 10.20.22.22 255.255.255.0
 ipv6 address fd01:20:22::22 ffff:ffff:ffff:ffff::
 ipv6 enable
 no shutdown
 no log-link-change
 exit
!
interface ethernet1.30
 description [VLAN ID = 30] R22 --> R2
 vrf forwarding VRF_EXT
 ipv4 address 10.30.22.22 255.255.255.0
 ipv6 address fd01:30:22::22 ffff:ffff:ffff:ffff::
 ipv6 enable
 no shutdown
 no log-link-change
 exit
!
server telnet tel
 security protocol telnet
 exec timeout 10000000
 exec logging
 exec colorize prompt
 no exec authorization
 no login authentication
 login logging
 vrf VRF_EXT
 exit
!
end
