R3721-F3210-F3171-HP High-End Firewalls Network Management Command Reference-6PW101
969
Use undo apply cost to remove the clause configuration.
No cost is set for routing information by default.
Examples
# Configure node 10 in permit mode of routing policy policy1: set a cost of 120 for routing information
whose outgoing interface is GigabitEthernet 0/1.
<Sysname> system-view
[Sysname] route-policy policy1 permit node 10
[Sysname-route-policy] if-match interface gigabitethernet 0/1
[Sysname-route-policy] apply cost 120
apply cost-type
Syntax
apply cost-type { external | internal | type-1 | type-2 }
undo apply cost-type
View
Routing policy view
Default level
2: System level
Parameters
external: Sets the cost type to IS-IS external route.
internal: Sets the cost type to IS-IS internal route, or sets the MED value for a matching BGP route as the
IGP metric to the route's next hop.
type-1: Sets the cost type to Type-1 external route of OSPF.
type-2: Sets the cost type to Type-2 external route of OSPF.
Description
Use apply cost-type to set a cost type for routing information.
Use undo apply cost-type to remove the clause configuration.
No cost type is set for routing information by default.
The following matrix shows the keyword and firewall compatibility:
Ke
y
word F1000-A-EI/S-EI
F1000-E
F5000 Firewall module
external No Yes Yes Yes
internal No Yes No Yes
Used for IS-IS, the apply cost-type internal command sets the cost type of a matching IS-IS route as IS-IS
internal route.
Use for BGP, the apply cost-type internal command sets the MED of a matching BGP route learned from
an iBGP peer as the IGP metric to the route's next hop before BGP advertises the route to an eBGP peer.