View
Parameter
Description
Related command:
Example
peer group
Syntax
View
Parameter
Description
Example
undo peer { group-name | ip-address } filter-policy acl-number { export | import }
BGP-VPNv4 subaddress family view
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.
Use the
peer filter-policy
group.
Use the
undo peer filter-policy
By default, no filtering policy is applied to a peer or peer group.
peer as-path-acl (BGP-VPNv4 subaddress family view).
# 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 ip-address group group-name
undo peer ip-address group group-name
BGP-VPNv4 subaddress family view/BGP-L2VPN address family view
group-name: Name of the peer group, a string of 1 to 47 characters.
ip-address: IP address of the peer.
Use the
command to add a peer into an existing peer group.
peer group
Use the
undo peer group
# 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
command to apply a filtering policy to a peer or peer
command to remove the configuration.
command to remove a peer from a peer group.
1701