Command Manual - Routing Protocol
Quidway S6500 Series Ethernet Switches Chapter 6 IP Routing Policy Configuration Commands
Huawei Technologies Proprietary
6-2
Example
# Configure AS 200 to be added in front of the original AS path in Route-policy.
[Quidway-route-policy] apply as-path 200
6.1.2 apply community
Syntax
apply community [ none | [ aa:nn ] [ no-export-subconfed | no-export |
no-advertise ]* [ additive ] ]
undo apply community
View
Route policy view
Parameter
aa:nn: Community number.
no-export-subconfed: Not sending matched route outside AS.
no-advertise: Not sending matched route to any peer.
no-export: Does not announce the route to the AS or the association outside, but can
advertises to other sub-ASs.
additive: Additional known community attribute.
none: Deleted route community attribute.
Description
Using apply community command, you can configure the set BGP community
attribute of Route-policy. Using undo apply community command, you can cancel the
set BGP community attribute.
By default, BGP community attribute is not set.
For the related commands, see ip community-list, if-match community-list,
route-policy, display bgp routing-table community.
Example
# Configure one Route-policy applycommunity, whose node serial number is 16 and
match mode is permit, and enter Route policy view to set match conditions and attribute
modification actions to be executed.
[Quidway] route-policy applycommunity permit node 16
[Quidway-route-policy] if-match as-path 8
[Quidway-route-policy] apply community no-export