318
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
# Apply a filtering policy to filter the routes received from the peer group test.
<Sysname> system-view
[Sysname] bgp 100
[Sysname-bgp] ipv4-family vpnv4
[Sysname-bgp-af-vpnv4] peer test filter-policy 2003 import
peer group
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.
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, VPLS address family view
Default level
2: System level
Parameters
ip-address: Specifies the IP address of the peer.
group-name: Specifies the name of the peer group, which is a case-sensitive string of 1 to 47 characters.
Examples
# In BGP-VPNv4 subaddress family view, add peer 1.1.1.1 into the peer group test.
<Sysname> system-view
[Sysname] bgp 100
[Sysname-bgp] group test external
[Sysname-bgp] peer 1.1.1.1 as-number 200
[Sysname-bgp] peer 1.1.1.1 group test
[Sysname-bgp] ipv4-family vpnv4
[Sysname-bgp-af-vpnv4] peer test enable
[Sysname-bgp-af-vpnv4] peer 1.1.1.1 group test
[Sysname-bgp-af-vpnv4] quit
# In BGP-L2VPN address family view, add peer 1.1.1.1 into the peer group test.
[Sysname-bgp] l2vpn-family
[Sysname-bgp-af-l2vpn] peer test enable
[Sysname-bgp-af-l2vpn] peer 1.1.1.1 group test
[Sysname-bgp-af-l2vpn] quit
# In VPLS address family view, add peer 1.1.1.1 into the peer group test.
[Sysname-bgp] vpls-family