R3102-R3103-HP 6600/HSR6600 Routers MPLS Command Reference Guide
318
[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)
Use peer filter-policy to apply a filtering policy to a peer or peer group.
Use undo peer filter-policy to remove the configuration.
Syntax
peer { group-name | ip-address } filter-policy acl-number { export | import }
undo peer { group-name | ip-address } filter-policy [ acl-number ] { export | import }
Default
No filtering policy is applied to a peer or peer group.
Views
BGP-VPNv4 subaddress family view
Default command level
2: System level
Parameters
group-name: Name of the peer group, a case-sensitive string of 1 to 47 characters.
ip-address: IP address of the peer.
acl-number: IP ACL number in the range of 2000 to 3999.
export: Filters the routes to be advertised to the specified peer or peer group.
import: Filters the routes received from the specified peer or peer group.
Examples
# In BGP-VPNv4 subaddress family view, apply a filtering policy to filter the routes received from peer
group test.
<Sysname> system-view
[Sysname] bgp 100
[Sysname-bgp] ipv4-family vpnv4
[Sysname-bgp-af-vpnv4] peer test filter-policy 2003 import
Related commands
peer as-path-acl










