2018/routing/bird/bird.conf

91 lines
2.0 KiB
Plaintext

# This is a minimal configuration file, which allows the bird daemon to start
# but will not cause anything else to happen.
#
# Please refer to the documentation in the bird-doc package or BIRD User's
# Guide on http://bird.network.cz/ for more information on configuring BIRD and
# adding routing protocols.
# Change this into your BIRD router ID. It's a world-wide unique identification
# of your router, usually one of router's IPv4 addresses.
router id 172.31.44.200;
# The Kernel protocol is not a real routing protocol. Instead of communicating
# with other routers in the network, it performs synchronization of BIRD's
# routing tables with the OS kernel.
protocol kernel {
scan time 20;
learn;
persist;
import all;
export filter {
krt_prefsrc = 185.117.82.237;
accept;
};
}
protocol direct {
interface "*"; # Restrict network interfaces it works with
}
protocol static originate_myself {
preference 1000;
route 185.117.82.237/32 via "lo";
}
# The Device protocol is not a real routing protocol. It doesn't generate any
# routes and it only serves as a module for getting information about network
# interfaces from the kernel.
protocol device {
scan time 60;
}
filter mine {
if (net = 185.117.82.237/32) then accept;
reject;
}
filter lab {
if (net ~ 185.117.82.0/24) then accept;
reject;
}
template bgp t_any {
local as 65500;
next hop self;
export filter mine;
import all;
default bgp_local_pref 50;
}
protocol bgp marla_pri from t_any {
neighbor 172.31.44.1 as 200533;
}
protocol bgp hawk_pri from t_any {
neighbor 172.31.44.2 as 200533;
}
protocol bgp marla_tp from t_any {
neighbor 172.31.42.1 as 200533;
}
protocol bgp hawk_tp from t_any {
neighbor 172.31.42.2 as 200533;
}
protocol bgp marla_tp_v from t_any {
neighbor 172.31.43.2 as 200533;
default bgp_local_pref 20;
}
protocol bgp spitfire_pri from t_any {
neighbor 172.31.44.100 as 65535;
import filter lab;
}