H3C S7500 Series Ethernet Switches Command Manual

Table Of Contents
Command Manual – Routing Protocol
H3C S7500 Series Ethernet Switches Chapter 6 IP Routing Policy Configuration Commands
6-3
System View: return to User View with Ctrl+Z.
[H3C] route-policy 10 permit node 10
[H3C] route-policy setcommunity permit node 16
[H3C-route-policy] if-match as-path 8
[H3C-route-policy] apply community no-export
6.1.3 apply cost
Syntax
apply cost value
undo apply cost
View
Route policy view
Parameters
value: Cost value of a route. The value ranges from 0 to 4,294,967,295.
Description
Use the apply cost command to configure the cost of a route.
Use the undo apply cost command to cancel the apply clause.
By default, no apply clause is defined.
This command is one of the apply clauses of a route-policy used to set the cost of the
route passing the filtering.
Related commands: 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 next-hop, apply
local-preference, apply origin, apply tag.
Examples
# Define an apply clause to set the cost of a route to 120.
<H3C> system-view
System View: return to User View with Ctrl+Z.
[H3C] route-policy policy_10 permit node 12
%New sequence of this list
[H3C-route-policy] apply cost 120
6.1.4 apply cost-type
Syntax
apply cost-type [ internal | external ]