80 lines
1.3 KiB
Plaintext
80 lines
1.3 KiB
Plaintext
router id 10.40.217.3;
|
|
|
|
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 "vlan216" {
|
|
};
|
|
interface "vlan217" {
|
|
stub;
|
|
};
|
|
};
|
|
}
|
|
|
|
##############################################################################
|
|
# eBGP R10
|
|
#
|
|
|
|
table t_r10;
|
|
|
|
protocol static originate_to_r10 {
|
|
table t_r10;
|
|
import all; # originate here
|
|
route 10.40.0.0/22 blackhole;
|
|
route 10.40.216.0/21 blackhole;
|
|
}
|
|
|
|
protocol bgp ebgp_r10 {
|
|
table t_r10;
|
|
local 10.40.217.17 as 64080;
|
|
neighbor 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_r10 {
|
|
table master;
|
|
peer table t_r10;
|
|
import where source = RTS_BGP;
|
|
export none;
|
|
}
|
|
|
|
#
|
|
# iBGP R1
|
|
#
|
|
|
|
protocol bgp ibgp_r1 {
|
|
import none;
|
|
export where source = RTS_BGP;
|
|
local 10.40.217.3 as 64080;
|
|
neighbor 10.40.217.1 as 64080;
|
|
}
|
|
|
|
#
|
|
# iBPG R0
|
|
#
|
|
protocol bgp ibgp_r0 {
|
|
import none;
|
|
export where source = RTS_BGP;
|
|
local 10.40.217.3 as 64080;
|
|
neighbor 10.40.217.0 as 64080;
|
|
}
|