Apply Community - H3C S7500E Series Command Manual

Hide thumbs Also See for S7500E Series:
Table of Contents

Advertisement

Command Manual – IPv4 Routing
H3C S7500E Series Ethernet Switches

6.1.3 apply community

Syntax
apply community { none | additive | { community-number&<1-16> | aa:nn&<1-16> |
internet | no-export-subconfed | no-export | no-advertise } * [ additive ] }
undo apply community
View
Routing policy view
Parameters
none: Removes community attributes of BGP routes.
community-number: Community sequence number, in the range 1 to 4294967295.
aa:nn: Community number; both aa and nn are in the range 0 to 65535.
&<1-16>: Indicates the argument before it can be entered up to 16 times.
internet: Sets the internet community attribute for matched BGP routes. Routes with
this attribute are advertised to all BGP peers.
no-export-subconfed: Sets the no-export-subconfed community attribute for
matched BGP routes. Routes with this attribute are not advertised out the sub
autonomous system.
no-advertise: Sets the no-advertise community attribute for matched BGP routes.
Routes with this attribute are not advertised to any peers.
no-export: Sets the no-export community attribute for matched BGP routes. Routes
with this attribute are not advertised out the autonomous system or confederation, but
can be advertised to other sub ASs in the confederation.
additive: Adds the specified community attribute to the original community attribute of
a matched BGP route.
Description
Use the apply community command to set the specified community attribute for BGP
routes.
Use the undo apply community command to remove the apply clause.
No community attribute is set by default.
Related commands: ip community-list, if-match community, route-policy.
Examples
# Create routing policy setcommunity with node 16 and matching mode as permit.
Set the no-export community attribute for BGP routes passing AS-path-ACL 8.
<Sysname> system-view
Chapter 6 Routing Policy Configuration Commands
6-3

Advertisement

Table of Contents
loading

Table of Contents