Next: Display BGP Routes by Community, Previous: Numbered BGP Community Lists, Up: BGP Communities Attribute
In Route Map (see Route Map), we can match or set BGP communities attribute. Using this feature network operator can implement their network policy based on BGP communities attribute.
Following commands can be used in Route Map.
This command perform match to BGP updates using community list word. When the one of BGP communities value match to the one of communities value in community list, it is match. When
exact-match
keyword is spcified, match happen only when BGP updates have completely same communities value specified in the community list.
This command manipulate communities value in BGP updates. When
none
is specified as communities value, it removes entire communities attribute from BGP updates. When community is notnone
, specified communities value is set to BGP updates. If BGP updates already has BGP communities value, the existing BGP communities value is replaced with specified community value. Whenadditive
keyword is specified, community is appended to the existing communities value.
This command remove communities value from BGP communities attribute. The word is community list name. When BGP route's communities value matches to the community list word, the communities value is removed. When all of communities value is removed eventually, the BGP update's communities attribute is completely removed.