11-41
By default, no ACL-based filter policy is configured for a peer or peer group.
Examples
# Apply the ACL6 2000 to filter routes advertised to the peer 1:2::3:4.
<Sysname> system-view
[Sysname] acl ipv6 number 2000
[Sysname-acl6-basic-2000] rule permit source 2001:1:: 64
[Sysname-acl6-basic-2000] quit
[Sysname] bgp 100
[Sysname-bgp] ipv6-family
[Sysname-bgp-af-ipv6] peer 1:2::3:4 filter-policy 2000 export
peer group (IPv6 address family view)
Syntax
peer
{
ipv4-address
|
ipv6-address
}
group
group-name
[
as-number
as-number
]
undo peer
ipv6-address group
group-name
View
IPv6 address family view
Default Level
2: System level
Parameters
group-name
: Name of an IPv4 or IPv6 peer group, a string of 1 to 47 characters.
ipv4-address
: IPv4 address of a peer.
ipv6-address
: IPv6 address of a peer.
as-number
: Specifies the AS number of the peer/peer group, in the range 1 to 4294967295.
Description
Use the
peer
group
command to add a peer to a configured peer group.
Use the
undo peer
group
command to delete a specified peer from a peer group.
By default, the peer does not belong to any peer group.
Examples
# Create a peer group named
test
and add the peer 1:2::3:4 to the peer group.
<Sysname> system-view
[Sysname] bgp 100
[Sysname-bgp] ipv6-family
[Sysname-bgp-af-ipv6] group test external
[Sysname-bgp-af-ipv6] peer 1:2::3:4 as-number 200
[Sysname-bgp-af-ipv6] peer 1:2::3:4 group test
peer ignore (IPv6 address family view)
Syntax
peer
{
ipv6-group-name | ipv6-address
}
ignore
undo peer
{
ipv6-group-name | ipv6-address
}
ignore