... | ... | @@ -11,17 +11,18 @@ Here is the configuration example: |
|
|
* Route server configuration example
|
|
|
* Single RIB configuration with filtering
|
|
|
*/
|
|
|
|
|
|
log "/var/log/bird.log" all;
|
|
|
log syslog all;
|
|
|
|
|
|
log "bird.log" all;
|
|
|
|
|
|
router id 9.9.9.9;
|
|
|
define myas = 999;
|
|
|
|
|
|
ipv4 table master4 sorted;
|
|
|
|
|
|
protocol device { }
|
|
|
|
|
|
# This function excludes weird networks
|
|
|
# rfc1918, class D, class E, too long and too short prefixes
|
|
|
# rfc1918, class D, class E, too long and too short prefixes
|
|
|
function avoid_martians()
|
|
|
prefix set martians;
|
|
|
{
|
... | ... | @@ -60,7 +61,6 @@ Here is the configuration example: |
|
|
# Remove IXP related communities
|
|
|
bgp_community.delete([(0,*)]);
|
|
|
bgp_community.delete([(myas,*)]);
|
|
|
|
|
|
bgp_ext_community.delete([(ro,0,*)]);
|
|
|
bgp_ext_community.delete([(ro,myas,*)]);
|
|
|
|
... | ... | @@ -72,14 +72,16 @@ Here is the configuration example: |
|
|
template bgp PEERS {
|
|
|
local as myas;
|
|
|
rs client;
|
|
|
secondary;
|
|
|
import limit 25000 action restart;
|
|
|
start delay time 60;
|
|
|
interpret communities off;
|
|
|
import keep filtered on;
|
|
|
ipv4 {
|
|
|
import all;
|
|
|
secondary on;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
table master sorted;
|
|
|
|
|
|
|
|
|
####
|
|
|
# Configuration of BGP peer follows
|
... | ... | |