no-export
: Sets the NO_EXPORT community attribute for BGP routes. Routes with this attribute
cannot be advertised out of 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 of 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
to 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.
Use
undo apply cost
to remove the clause configuration.
No cost is set for routing information by default.
Examples
# Configure node 10 in
permit
mode of routing policy
policy1
: set a cost of 120 for routing
information whose outbound interface is Vlan-interface 20.
<Sysname> system-view
[Sysname] route-policy policy1 permit node 10
[Sysname-route-policy] if-match interface Vlan-interface 20
411