
18
export route-policy
Description
Use the
export route-policy
command to apply an export routing policy to a VPN instance.
Use the
undo export route-policy
command to remove the application.
By default, no policy is applied to filter the routes to be advertised.
You can specify an export routing policy when the VPN route advertisement control provided by the
extended community attributes is not enough.
•
An export routing policy specified in IPv4 VPN view is applicable to only the IPv4 VPN.
•
An export routing policy specified in IPv4 VPN view takes precedence over that specified in VPN
instance view. If you specify an export routing policy in IPv4 VPN view and VPN instance view, the
policy specified in IPv4 VPN view is applied to the IPv4 VPN.
Syntax
export route-policy
route-policy
undo export route-policy
View
VPN instance view, IPv4 VPN view
Default level
2: System level
Parameters
route-policy
: Specifies the name of the export routing policy for the VPN instance, which is a string of 1 to
63 characters.
Examples
# Apply export routing policy
poly-1
to VPN instance
vpn1
.
<Sysname> system-view
[Sysname] ip vpn-instance vpn1
[Sysname-vpn-instance-vpn1] export route-policy poly-1
ext-community-type
Description
Use the
ext-community-type
command to configure the type code of an OSPF extended community
attribute.
Use the
undo ext-community-type
command to restore the default.
By default, the type codes for the OSPF extended community attributes of Domain ID, Router ID, and
Route Type are 0x0005, 0x0107, and 0x0306, respectively.
Syntax
ext-community-type
{
domain-id
type-code1
|
router-id
type-code2
|
route-type
type-code3
}
undo ext-community-type
{
domain-id
|
router-id
|
route-type
}