Command Manual - Routing Protocol
Quidway S3500 Series Ethernet Switches Chapter 5 IP Routing Policy Configuration Commands
Huawei Technologies Proprietary
5-3
5.1.3 apply cost
Syntax
apply cost value
undo apply cost
View
Route policy view
Parameter
value: Specify the route cost value of route information.
Description
Using apply cost command, you can configure the route cost value of route
information. This command is one attribute apply sub-statements of Route-policy.
Using undo apply cost command, you can cancel the apply sub-statement.
For the related commands, see 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 and apply tag.
Example
# Define one apply sub-statement. When it is used for setting route information attribute,
it sets the route metric value of route information as 120.
[Quidway-route-policy] apply cost 120
5.1.4 apply cost-type
Syntax
apply cost-type [ internal | external ]
undo apply cost-type
View
Route policy View
Parameter
internal: Use the cost type of IGP as MED value of BGP to advertise route to EBGP
peer.
external: external cost type of IS-IS. S3500 series don’t support this parameter at
present.