F3215-HP Load Balancing Module Network Management Command Reference-6PW101
545
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 { 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
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.
Examples
# Create node 10 in permit mode of routing policy policy1. If a route has a tag of 8, set the cost type for
the route to OSPF internal route.
<Sysname> system-view
[Sysname] route-policy policy1 permit node 10
[Sysname-route-policy] if-match tag 8
[Sysname-route-policy] apply cost-type type-1
apply extcommunity
Use apply extcommunity to apply the specified RT extended community attribute to BGP routes.
Use undo apply extcommunity to remove the clause configuration.
Syntax
apply extcommunity { { rt route-target }&<1-16> [ additive ] | soo site-of-origin additive }
undo apply extcommunity
Default
No RT extended community attribute is set for BGP routing information.