Apply Cost - H3C MSR 20-20 Command Reference Manual

Msr 20/30/50 series routers
Hide thumbs Also See for MSR 20-20:
Table of Contents

Advertisement

Description
Related commands:
Examples

apply cost

Syntax
View
Parameters
Description
Related commands:
Examples
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 attributes to the original community
attribute of a matched BGP route.
Use the
apply community
for BGP routes.
Use the
undo apply community
No community attribute is set by default.
ip community-list, if-match community, route-policy.
# 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
[Sysname] route-policy setcommunity permit node 16
[Sysname-route-policy] if-match as-path 8
[Sysname-route-policy] apply community no-export
apply cost [ + | - ] value
undo apply cost
Routing policy view
+: Increases cost value.
+: Decreases cost value.
cost: Specifies a cost from 0 to 4294967295.
Use the
command to set a cost for routing information.
apply cost
Use the
undo apply cost
No cost is set for routing information by default.
if-match interface, if-match acl, if-match ip-prefix, if-match ip next-hop,
if-match cost, if-match tag, route-policy, apply ip-address next-hop, apply
local-preference, apply origin and apply tag.
# Create routing policy policy1 with node 10, matching mode as permit. If a route
matches the outbound interface Serial 2/0, set the cost for the route to 120.
command to set the specified community attribute
command to remove the apply clause.
command to remove the clause configuration.
1189

Advertisement

Table of Contents
loading

This manual is also suitable for:

Msr 20-21Msr 30-16Msr 30-20Msr 30-40Msr 30-60Msr 50 ... Show all

Table of Contents