F3726, F3211, F3174, R5135, R3816-HP Firewalls and UTM Devices Network Management Command Reference-6PW100

Table Of Contents
1058
Examples
# Configure node 10 in permit mode of routing policy policy1. Set a cost of 120 for routing information
whose outbound 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
Use apply cost-type to set a cost type for routing information.
Use undo apply cost-type to remove the clause configuration.
Syntax
apply cost-type { external | internal | type-1 | type-2 }
undo apply cost-type
Default
No cost type is set for routing information.
Views
Routing policy view
Default command 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 to the
IGP metric of the route's next hop.
The following matrix shows the keywords external, internal and firewalls and UTM compatibility:
Hardware Ke
y
words com
p
atible
F1000-A-EI/F1000-S-EI No
F1000-E No
F5000 Yes
Firewall module No
U200-A No
U200-S No
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.
Usage guidelines
When used for IS-IS, the apply cost-type internal command sets the cost type of a matching IS-IS route to
IS-IS internal route.