310
Step Command
Remarks
1.
Enter system view.
system-view
N/A
2.
Enter BGP instance view.
bgp
as-number
[
instance
instance-name
]
[
multi-session-thread
]
N/A
3.
Enter BGP VPNv6 address
family view.
address-family vpnv6
N/A
4.
Configure filtering of
advertised routes.
filter-policy
{
ipv6
-
acl-number
|
prefix-list
ipv6-prefix-name
}
export
[
protocol process-id
]
By default, BGP does not filter
advertised routes.
5.
Configure filtering of
received routes.
filter-policy
{
ipv6-acl-number
|
prefix-list ipv6-prefix-name
}
import
By default, BGP does not filter
received routes.
6.
Advertise the COMMUNITY
attribute to a peer or peer
group.
peer
{
group-name
|
ipv4-address
[
mask-length
] }
advertise-community
By default, BGP does not
advertise the COMMUNITY
attribute to any peers or peer
groups.
7.
Allow the local AS number to
appear in the AS_PATH
attribute of routes received
from the peer, and set the
maximum number of
repetitions.
peer
{
group-name
|
ipv4-address
[
mask-length
] }
allow-as-loop
[
number
]
By default, BGP discards route
updates that contain the local AS
number.
8.
Filter routes received from or
advertised to a peer or peer
group based on an AS_PATH
list.
peer
{
group-name
|
ipv4-address
[
mask-length
] }
as-path-acl
as-path-acl-number
{
export
|
import
}
By default, no AS filtering list is
applied to a peer or peer group.
9.
Configure ACL-based route
filtering for the specified peer
or peer group.
peer
{
group-name
|
ipv4-address
[
mask-length
] }
filter-policy
ipv6-acl-number
{
export
|
import
}
By default, no ACL-based route
filtering is configured.
10.
Configure IPv6 prefix
list-based route filtering for
the specified peer or peer
group.
peer
{
group-name
|
ipv4-address
[
mask-length
] }
prefix-list
ipv6-prefix-name
{
export
|
import
}
By default, no IPv6 prefix
list-based route filtering is
configured.
11.
Specify a preferred value for
routes received from the
peer or peer group.
peer
{
group-name
|
ipv4-address
[
mask-length
] }
preferred-value
value
The default preferred value is 0.
12.
Configure BGP updates sent
to the peer to carry only
public AS numbers.
peer
{
group-name
|
ipv4-address
[
mask-length
] }
public-as-only
By default, a BGP update carries
both public and private AS
numbers.
13.
Apply a routing policy to
routes advertised to or
received from the peer or
peer group.
peer
{
group-name
|
ipv4-address
[
mask-length
] }
route-policy
route-policy-name
{
export
|
import
}
By default, no routing policy is
applied for a peer.
14.
Enable route target filtering
for received BGP VPNv6
routes.
policy vpn-target
By default, route target filtering is
enabled for received VPNv6
routes. Only VPNv6 routes whose
export route target attribute
matches local import route target
attribute are added to the routing
table.
15.
Configure the local PE as the
RR and specify the peer as
peer
{
group-name
|
ipv4-address
[
mask-length
] }
reflect-client
By default, no RR or client is
configured.