HP VPN Firewall Appliances Network Management Command Reference
1060
Hardware Com
p
atibilit
y
20-Gbps VPN firewall modules 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.
When used for BGP, the apply cost-type internal command sets the MED of a matching BGP route
learned from an IBGP peer to the IGP metric of the route's next hop before BGP advertises the route to an
EBGP peer.
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 IS-IS 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 internal
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.
Views
Routing policy view
Default command level
2: System level
Parameters
rt route-target: Sets the route target (RT) extended community attribute, which is a string of 3 to 21
characters.
soo site-of-origin: Sets the Site of Origin (SoO) extended community attribute, which is a string of 3 to 21
characters.
A route-target or site-of-origin has one of the following forms:
• 16-bit AS number: 32-bit self-defined number, for example, 101:3.
• 32-bit IP address: 16-bit self-defined number, for example, 192.168.122.15:1.