328
[Sysname-bgp-vpn1] quit
[Sysname-bgp] ipv4-family vpnv4
[Sysname-bgp-af-vpnv4] peer ebgp vpn-instance vpn1 enable
[Sysname-bgp-af-vpnv4] peer 1.1.1.1 vpn-instance vpn1 group ebgp
peer vpn-instance route-policy import
Description
Use the peer vpn-instance route-policy import command to specify the routing policy to be applied to
VPNv4 routes received from a nested VPN peer or peer group.
Use the undo peer vpn-instance route-policy import command to restore the default.
By default, no routing policy is applied.
A routing policy for a peer and a routing policy for the peer group to which the peer belongs are of the
same priority. The one configured last takes effect.
This configuration takes effect only after the nested VPN function is enabled.
Deleting the VPN instance to which a peer belongs will also delete the configuration of this command.
Syntax
peer { group-name | peer-address } vpn-instance vpn-instance-name route-policy route-policy-name
import
undo peer { group-name | peer-address } vpn-instance vpn-instance-name route-policy route-policy-name
import
View
BGP-VPNv4 subaddress family view
Default level
2: System level
Parameters
group-name: Specifies the name of the peer group, which is a case-sensitive string of 1 to 47 characters.
peer-address: Specifies the IP address of the peer, in dotted decimal notation.
vpn-instance-name: Specifies the name of the VPN instance, which is a case-sensitive string of 1 to 31
characters.
route-policy-name: Specifies the name of the routing policy to be applied, which is a case-sensitive string
of 1 to 19 characters.
Examples
# Specify to apply routing policy comtest to VPNv4 routes received from peer group ebgp.
<Sysname> system-view
[Sysname] bgp 10
[Sysname-bgp] ipv4-family vpnv4
[Sysname-bgp-af-vpnv4] peer ebgp vpn-instance vpn1 route-policy comtest import