howto/Bird-communities.md
... ...
@@ -58,7 +58,29 @@ $ ruby bgp-community.rb -6 dn42-2.higgsboson.tk 1000 pfs
58 58
export where dn42_export_filter(3,25,34);
59 59
```
60 60
61
-See also this [mail](https://lists.nox.tf/pipermail/dn42/2015-December/001259.html) for communities for route origin.
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:
63
+```
64
+(64511, 41) :: Europe
65
+(64511, 42) :: North America-E
66
+(64511, 43) :: North America-C
67
+(64511, 44) :: North America-W
68
+(64511, 45) :: Central America
69
+(64511, 46) :: South America-E
70
+(64511, 47) :: South America-W
71
+(64511, 48) :: Africa-N (above Sahara)
72
+(64511, 49) :: Africa-S (below Sahara)
73
+(64511, 50) :: Asia-S (IN,PK,BD)
74
+(64511, 51) :: Asia-SE (TH,SG,PH,ID,MY)
75
+(64511, 52) :: Asia-E (JP,CN,KR)
76
+(64511, 53) :: Pacific
77
+```
78
+
79
+You need to add following lines to your config(s):
80
+- `define DN42_REGION = $VALUE_FROM_ABOVE` to your node's config (where OWNAS and OWNIP are set)
81
+- `if source = RTS_STATIC then bgp_community.add((64511, DN42_REGION));`
82
+just above `update_flags` in `dn42_export_filter` function
83
+
62 84
63 85
## Example configurations
64 86
```