a54db1e482bbf4c876a014f5fe7ab03afbf9e01b
howto/Bird-communities.md
... | ... | @@ -154,6 +154,7 @@ If you are running a bigger network and also want to prioritize your traffic bas |
154 | 154 | ``` |
155 | 155 | bgp_local_pref = 10000+100*dn42_bandwidth + 50*(10-dn42_latency)-200*bgp_path.len+100*dn42_crypto; (as suggested by tombii) |
156 | 156 | bgp_local_pref = 1000*dn42_bandwidth - 10*dn42_latency; if dn42_crypto < 2 then bgp_local_pref = 0; (as suggested by Jplitza) |
157 | +bgp_local_pref = 10000+100*dn42_bandwidth + 50*(10-dn42_latency)-400*(bgp_path.len-1)+100*dn42_crypto; (as suggested by Mic92 - prefer direct tunnel) |
|
157 | 158 | ``` |
158 | 159 | This calculation goes into the /etc/bird/community_filters.conf just above the return true; line. However for starters I recommend to skip the bgp_local_pref calculation part until you fully unterstand BGP routing and how this will affect not only you but the whole network. Assigning community flags to your peerings will however have an impact on dn42 in total. Remember, probably none of these alternatives are a good fit for your network, you will need to apply one and see how it affects your traffic and then going back and tweaking the formula and checking again. |
159 | 160 |