Справочное Руководство для 3com 8807
548
C
HAPTER
28: IP R
OUTING
P
OLICY
C
ONFIGURATION
C
OMMANDS
[3Com-route-policy] apply as-path 200
apply community
Syntax
apply community [ aa:nn ]* [ [ no-export-subconfed | no-export |
no-advertise ] * [ additive ] | additive | none ]
no-advertise ] * [ additive ] | additive | none ]
undo apply community
View
Route policy view
Parameter
none: Deletes the community attribute of the route. This keyword can be input up
to 13 times.
to 13 times.
aa:nn: Community number.
no-export-subconfed: Does not send matched route outside the sub-AS.
no-advertise: Does not send matched route to any peer.
no-export: Does not advertise the route to outside the AS or the confederation,
but can advertises to other sub-Ass in the confederation.
but can advertises to other sub-Ass in the confederation.
additive: Community attribute of the additive route.
Description
Use the apply community command to configure the set BGP community
attribute of Route-policy.
attribute of Route-policy.
Use the undo apply community command to cancel the set BGP community
attribute.
attribute.
By default, BGP community attribute is not set.
If the matching conditions defined in the Route-policy are satisfied, the BGP
community attribute is set.
community attribute is set.
Related command: ip community-list, if-match community-list, route-policy,
display bgp routing-table community.
display bgp routing-table community.
Example
# Configure one Route-policy setcommunity, 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.
match mode is permit, and enter Route policy view to set match conditions and
attribute modification actions to be executed.
[SW8800] route-policy permit node 16
[3Com-route-policy] if-match as-path 8
[3Com-route-policy] apply community no-export
apply cost
Syntax
apply cost value