mirror of
https://git.dn42.dev/wiki/wiki
synced 2025-03-14 03:26:33 +00:00
Updated Bird2 (markdown)
This commit is contained in:
parent
a1beda9542
commit
b044cd5a0c
@ -18,6 +18,7 @@ When copying the configuration below onto your system, you will have to enter th
|
|||||||
* Then replace `<OWNNET>` with the IPv4 subnet that was assigned to you.
|
* Then replace `<OWNNET>` with the IPv4 subnet that was assigned to you.
|
||||||
* The same goes for `<OWNNETv6>`, but it takes an IPv6 subnet (Who'd have thought).
|
* The same goes for `<OWNNETv6>`, but it takes an IPv6 subnet (Who'd have thought).
|
||||||
* Keep in mind that you'll have to enter both networks in the OWNNET{,v6} and OWNNETSET{,v6}, the two variables are required due to set parsing difficulties with variables.
|
* Keep in mind that you'll have to enter both networks in the OWNNET{,v6} and OWNNETSET{,v6}, the two variables are required due to set parsing difficulties with variables.
|
||||||
|
|
||||||
```
|
```
|
||||||
################################################
|
################################################
|
||||||
# Variable header #
|
# Variable header #
|
||||||
@ -72,13 +73,19 @@ roa6 table dn42_roa_v6;
|
|||||||
|
|
||||||
protocol static {
|
protocol static {
|
||||||
roa4 { table dn42_roa; };
|
roa4 { table dn42_roa; };
|
||||||
include "/etc/bird/roa_dn42.conf";
|
roa6 { table dn42_roa_v6; };
|
||||||
|
include "/etc/bird/roa_dn42_v4_and_v6.conf";
|
||||||
};
|
};
|
||||||
|
|
||||||
protocol static {
|
## or use this:
|
||||||
roa6 { table dn42_roa_v6; };
|
# protocol static {
|
||||||
include "/etc/bird/roa_dn42_v6.conf";
|
# roa4 { table dn42_roa; };
|
||||||
};
|
# include "/etc/bird/roa_dn42.conf";
|
||||||
|
# };
|
||||||
|
# protocol static {
|
||||||
|
# roa6 { table dn42_roa_v6; };
|
||||||
|
# include "/etc/bird/roa_dn42_v6.conf";
|
||||||
|
# };
|
||||||
|
|
||||||
function is_valid_network_v6() {
|
function is_valid_network_v6() {
|
||||||
return net ~ [
|
return net ~ [
|
||||||
@ -176,11 +183,14 @@ Please note: This section assumes that you've already got a tunnel to your peeri
|
|||||||
|
|
||||||
First, make sure the /etc/bird/peers directory exists:
|
First, make sure the /etc/bird/peers directory exists:
|
||||||
|
|
||||||
# mkdir -p /etc/bird/peers
|
```
|
||||||
|
# mkdir -p /etc/bird/peers
|
||||||
|
```
|
||||||
|
|
||||||
Then for each peer, create a configuration file similar to this one:
|
Then for each peer, create a configuration file similar to this one:
|
||||||
|
|
||||||
`/etc/bird/peers/<NEIGHBOR_NAME>.conf`:
|
`/etc/bird/peers/<NEIGHBOR_NAME>.conf`:
|
||||||
|
|
||||||
```
|
```
|
||||||
protocol bgp <NEIGHBOR_NAME> from dnpeers {
|
protocol bgp <NEIGHBOR_NAME> from dnpeers {
|
||||||
neighbor <NEIGHBOR_IP> as <NEIGHBOR_ASN>;
|
neighbor <NEIGHBOR_IP> as <NEIGHBOR_ASN>;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user