365
3.
Configure the VSI to
automatically discover
neighbors through BGP and
enter auto-
view.
auto-discovery bgp
By default, a VSI does not
automatically discover neighbors
through BGP.
4.
auto-discovery VSI.
route-distinguisher
route-distinguisher
By default, no RD is configured for
the auto-discovery VSI.
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.
class for the auto-discovery
VSI.
pw-class
class-name
By default, no PW class is
specified.
7. (Optional.) Specify a tunnel
policy for the auto-discovery
VSI.
tunnel-policy
tunnel-policy-name
By default, no tunnel policy is
specified.
8. Use BGP to create a PW to
an automatically discovered
auto-
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
"Configuring LDP."
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
1. Enter system view.
N/A
2. Enable BGP and enter BGP
view.
bgp
as-number
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. Crea
te a BGP L2VPN
address family and enter
BGP L2VPN address family
view.
address-family l2vpn
By
address family is 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
peer
{ group-name | ip-address
[ mask-length ] }
auto-discovery
By default, BGP can exchange
VPLS PE information with a