Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

space_server: bird: initial locix setup #49

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
56 changes: 54 additions & 2 deletions roles/space_server/files/bird.conf
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ define local_asn = 205235;
define fiberby_asn = 42541;
define asbjorn_asn = 207727;
define hafnium_asn = 211153;
define locix_rs_asn= 202409;

define asbjorn_prefixes_v4 = [
194.165.35.0/24,
Expand Down Expand Up @@ -174,11 +175,13 @@ protocol kernel kernel6 {
}


# templates
# Templates
## Customer
template bgp bgp_customer {
default bgp_local_pref 150;
}

## Transit
template bgp bgp_transit_v4 {
default bgp_local_pref 100;
ipv4 {
Expand All @@ -201,7 +204,32 @@ template bgp bgp_transit_v6 {
};
}

# Transit
## IX: LocIX
template bgp bgp_locix_rs_v4 {
local as local_asn;
default bgp_local_pref 100;
ipv4 {
import limit off;
receive limit (200000 + 50000);
import keep filtered on;
import filter transit_import;
export filter transit_export;
};
}

template bgp bgp_locix_rs_v6 {
local as local_asn;
default bgp_local_pref 100;
ipv6 {
import limit off;
receive limit (80000 + 10000);
import keep filtered on;
import filter transit_import;
export filter transit_export;
};
}

# Fiberby transit
protocol bgp fiberby_tgc_v4 from bgp_transit_v4 {
local 193.106.167.41 as local_asn;
neighbor 193.106.167.40 as fiberby_asn;
Expand All @@ -226,6 +254,30 @@ protocol bgp fiberby_inx_v6 from bgp_transit_v6 {
ttl security;
}

## LocIX Frankfurt route server 01
protocol bgp locix_rs01_v6 from bgp_locix_rs_v6 {
neighbor 2001:7f8:f2:e1::babe:1 as locix_rs_asn;
}
protocol bgp locix_rs01_v4 from bgp_locix_rs_v4 {
neighbor 185.1.166.100 as locix_rs_asn;
}

## LocIX Frankfurt route server 02
protocol bgp locix_rs02_v6 from bgp_locix_rs_v6 {
neighbor 2001:7f8:f2:e1::dead:1 as locix_rs_asn;
}
protocol bgp locix_rs02_v4 from bgp_locix_rs_v4 {
neighbor 185.1.166.200 as locix_rs_asn;
}

## LocIX Frankfurt route server 03
protocol bgp locix_rs03_v6 from bgp_locix_rs_v6 {
neighbor 2001:7f8:f2:e1::be5a as locix_rs_asn;
}
protocol bgp locix_rs03_v4 from bgp_locix_rs_v4 {
neighbor 185.1.166.254 as locix_rs_asn;
}

# BGP customer: asbjorn
protocol bgp asbjorn_ipv4 from bgp_customer {
local 185.38.175.65 as local_asn;
Expand Down