knorrie-config/R10/rootfs/etc/bird/bird.conf

73 lines
1.2 KiB
Plaintext

router id 10.40.32.10;
log "/var/log/bird/bird.log" all;
debug protocols { states, routes, filters, interfaces }
protocol kernel {
import none;
export all;
}
protocol device {
# defaults...
}
protocol ospf {
area 0 {
interface "lo" {
stub;
};
interface "vlan33" {
};
interface "vlan217" {
stub;
};
};
}
##############################################################################
# eBGP R3
#
table t_r3;
protocol static originate_to_r3 {
table t_r3;
import all; # originate here
route 10.40.0.0/22 blackhole;
route 10.40.216.0/21 blackhole;
}
protocol bgp ebgp_r3 {
table t_r3;
neighbor 10.40.217.17 as 64080;
local 10.40.217.18 as 65033;
import filter {
if net ~ [ 10.0.0.0/8{19,24} ] then accept;
reject;
};
import keep filtered on;
export where source = RTS_STATIC;
}
protocol pipe p_master_to_r3 {
table master;
peer table t_r3;
import where source = RTS_BGP;
export none;
}
protocol bgp iBPG_r11 {
import none;
export where source = RTS_BGP;
neighbor 10.40.32.11 as 65033;
local 10.40.32.10 as 65033;
}
protocol bgp IBPG_R12 {
import none;
export where source = RTS_BGP;
neighbor 10.40.32.12 as 65033;
local 10.40.32.10 as 65033;
}