Concepts / BGP

BGP

BGP community

Also called community, communities, 65001:100, community-list, set community, no-export

A tag that travels with a BGP route, written AS:value, which does nothing until a policy reads it.

A tag set in one place, read in another
A tag set in one place, read in another

One router tags the route on the way in; a later router's policy matches the tag to decide what to do with it. The tag does nothing by itself.

A BGP community is a tag that travels with a route, written AS:value. It does nothing until a policy reads it. One router sets it on import (set community 65001:100 for "learned from a customer"); later policies match it (match community) to decide what to announce where, without listing prefixes. Providers publish communities their customers can send, such as "do not announce to peers". Well-known ones: no-export, no-advertise.

See it on real machines

Read next

Learn it on real machines.

Every lab is a small network of real Linux machines in your browser. Sign in with Google or email to start.

Start this lab