H3C S7500 Series Ethernet Switches Command Manual

Table Of Contents
Command Manual – Routing Protocol
H3C S7500 Series Ethernet Switches Chapter 6 IP Routing Policy Configuration Commands
6-2
<H3C> system-view
System View: return to User View with Ctrl+Z.
[H3C] route-policy 10 permit node 10
[H3C-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
Parameters
none: Specifies no community attribute.
aa:nn: Community number. The value ranges of aa and nn are both from 1 to 65535.
no-export-subconfed: Specifies not to advertise matched routes out of the specified
sub AS.
no-advertise: Specifies not to advertise matched routes to any peer entities.
no-export: Specifies not to advertise routes out of the specified sub AS or federation,
but to send to other sub ASs in the federation.
additive: Specifies community attributes of additional routes.
Description
Use the apply community command to set BGP community attributes in a
route-policy.
Use the undo apply community command to remove the setting.
By default, BGP community attributes are not set.
If the route-policy matching conditions are met, BGP community attributes will be
changed by the apply community command.
Related commands: ip community-list, if-match community-list, route-policy,
display bgp routing-table community.
Examples
# Create a route-policy named setcommunity and set its node sequence number as
16 and match mode as permit. Enter route policy view and set matching conditions and
the actions to be executed after the matching conditions are met.
<H3C> system-view