317
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.
Examples
# Configure peer 1.1.1.1 and enable the peer for the BGP-VPNv4 subaddress family.
<Sysname> system-view
[Sysname] bgp 100
[Sysname-bgp] peer 1.1.1.1 as-number 100
[Sysname-bgp] ipv4-family vpnv4
[Sysname-bgp-af-vpnv4] peer 1.1.1.1 enable
# Configure peer 1.1.1.1 and enable the peer for the BGP-L2VPN address family.
<Sysname> system-view
[Sysname] bgp 100
[Sysname-bgp] peer 1.1.1.1 as-number 100
[Sysname-bgp] l2vpn-family
[Sysname-bgp-af-l2vpn] peer 1.1.1.1 enable
# Configure peer 1.1.1.1 and enable the peer for the VPLS address family.
<Sysname> system-view
[Sysname] bgp 100
[Sysname-bgp] peer 1.1.1.1 as-number 100
[Sysname-bgp] vpls-family
[Sysname-bgp-af-vpls] peer 1.1.1.1 enable
peer filter-policy (BGP-VPNv4 subaddress family view)
Description
Use the peer filter-policy command to apply a filtering policy to a peer or peer group.
Use the undo peer filter-policy command to remove the configuration.
By default, no filtering policy is applied to a peer or peer group.
Related commands: peer as-path-acl.
Syntax
peer { group-name | ip-address } filter-policy acl-number { export | import }
undo peer { group-name | ip-address } filter-policy acl-number { 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.
acl-number: Specifies the ACL number, ranging from 2000 to 3999.