6c7c6dd978eb91719228dcdf0293f42d7b8552c3
howto/Bird-communities.md
... | ... | @@ -121,10 +121,11 @@ include "/etc/bird/community_filters.conf"; |
121 | 121 | |
122 | 122 | ### Bird bgp_local_pref calculation |
123 | 123 | If you are running a bigger network and also want to prioritize your traffic based on the communities, then you can look at the following below: |
124 | +``` |
|
124 | 125 | bgp_local_pref = 10000+100*bandwidth + 50*(10-latency)-200*bgp_path.len+100*crypto; (as suggested by tombii) |
125 | 126 | |
126 | 127 | bgp_local_pref = 1000*bandwidth - 10*latency; if crypto < 2 then bgp_local_pref = 0; (as suggested by Jplitza) |
127 | - |
|
128 | +``` |
|
128 | 129 | These go into the /etc/bird/community_filters.conf just above the return true; line. However for starters I recommend to stick with the above, simpler implementation with assigning community flags to your peerings to have a smarter routing in dn42 in total. |
129 | 130 | |
130 | 131 | Original implementation by Jplitza: https://gist.github.com/welterde/524cc9b37a618e29093d |