BGP Communities
Complete reference for BGP community strings for AS203314 traffic engineering. Internal communities for route origin, PoP, region tagging, and control communities for blackhole, propagation, prepending. and path manipulation.
AS203314 BGP Communities
AS203314 uses BGP Large Communities to label route origins and accept customer routing controls. Internal tags describe received routes; control communities request an export action.
Community System Overview
Quick Reference
| Category | Community | Purpose | Details |
|---|---|---|---|
| Origin | 203314:110:XX | Route source type | See Origin → |
| PoP | 203314:120:XXX | Learned at PoP | See PoP-Based → |
| PoP Pass | 203314:125:XXX | Passed through PoP | See PoP-Based → |
| Region | 203314:130:XX | Learned in region | See Region-Based → |
| Region Pass | 203314:135:XX | Passed through region | See Region-Based → |
| Blackhole | 203314:0:666 | Do not announce | See Blackhole → |
| No Upstream | 203314:1:0 | Do not send to upstream | See Propagation → |
| No Peering | 203314:1:1 | Do not send to peering | See Propagation → |
| No Customer | 203314:1:2 | Do not send to downstream | See Propagation → |
| No Cross-Region | 203314:2:1 | Keep within region | See Geo Restrictions → |
| No Cross-PoP | 203314:2:2 | Keep within PoP | See Geo Restrictions → |
| No Region | 203314:201:XX | Exclude region | See Geo Restrictions → |
| No PoP | 203314:202:XXX | Exclude PoP | See Geo Restrictions → |
| Prepend 1x | 203314:220:1 | Prepend AS 1 time | See Path Prepending → |
| Prepend 2x | 203314:220:2 | Prepend AS 2 times | See Path Prepending → |
| Prepend 3x | 203314:220:3 | Prepend AS 3 times | See Path Prepending → |
| Prepend 4x | 203314:220:4 | Prepend AS 4 times | See Path Prepending → |
| Prepend 5x | 203314:220:5 | Prepend AS 5 times | See Path Prepending → |
Community Categories
Internal Communities
Route origin types, PoP locations, and region codes for identifying where routes are learned.
Control Communities
Traffic engineering communities for blackhole, propagation control, and path prepending.
PoP Codes
3-digit codes for each Point of Presence used in location-based communities.
Region Codes
2-digit geographic region codes for area-based routing policies.
Usage Examples
Common Scenarios
- Keep traffic local:
bgp_large_community.add((203314, 2, 1)); # Do not send to other regions- Deprioritize upstream:
bgp_large_community.add((203314, 220, 3)); # Prepend 3x to upstream routes- Exclude specific PoP:
bgp_large_community.add((203314, 202, 253)); # Do not send to AMSConfiguration Examples (JunOS / BIRD2)
These examples attach AS203314 large communities to prefixes announced to us.
Export Policy Safety Default (Strongly Recommended)
These are export policies. End BIRD2 filters with reject; and JunOS policies with term REJECT-ALL then reject so unmatched routes are not exported.
Documentation Prefixes
The examples use RFC 5737 and RFC 3849 documentation prefixes, including 203.0.113.0/24 and 2001:db8::/32. Substitute only prefixes you are authorized to announce.
Keep traffic local (203314:2:1)
set policy-options community HATS-NO-CROSS-REGION members large:203314:2:1
set policy-options policy-statement EXPORT-TO-HATS term LOCAL from route-filter 203.0.113.0/24 exact
set policy-options policy-statement EXPORT-TO-HATS term LOCAL then community add HATS-NO-CROSS-REGION
set policy-options policy-statement EXPORT-TO-HATS term LOCAL then accept
set policy-options policy-statement EXPORT-TO-HATS term REJECT-ALL then rejectDeprioritize a backup prefix (203314:220:3)
set policy-options community HATS-PREPEND-3X members large:203314:220:3
set policy-options policy-statement EXPORT-TO-HATS term BACKUP from route-filter 203.0.113.0/24 exact
set policy-options policy-statement EXPORT-TO-HATS term BACKUP then community add HATS-PREPEND-3X
set policy-options policy-statement EXPORT-TO-HATS term BACKUP then accept
set policy-options policy-statement EXPORT-TO-HATS term REJECT-ALL then rejectIPv6 variant
set policy-options community HATS-NO-CROSS-REGION members large:203314:2:1
set policy-options policy-statement EXPORT-TO-HATS term LOCAL-V6 from route-filter 2001:db8:203:113::/48 exact
set policy-options policy-statement EXPORT-TO-HATS term LOCAL-V6 then community add HATS-NO-CROSS-REGION
set policy-options policy-statement EXPORT-TO-HATS term LOCAL-V6 then accept
set policy-options policy-statement EXPORT-TO-HATS term REJECT-ALL then reject