For a better understanding here are the picture of my iBGP Mesh:
Every Peering has its own Bird Routing Table and i use pipes to leak from the Peering Tables to master. Following are
the details of my iBGP Peerings/Templates and Filters. The lines indicates WireGuard VPN Links (purple) and iBGP
Peerings (green dotted).
Used Bird Templates for iBGP Peerings and Pipes
With these Templates, a iBGP Peering consists of one file in peers4/6 directory, for example Peering Definition on dn42-uk01 for dn42-de02 aka dn42-gw:
BGP Communities for AS4242423905
I added the following communities to routes i learned:
BGP Community
Desription
MYPeerID
PeerID of System who learns the route( PeerID == iBGP Loopback IP)
1000 + MYPeerID
Peering Originates from an Peer on System with PeerID
7000 + MYPeerID
Route was learned from a "Customer/Peering" on System with PeerID
8000 + MYPeerID
Route was learned from an IXP on System with PeerID
9000 + MYPeerID
Route was learned from an "Upstream" on System with PeerID
.
Based on this communities i update local_pref on iBGP egress per System. Below you find my current Filter/Routing Polica on iBGP Links.