3Com S7902E Command Reference Manual - page 1074
1-4
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.
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-address next-hop
,
apply local-preference
,
apply origin
,
apply tag
.
Examples
# Create routing policy
policy1
with node 10, matching mode as permit. If a route matches the
outbound interface VLAN-interface 10, set the cost for the route to 120.
[Sysname] route-policy policy1 permit node 10
[Sysname-route-policy] if-match interface vlan-interface 10
[Sysname-route-policy] apply cost 120
apply cost-type
Syntax
apply cost-type
{
external
|
internal
|
type-1
|
type
-
2
}
undo
apply cost-type
View
Route policy view
Default Level
2: System level
Parameters
external
: IS-IS external route.
internal
: IS-IS internal route.
type-1
: Type-1 external route of OSPF.
type-2
: Type-2 external route of OSPF.
Description
Use the
apply cost-type
command to set a cost type for routing information.
Use the
undo apply cost-type
command to remove the clause configuration.
No cost type is set for routing information by default.