382
Step Command
Remarks
5.
Configure route targets for the
auto-discovery VSI.
vpn-target
vpn-target
&<1-8> [
both
|
export-extcommunity
|
import-extcommunity
]
By default, no route targets are
configured for the auto-discovery
VSI.
6.
(Optional.) Reference a PW
class.
pw-class
class-name
By default, no PW class is
referenced.
7.
(Optional.) Reference a tunnel
policy.
tunnel-policy
tunnel-policy-name
By default, no tunnel policy is
referenced.
8.
Use BGP to create a PW to an
automatically discovered
remote PE and enter
auto-discovery VSI BGP
signaling view.
signaling-protocol
bgp
By default, no signaling protocol is
specified.
9.
Create a local site and enter
site view.
site
site-id
[
range
range-value
]
[
default-offset
default-offset
]
By default, no local site is created.
Configuring a BGP auto-discovery LDP PW
Before you perform this configuration, enable MPLS LDP on interfaces and globally. For details, see
"
To configure a BGP auto-discovery LDP PW, perform the following configurations on PEs:
•
Configure BGP to advertise VPLS PE information.
•
Use LDP to create a PW.
Configuring BGP to advertise VPLS PE information
Step Command
Remarks
1.
Enter system view.
system-view
N/A
2.
Enable BGP and enter BGP
view.
bgp
as-number
By default, BGP is not enabled.
3.
Configure the remote PE as a
BGP peer.
peer
{
group-name
|
ip-address
[
mask-length
] }
as-number
as-number
By default, no BGP peer is
configured.
4.
Create the BGP L2VPN
address family and enter BGP
L2VPN address family view.
address-family l2vpn
By default, the BGP L2VPN
address family is not created.
5.
Enable BGP to exchange
VPLS PE information with the
specified peer or peer group.
peer
{
group-name
|
ip-address
[
mask-length
] }
enable
By default, BGP cannot
exchange VPLS PE information
with a peer or peer group.
6.
Enable BGP to exchange
label block information with
the specified peer or peer
group.
peer
{
group-name
|
ip-address
[
mask-length
] }
auto-discovery
[
non-standard
]
By default, BGP can exchange
VPLS PE information with a BGP
L2VPN peer or peer group by
using RFC 6074
MP_REACH_NLRI.