Command Manual – Routing Protocol 
Quidway S8500 Series Routing Switches  Chapter 6  IP Routing Policy Configuration Commands
 
Huawei Technologies Proprietary 
6-4 
6.1.4  apply cost-type 
Syntax 
apply cost-type [ internal | external ] 
undo apply cost-type 
View 
Route policy View 
Parameter 
internal: For BGP, it indicates when a BGP peer advertises routes to its EBGP peer, the 
peer uses the cost value of IGP as the MED value of BGP. For IS-IS, it indicates the 
internal cost. For other protocols, it is invalid. 
external: It is only valid for IS-IS and it indicates external cost type of IS-IS.  
Description 
Use the apply cost-type command to configure the route cost type of route information. 
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. 
[Quidway-route-policy] apply cost-type internal 
6.1.5  apply ip next-hop 
Syntax 
apply ip next-hop ip-address 
undo apply ip next-hop 
View 
Route policy view 
Parameter 
ip-address: The next-hop address.  
Description 
Use the apply ip next-hop command to configure the next hop address in the route 
information.  
Use the undo apply ip next-hop command to cancel the Apply sub-statement.