3Com S7902E Command Reference Manual - page 1652
1-40
Examples
# In BGP-VPNv4 subaddress family view, add peer 1.1.1.1 into peer group test.
[Sysname] bgp 100
[Sysname-bgp] group test external
[Sysname-bgp] ipv4-family vpnv4
[Sysname-bgp-af-vpnv4] peer 1.1.1.1 group test
# In BGP-L2VPN address family view, add peer 1.1.1.1 into peer group test.
[Sysname] bgp 100
[Sysname-bgp] group test external
[Sysname-bgp] l2vpn-family
[Sysname-bgp-af-l2vpn] peer 1.1.1.1 group test
peer ip-prefix (BGP-VPNv4 subaddress family view)
Syntax
peer
{
group-name
|
ip-address
}
ip-prefix
prefix-name
{
export
|
import
}
undo peer
{
group-name
|
ip-address
}
ip-prefix
prefix-name
{
export
|
import
}
View
BGP-VPNv4 subaddress family view
Default 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.
prefix-name
: Name of the IP prefix list, a string of 1 to 19 characters.
export
: Filters the routes to be advertised.
import
: Filters the received routes.
Description
Use the
peer ip-prefix
command to apply a route filtering policy based on IP prefix list to a peer or peer
group.
Use the
undo peer ip-prefix
command to remove the configuration.
By default, no route filtering policy based on IP prefix list is applied to a peer or peer group.
Examples
# In BGP-VPNv4 subaddress family view, specify to filter the received routes of a peer group using IP
prefix list list1.
[Sysname] bgp 100