1701
undo peer { group-name | ip-address } filter-policy acl-number { export | import }
View BGP-VPNv4 subaddress family view
Parameter group-name: Name of the peer group, a string of 1 to 47 characters.
ip-address: IP address of the peer.
acl-number: ACL number, in the range 2000 to 3999.
export: Filters the routes to be advertised.
import: Filters the received routes.
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 command: peer as-path-acl (BGP-VPNv4 subaddress family view).
Example # Apply a filtering policy to filter the received routes of a peer group.
<Sysname> system-view
[Sysname] bgp 100
[Sysname-bgp] ipv4-family vpnv4
[Sysname-bgp-af-vpnv4] peer test filter-policy 2003 import
peer group
Syntax peer ip-address group group-name
undo peer ip-address group group-name
View BGP-VPNv4 subaddress family view/BGP-L2VPN address family view
Parameter group-name: Name of the peer group, a string of 1 to 47 characters.
ip-address: IP address of the peer.
Description Use the
peer group command to add a peer into an existing peer group.
Use the
undo peer group command to remove a peer from a peer group.
Example # In BGP-VPNv4 subaddress family view, add peer 1.1.1.1 into peer group test.
<Sysname> system-view
[Sysname] bgp 100
[Sysname-bgp] group test external