Apply Cost; Apply Cost-Type - H3C S7500E Series Command Manual

Hide thumbs Also See for S7500E Series:
Table of Contents

Advertisement

Command Manual – IPv4 Routing
H3C S7500E Series Ethernet Switches
[Sysname] route-policy setcommunity permit node 16
[Sysname-route-policy] if-match as-path 8
[Sysname-route-policy] apply community no-export

6.1.4 apply cost

Syntax
apply cost [ + | - ] value
undo apply cost
View
Routing policy view
Parameters
+: Increases cost value.
+: Decreases cost value.
cost: Specifies a cost from 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> system-view
[Sysname] route-policy policy1 permit node 10
[Sysname-route-policy] if-match interface vlan-interface 10
[Sysname-route-policy] apply cost 120

6.1.5 apply cost-type

Syntax
apply cost-type { external | internal | type-1 | type-2 }
undo apply cost-type
Chapter 6 Routing Policy Configuration Commands
6-4

Advertisement

Table of Contents
loading

Table of Contents