Switch 7700 Command reference Guide, v2.0

Table Of Contents
IP Routing Policy Configuration Commands 229
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.
[SW7700-route-policy]apply cost 120
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.
Description
Use the apply cost-type command to configure the route cost type of route
information. This command is one attribute apply sub-statements of
Route-policy.
Use the undo apply cost-type command to cancel the apply sub-statement.
By default, route cost type is not set.
Example
Set the cost type of IGP as MED value of BGP to advertise route to EBGP peer.
[SW7700-route-policy]apply cost-type internal
apply ip next-hop Syntax
apply ip next-hop ip_address
undo apply ip next-hop ip_address
View
Route policy view
Parameter
ip_address: The next-hop address. And two next-hop addresses can be specified
at most.
Description
Use the apply ip next-hop command to configure the next hop address of
route information. This command is one attribute apply sub-statements of
Route-policy.
Use the undo apply ip next-hop command to cancel the apply
sub-statement.