307
Step Command
Remarks
BGP-VPN IPv6 unicast address
family view are the same as
those in BGP IPv6 unicast
address family view. For more
information, see
Layer 3—IP
Routing Configuration Guide.
6.
Enable IPv6 unicast route
exchange with the
specified peer or peer
group.
peer
{
group-name
|
ip-address
[
prefix-length
] }
enable
By default, BGP does not
exchange IPv6 unicast routes
with any peer.
7.
Redistribute the routes of
the local CE.
import-route
protocol
[ {
process-id
|
all-processes
}
[
allow-direct
|
med med-value
|
route-policy
route-policy-name
] * ]
A PE must redistribute the
routes of the local CE into its
VPN routing table so that it can
advertise them to the peer PE.
8.
(Optional.) Allow the local
AS number to appear in the
AS_PATH attribute of a
received route, and set the
maximum number of
repetitions.
peer
{
group-name
|
ipv6-address
[
prefix-length
] }
allow-as-loop
[
number
]
By default, BGP discards
incoming route updates that
contain the local AS number.
BGP detects routing loops by
examining AS numbers. In a
hub-spoke network where
EBGP is running between a PE
and a CE, the routing
information the PE advertises to
a CE carries the AS number of
the PE. Therefore, the route
updates that the PE receives
from the CE also include the AS
number of the PE. This causes
the PE to be unable to receive
the route updates. In this case,
you must configure this
command to allow routing loops.
2.
Configure the CE:
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.
Configure the PE as an
EBGP peer.
peer
{
group-name
|
ipv6-address
[
prefix-length
] }
as-number
as-number
By default, no BGP peers exist.
4.
Create the BGP IPv6
unicast address family and
enter its view.
address-family ipv6
[
unicast
]
By default, the BGP IPv6
unicast address family is not
created.
5.
Enable IPv6 unicast route
exchange with the
specified peer or peer
group.
peer
{
group-name
|
ip-address
[
prefix-length
] }
enable
By default, BGP does not
exchange IPv6 unicast routes
with any peer.
6.
(Optional.) Configure route
redistribution.
import-route
protocol
[ {
process-id
|
all-processes
}
[
allow-direct
|
med med-value
|
route-policy
route-policy-name
] * ]
A CE must advertise its VPN
routes to the connected PE so
that the PE can advertise them
to the peer CE.