[R3]debian@debian:~$ cat /etc/frr/frr.conf
frr version 8.4-dev
frr defaults traditional
hostname r3
log commands
log syslog debugging
log facility local7
ip forwarding
!
! Define community lists
bgp community-list standard 1 permit 60:1
bgp community-list standard 2 permit 60:2
bgp community-list standard 3 permit 60:3
bgp community-list standard 4 permit 60:4
bgp community-list standard 5 permit 60:5
bgp community-list standard 6 permit 60:6
bgp community-list standard 7 permit 60:7
!
! Define the AS path
bgp as-path access-list 1 permit ^10_60 
!
! Match community 1 and set the IP dscp to priority
route-map QPPB permit 10
match community 1
set dscp cs1
!
! Match community 2 and set the IP dscp to immediate
route-map QPPB permit 20
match community 2
set dscp af11
!
! Match community 3 and set the IP dscp to flash
route-map QPPB permit 30
match community 3
set dscp af21
!
! Match community 4 and set the IP dscp to flash-override
route-map QPPB permit 40
match community 4
set dscp 31
!
! Match community 5 and set the IP dscp to critical
route-map QPPB permit 50
match community 5
set dscp af21
!
! Match community 6 and set the IP dscp to internet
route-map QPPB permit 60
match community 6
set dscp af22
!
! Match community 7 and set the IP dscp to network
route-map QPPB permit 70
match community 7
set dscp 38
!
! Match ip address access list 69 or match autonomous system path 1
! and set the IP dscp to critical
route-map QPPB permit 75
match ip address 69
match as-path 1
set dscp 46
!
! For everything else, set the IP dscp to routine
route-map QPPB permit 80
set dscp 44

interface lo
 ip address 1.0.3.17/32
!
interface ens4
 ip address 30.0.0.1/32
interface ens5
 ip address 30.0.0.2/24
!
ip route 20.0.0.1/24 ens4
ip route 0.0.0.0/0 ens4
!
router bgp 200
 bgp log-neighbor-changes
 no bgp ebgp-requires-policy
 no bgp network import-check
 neighbor 20.0.0.1 remote-as 100
 neighbor 20.0.0.1 timers 3 10
 neighbor 20.0.0.1 timers connect 5
 table-map QPPB
!
