R3721-F3210-F3171-HP High-End Firewalls Network Management Command Reference-6PW101
968
aa:nn: Community number; both aa and nn are in the range of 0 to 65535.
&<1-16>: Indicates 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 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 the sub autonomous system.
additive: Adds the specified community attribute to the original community attribute of BGP routes.
Description
Use apply community to set the specified community attribute for BGP routes.
Use undo apply community to remove the apply clause.
No community attribute is set for BGP routes by default.
Related commands: ip community-list and if-match community.
Examples
# Configure node 16 in permit mode of routing policy setcommunity: Set the no-export community
attribute for BGP routes matching AS-PATH list 8.
<Sysname> system-view
[Sysname] route-policy setcommunity permit node 16
[Sysname-route-policy] if-match as-path 8
[Sysname-route-policy] apply community no-export
apply cost
Syntax
apply cost [ + | - ] value
undo apply cost
View
Routing policy view
Default level
2: System level
Parameters
+: Increases a cost value.
-: Decreases a cost value.
value: Cost in the range of 0 to 4294967295.
Description
Use apply cost to set a cost for routing information.