6-1
6
Route Policy Configuration Commands
The common configuration commands of route policy are applicable to both IPv4 and IPv6.
Common Route Policy Configuration Commands
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.
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 tag
.
Examples
# Configure node 10 in permit mode of route policy
policy1
: set a cost of 120 for routing information
whose outbound interface is Vlan-interface 10.
<Sysname> system-view
[Sysname] route-policy policy1 permit node 10
[Sysname-route-policy] if-match interface Vlan-interface 10
Summary of Contents for E4510-48G
Page 109: ...2 18 Sysname interface bridge aggregation 1 Sysname Bridge Aggregation1 shutdown ...
Page 309: ...6 4 Sysname interface vlan interface 1 Sysname Vlan interface1 ip address dhcp alloc ...
Page 324: ...8 3 Sysname interface vlan interface 1 Sysname Vlan interface1 ip address bootp alloc ...
Page 530: ...2 5 Sysname mvlan 100 subvlan 10 to 15 ...
Page 739: ...8 15 Sysname system view Sysname port security trap addresslearned ...
Page 819: ...13 11 Sysname system view Sysname public key peer key2 import sshkey key pub ...
Page 914: ...5 17 Sysname reset oam ...
Page 1064: ...5 30 Slot 2 Set next configuration file successfully ...
Page 1325: ...21 13 Examples Redirect to member 2 Sysname irf switch to 2 Sysname Slave 2 ...