hostname R44
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:40::44/128 ge 128 le 128
 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_cms VRF_EXT nexthop fd01:20:44::4
!
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 140
 description [IPv4 eBGP FOR R44]
 vrf VRF_EXT
 local-as 400
 router-id 10.44.40.44
 no safe-ebgp
 address-family unicast
 neighbor 10.20.44.4 remote-as 20965
 neighbor 10.20.44.4 description [VLAN ID = 20] [R44@ETH1] -> [R4@ETH3]
 neighbor 10.20.44.4 local-as 400
 neighbor 10.20.44.4 address-family unicast
 neighbor 10.20.44.4 distance 20
 neighbor 10.20.44.4 additional-path-tx unicast
 neighbor 10.20.44.4 additional-path-rx unicast
 neighbor 10.20.44.4 update-source ethernet1.20
 neighbor 10.30.44.4 remote-as 20965
 neighbor 10.30.44.4 description [VLAN ID = 30] [R44@ETH1] -> [R4@ETH3]
 neighbor 10.30.44.4 local-as 400
 neighbor 10.30.44.4 address-family unicast
 neighbor 10.30.44.4 distance 20
 neighbor 10.30.44.4 additional-path-tx unicast
 neighbor 10.30.44.4 additional-path-rx unicast
 neighbor 10.30.44.4 update-source ethernet1.30
 readvertise 10.44.40.44/32
 ecmp
 exit
!
router bgp6 140
 description [IPv6 eBGP FOR R44]
 vrf VRF_EXT
 local-as 400
 router-id 10.44.40.44
 no safe-ebgp
 address-family unicast
 neighbor fd01:20:44::4 remote-as 20965
 neighbor fd01:20:44::4 description [VLAN ID = 20] [R44@ETH1] -> [R4@ETH3]
 neighbor fd01:20:44::4 local-as 400
 neighbor fd01:20:44::4 address-family unicast
 neighbor fd01:20:44::4 distance 20
 neighbor fd01:20:44::4 additional-path-tx unicast
 neighbor fd01:20:44::4 additional-path-rx unicast
 neighbor fd01:20:44::4 prefix-list-out filtertransittraffic
 neighbor fd01:20:44::4 update-source ethernet1.20
 neighbor fd01:30:44::4 remote-as 20965
 neighbor fd01:30:44::4 description [VLAN ID = 30] [R44@ETH1] -> [R4@ETH3]
 neighbor fd01:30:44::4 local-as 400
 neighbor fd01:30:44::4 address-family unicast
 neighbor fd01:30:44::4 distance 10
 neighbor fd01:30:44::4 additional-path-tx unicast
 neighbor fd01:30:44::4 additional-path-rx unicast
 neighbor fd01:20:44::4 prefix-list-out filtertransittraffic
 neighbor fd01:30:44::4 update-source ethernet1.30
 readvertise fd01:40::44/128
 ecmp
 exit
!
interface loopback400
 description [LOOPBACK FOR R44]
 vrf forwarding VRF_EXT
 ipv4 address 10.44.40.44 255.255.255.255
 ipv6 address fd01:40::44 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.20
 description [VLAN ID = 20] R11 --> R1
 service-policy-in pingresetflowlabel
 bridge-group 20
 bridge-filter ipv6in acl_ipv6_flowlabel_cms
 vrf forwarding VRF_EXT
 ipv4 address 10.20.44.44 255.255.255.0
 ipv6 address fd01:20:44::44 ffff:ffff:ffff:ffff::
 ipv6 enable
 no shutdown
 no log-link-change
 exit
!
interface ethernet1.30
 description [VLAN ID = 30] R11 --> R1
 vrf forwarding VRF_EXT
 ipv4 address 10.30.44.44 255.255.255.0
 ipv6 address fd01:30:44::44 ffff:ffff:ffff:ffff::
 ipv6 enable
 no shutdown
 no log-link-change
 exit
!
server telnet tel
 security protocol telnet
 exec timeout 10000000
 exec colorize prompt
 exec logging
 exec monitor
 no exec authorization
 no login authentication
 login logging
 vrf VRF_EXT
 exit
!
end
