mirror of
https://git.dn42.dev/wiki/wiki.git
synced 2024-11-27 11:23:37 +01:00
Bird-communities: copyedit
This commit is contained in:
parent
bfa2ef1495
commit
42779c2179
@ -42,7 +42,7 @@ Propagation:
|
||||
```
|
||||
For example, if your peer is 12ms away and the link speed between you is 250Mbit/s and you are peering using OpenVPN P2P, then the community string would be (3, 24, 33).
|
||||
|
||||
Two utilites which measure round trip time and calculate community values automatically are provided, written in [ruby](https://github.com/Mic92/bird-dn42/blob/master/bgp-community.rb) and [C](https://github.com/nixnodes/bird/blob/master/misc/dn42-comgen.c).
|
||||
Two utilities which measure round trip time and calculate community values automatically are provided, written in [ruby](https://github.com/Mic92/bird-dn42/blob/master/bgp-community.rb) and [C](https://github.com/nixnodes/bird/blob/master/misc/dn42-comgen.c).
|
||||
|
||||
```
|
||||
$ ruby bgp-community.rb --help
|
||||
@ -62,8 +62,9 @@ $ ruby bgp-community.rb -6 dn42-2.higgsboson.tk 1000 pfs
|
||||
There are two type of route origin: `region` and `country`
|
||||
|
||||
#### Region
|
||||
The range `41~70` are assgined to the region property.
|
||||
According to [this mail](https://lists.nox.tf/pipermail/dn42/2015-December/001259.html) these are the communities for route origin(region):
|
||||
The range `41-70` is assigned to the region property.
|
||||
The communities for route origin region were first defined in [December 2015](https://lists.nox.tf/pipermail/dn42/2015-December/001259.html) and further extended in [May 2022](https://groups.io/g/dn42/topic/91226190):
|
||||
|
||||
```
|
||||
(64511, 41) :: Europe
|
||||
(64511, 42) :: North America-E
|
||||
@ -85,8 +86,8 @@ According to [this mail](https://lists.nox.tf/pipermail/dn42/2015-December/00125
|
||||
```
|
||||
|
||||
#### Country
|
||||
The range `1000~1999` are assigned to the country property, we uses the country code from [ISO-3166-1 Numeric](https://github.com/lukes/ISO-3166-Countries-with-Regional-Codes/blob/master/all/all.csv)
|
||||
The `1000 + country code` are the communities for route origin(country).
|
||||
The range `1000-1999` is assigned to the country property. Here we use [ISO-3166-1 numeric](https://github.com/lukes/ISO-3166-Countries-with-Regional-Codes/blob/master/all/all.csv) country codes, adding `1000` to each value to get the country origin community:
|
||||
|
||||
```
|
||||
(64511, 1124) :: Canada
|
||||
(64511, 1156) :: China
|
||||
@ -114,7 +115,7 @@ just above `update_flags` in `dn42_export_filter` function
|
||||
- Otherwise, if you export routes across multiple regions within your network, you may be sending incorrect origin information to other peers.
|
||||
|
||||
|
||||
## Example configurations
|
||||
## Example configurations
|
||||
```
|
||||
# /etc/bird/peers4/tombii.conf
|
||||
protocol bgp tombii from dnpeers {
|
||||
@ -203,7 +204,7 @@ include "bird/local4.conf";
|
||||
#################
|
||||
|
||||
include "/etc/bird/filter4.conf";
|
||||
include "/etc/bird/community_filters.conf";
|
||||
include "/etc/bird/community_filters.conf";
|
||||
```
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user