BGP — community-list standard: tag outbound, filter on receive
- Routing
- Intermediate
- 14 min
- 3 steps
- Cisco IOS-style
Tag 192.168.1.0/24 with community 65001:100 outbound from R1. Define a community-list standard on R2 matching the same value and apply it inbound — the framework for community-driven routing policy.
Open this lab in your browser →
Free · no install · no account
Scenario
BGP communities are 32-bit tags carried as a path attribute. The printed form <asn>:<n> is convention; the wire form is just an integer. Communities don't *do* anything by themselves — they're read by route-maps that filter / set local-pref / set metric on match. This lab demonstrates the canonical pattern: 1. R1 tags outbound prefix with set community 65001:100. 2. R2 defines ip community-list standard PREFER permit 65001:100. 3. R2 binds an inbound route-map that matches that community and sets local-pref. After commit, R2 sees the community on R1's prefix and applies policy keyed on it. Standard community-lists match an exact community value (or list). Expanded community-lists (regex over the printed string) are not yet wired in netverdict — covered as a future engine slice.
Topology
2 × router · Cisco IOS-style
R1— routerR2— router
What you will do
On R1, define
route-map TAG-OUT permit 10withset community 65001:100and bind outbound to R2.On R2, define
ip community-list standard PREFER permit 65001:100.On R2, define
route-map MATCH-PREFER permit 10withmatch community PREFERandset local-preference 200. Bind inbound to R1.
Open this lab in your browser →
More labs on this topic
- Syntax delta — static route (Extreme EXOS)Beginner · 4 min
- Syntax delta — static route (Cisco IOS)Beginner · 4 min
- Syntax delta — static route (Juniper Junos)Beginner · 5 min
- Syntax delta — static route (VyOS)Beginner · 5 min
- Static routes — fix hub-and-spokeBeginner · 12 min
- Static routes — egress-interface form (point-to-point)Beginner · 8 min
This lab in other languages
BGP — community-list standard: outbound taggen, beim Empfang filternBGP — community-list standard: etiquetar a la salida, filtrar al recibirBGP — community-list standard: marcar na saída, filtrar ao receberBGP — community-list standard : tagger en sortie, filtrer en réceptionBGP — community-list standard: outbound tag, receive पर filterBGP — community-list standard:出方向打标,接收时过滤BGP — community-list standard: tagga in uscita, filtra in ricezioneBGP — community-list standard: outbound でタグ付け、受信時にフィルタBGP — community-list standard: outbound 에 태그, 수신 시 필터BGP — community-list standard: помечай исходящие, фильтруй на приёмеBGP — community-list standard: outbound etiketle, alımda filtreleBGP — community-list standard: gắn outbound, lọc khi nhận