_Sidebar.md
... ...
@@ -2,6 +2,7 @@
2 2
* [Getting Started](/howto/Getting-Started)
3 3
* [Registry Authentication](/howto/Registry-Authentication)
4 4
* [Address Space](/howto/Address-Space)
5
+ * [BGP communities](/howto/Bird-communities)
5 6
* [FAQ](/FAQ)
6 7
7 8
* How-To
howto/Bird-communities.md
... ...
@@ -59,7 +59,11 @@ $ ruby bgp-community.rb -6 dn42-2.higgsboson.tk 1000 pfs
59 59
```
60 60
61 61
### Route Origin
62
-According to [this mail](https://lists.nox.tf/pipermail/dn42/2015-December/001259.html) these are the communities for route origin:
62
+There are two type of route origin: `region` and `country`
63
+
64
+#### Region
65
+The range `41~70` are assgined to the region property.
66
+According to [this mail](https://lists.nox.tf/pipermail/dn42/2015-December/001259.html) these are the communities for route origin(region):
63 67
```
64 68
(64511, 41) :: Europe
65 69
(64511, 42) :: North America-E
... ...
@@ -73,7 +77,33 @@ According to [this mail](https://lists.nox.tf/pipermail/dn42/2015-December/00125
73 77
(64511, 50) :: Asia-S (IN,PK,BD)
74 78
(64511, 51) :: Asia-SE (TH,SG,PH,ID,MY)
75 79
(64511, 52) :: Asia-E (JP,CN,KR)
76
-(64511, 53) :: Pacific
80
+(64511, 53) :: Pacific&Oceania (AU,NZ,FJ)
81
+(64511, 54) :: Antarctica
82
+(64511, 55) :: Asia-N (RU)
83
+(64511, 56) :: Asia-W (IR,TR,UAE)
84
+(64511, 57) :: Central Asia (AF,UZ,KZ)
85
+```
86
+
87
+#### Country
88
+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)
89
+The `1000 + country code` are the communities for route origin(country).
90
+```
91
+(64511, 1124) :: Canada
92
+(64511, 1156) :: China
93
+(64511, 1158) :: Taiwan
94
+(64511, 1250) :: France
95
+(64511, 1276) :: Germany
96
+(64511, 1344) :: Hong Kong
97
+(64511, 1392) :: Japan
98
+(64511, 1528) :: Netherlands
99
+(64511, 1578) :: Norway
100
+(64511, 1643) :: Russian Federation
101
+(64511, 1702) :: Singapore
102
+(64511, 1756) :: Switzerland
103
+(64511, 1826) :: United Kingdom
104
+(64511, 1840) :: United States of America
105
+# etc. Please follow the ISO-3166-1 Numeric standard
106
+# https://github.com/lukes/ISO-3166-Countries-with-Regional-Codes/blob/master/all/all.csv
77 107
```
78 108
79 109
You need to add following lines to your config(s):