Network labs Docs Open simulator →

BGP — community-list standard: tag outbound, filter on receive

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

What you will do

  1. On R1, define route-map TAG-OUT permit 10 with set community 65001:100 and bind outbound to R2.

  2. On R2, define ip community-list standard PREFER permit 65001:100.

  3. On R2, define route-map MATCH-PREFER permit 10 with match community PREFER and set local-preference 200. Bind inbound to R1.

Open this lab in your browser →

More labs on this topic

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