12-3
internet
: Sets the
internet
community attribute for BGP routes. Routes with this attribute can
be advertised to all BGP peers.
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.
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.
additive
: Adds the specified community attribute to the original community attribute of BGP
routes.
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 for BGP routes by default.
Related commands:
ip community-list
,
if-match community
,
route-policy
.
Examples
# Configure node 16 in
permit
mode of routing policy
setcommunity
: set the no-export
community attribute for BGP routes that match 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
Route policy view
Default Level
2: System level
Parameters
+
: Increases a cost value.
+
: Decreases a cost value.
cost
: Cost in the range 0 to 4294967295.
Description
Use the
apply cost
command to set a cost for routing information.
Use the
undo apply cost
command to remove the clause configuration.
No cost is set for routing information by default.