home

Supported platforms

Vyatta documentation

Learn how to install, configure, and operate the Vyatta Network Operating System (Vyatta NOS) and Orchestrator, which help drive our virtual networking and physical platforms portfolio.

policy route route-map <map-name> rule <rule-num> set community <action>

Modifies the BGP communities attribute in a route.

set policy route route-map map-name rule rule-num set community { AA:NN | local-AS | no-advertise | no-export | internet | none }
delete policy route route-map map-name rule rule-num set community [ AA:NN | local-AS | no-advertise | no-export | internet | none ]
show policy route route-map map-name rule rule-num set community

When the additive keyword is not used, the specified community replaces the existing communities in the route.

map-name
The name of a defined route map.
rule-num
The number of a defined route map rule.
aa:nn
Specifies the community in 4-octet, AS-value format.
local-AS
Advertises communities in local AS only (NO_EXPORT_SUBCONFED).
no-advertise
Does not advertise this route to any peer (NO_ADVERTISE).
no-export
Does not advertise outside of this AS of confederation boundary (NO_EXPORT).
internet
Specifies the 0 symbolic Internet community.
none
Specifies no communities.

Configuration mode


policy {
    route-map map-name {
        rule rule-num {
            set {
                community 
                    AA:NN
                    local-AS 
                    no-advertise 
                    no-export 
                    internet
                    none
            }
        }
    }
}

Use the set form of this command to modify the BGP communities attribute in a route. When all the match conditions in the route map rule succeed, the communities attribute is modified as specified by the rule.

Use the delete form of this command to delete this statement from the route map rule.

Use the show form of this command to display set statement configuration for route maps.