[R2]debian@debian:~$ cat /etc/frr/frr.conf
frr version 8.3-dev
frr defaults traditional
hostname r2
!
log commands
log syslog debugging
log facility local7
ip forwarding
!
interface ens4
 ip address 20.0.0.1/32
!
interface ens5
 ip address 20.0.0.2/32
!
ip route 10.0.0.0/24 ens4
ip route 0.0.0.0/0 ens5
!
router bgp 100
 bgp log-neighbor-changes
 no bgp ebgp-requires-policy
 no bgp network import-check
 neighbor 10.0.0.1 remote-as 100
 neighbor 10.0.0.1 timers 3 10
 neighbor 10.0.0.1 timers connect 5
 neighbor 30.0.0.1 remote-as 200
 neighbor 30.0.0.1 timers 3 10
 neighbor 30.0.0.1 timers connect 5
 neighbor 30.0.0.1 send-community
 neighbor 30.0.0.1 route-map send_community out
 address-family ipv4 unicast
  network 30.0.0.10/32
 exit-address-family
!
! Match prefix 10 and set community to 60:1
route-map send_community permit 10
match ip address 10
set community 60:1
!
! Match prefix 20 and set community to 60:2
route-map send_community permit 20
match ip address 20
set community 60:2
!
! Match prefix 30 and set community to 60:3
route-map send_community permit 30
match ip address 30
set community 60:3
!
! Match prefix 40 and set community to 60:4
route-map send_community permit 40
match ip address 40
set community 60:4
!
! Match prefix 50 and set community to 60:5
route-map send_community permit 50
match ip address 50
set community 60:5
!
! Match prefix 60 and set community to 60:6
route-map send_community permit 60
match ip address 60
set community 60:6
!
route-map send_community permit 70
match ip address 70
set community 60:7
!
! Define access lists
access-list 10 permit 21.0.0.0
access-list 20 permit 22.0.0.0
access-list 30 permit 23.0.0.0
access-list 40 permit 24.0.0.0
access-list 50 permit 30.0.0.1
access-list 60 permit 1.0.1.17
access-list 70 permit 30.0.0.10
