! debug bgp neighbor-events
! debug bgp updates
! debug bgp zebra
router bgp 65000
 bgp router-id 192.168.100.41
 bgp log-neighbor-changes
 no bgp default ipv4-unicast
 neighbor 192.168.100.21 peer-group
 neighbor 192.168.100.21 remote-as 65000
 neighbor 192.168.100.21 capability extended-nexthop
 !
 address-family l2vpn evpn
  neighbor 192.168.100.21 activate
  advertise-all-vni
 exit-address-family
!
router bgp 65000 vrf r2-vrf-101
 bgp router-id 192.168.101.41
 bgp log-neighbor-changes
 no bgp network import-check
 address-family ipv4 unicast
  network 192.168.101.41/32
  network 192.168.102.41/32
 exit-address-family
 address-family ipv6 unicast
  network fd00::2/128
  network fd00::3/128
 exit-address-family
 address-family l2vpn evpn
  advertise ipv4 unicast route-map rmap4
  advertise ipv6 unicast route-map rmap6
 exit-address-family
 !
access-list acl4_1 seq 10 permit 192.168.101.41/32
access-list acl4_2 seq 10 permit 192.168.102.41/32
ipv6 access-list acl6_1 seq 10 permit fd00::2/128
ipv6 access-list acl6_2 seq 10 permit fd00::3/128
route-map rmap4 permit 1
 match ip address acl4_1
exit
route-map rmap4 deny 2
 match ip address acl4_2
exit
route-map rmap6 permit 1
 match ipv6 address acl6_1
exit
route-map rmap6 deny 2
 match ipv6 address acl6_2
exit
