
319
[Sysname-bgp-af-vpls] peer test enable
[Sysname-bgp-af-vpls] peer 1.1.1.1 group test
peer ip-prefix (BGP-VPNv4 subaddress family view)
Description
Use the
peer ip-prefix
command to apply a route filtering policy based on IP prefix list to a peer or peer
group.
Use the
undo peer ip-prefix
command to remove the configuration.
By default, no route filtering policy based on IP prefix list is applied to a peer or peer group.
Syntax
peer
{
group-name
|
ip-address
}
ip-prefix
prefix-name
{
export
|
import
}
undo peer
{
group-name
|
ip-address
}
ip-prefix
prefix-name
{
export
|
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.
ip-address
: Specifies the IP address of the peer.
prefix-name
: Specifies the name of the IP prefix list, which is a string of 1 to 19 characters.
export
: Filters the routes to be advertised.
import
: Filters the received routes.
Examples
# In BGP-VPNv4 subaddress family view, filter the routes received from peer group
group1
by using IP
prefix list
list1
.
<Sysname> system-view
[Sysname] bgp 100
[Sysname-bgp] ipv4-family vpnv4
[Sysname-bgp-af-vpnv4] peer group1 ip-prefix list1 import
peer label-route-capability (BGP view, BGP VPN instance view)
Description
Use the
peer label-route-capability
command to enable the exchange of labeled routes with an IPv4 peer
or peer group.
Use the
undo
peer label-route-capability
command to disable the capability.
By default, the device does not advertise labeled routes to an IPv4 peer.
According to the networking scheme, the
peer label-route-capability
command enables the exchange of
labeled IPv4 routes with:
•
ASBR PEs in the same AS.