F3726, F3211, F3174, R5135, R3816-HP Firewalls and UTM Devices Network Management Command Reference-6PW100

Table Of Contents
1056
Hardware Command com
p
atible
U200-S No
Examples
# Configure node 10 in permit mode of routing policy policy1. Remove the COMMUNITY attributes
specified in community list 1 from BGP routes matching AS path list 1.
<Sysname> system-view
[Sysname] route-policy policy1 permit node 10
[Sysname-route-policy] if-match as-path 1
[Sysname-route-policy] apply comm-list 1 delete
apply community
Use apply community to set the specified COMMUNITY attribute for BGP routes.
Use undo apply community to remove the apply clause.
Syntax
apply community { none | additive | { community-number&<1-16> | aa:nn&<1-16> | internet |
no-advertise | no-export | no-export-subconfed } * [ additive ] }
undo apply community
Default
No COMMUNITY attribute is set for BGP routes.
Views
Routing policy view
Default command level
2: System level
Parameters
none: Removes the COMMUNITY attributes of BGP routes.
community-number: Community sequence number, in the range of 1 to 4294967295.
aa:nn: Community number. Both aa and nn are in the range of 0 to 65535.
&<1-16>: Indicates that the argument before it can be entered up to 16 times.
internet: Sets the INTERNET community attribute for BGP routes. Routes with this attribute can be
advertised to all BGP peers.
no-advertise: Sets the NO_ADVERTISE community attribute for BGP routes. Routes with this attribute
cannot be advertised to any peers.
no-export: Sets the NO_EXPORT community attribute for BGP routes. Routes with this attribute cannot be
advertised out of the autonomous system or confederation, but can be advertised to other sub ASs in the
confederation.
no-export-subconfed: Sets the NO_EXPORT_SUBCONFED community attribute for BGP routes. Routes
with this attribute cannot be advertised out of the sub autonomous system.
additive: Adds the specified COMMUNITY attribute to the original COMMUNITY attribute of BGP
routes.