Skip to content

Instantly share code, notes, and snippets.

@usrdev usrdev/bird.conf.example Secret
Created May 8, 2019

Embed
What would you like to do?
bird.conf.example
cat >> /etc/bird/bird.conf <<EOF
filter packet_bgp {
# the IP range(s) to announce via BGP from this machine
if net = 192.168.100.0/24 then accept;
}
router id 10.1.1.1; # this server's IP address
protocol direct {
interface "lo"; # restrict network interfaces it works with
}
protocol kernel {
persist; # don't remove routes on bird shutdown
scan time 10; # scan kernel routing table every 10 seconds
import all; # default is import all
export all; # default is export none
}
protocol device {
scan time 10; # scan interfaces every 10 seconds
}
protocol bgp {
export filter packet_bgp;
local as 65530; # this needs to match the Peer ASN in azure
neighbor 10.1.1.2 as 12076; # azure always uses 12076
}
EOF
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.