450
Step Command
Remarks
6.
(Optional.) Specify a PW
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
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.
site
site-id
[
range
range-value
]
[
default-offset
default-offset
]
By default, no local sites exist.
Configuring a BGP auto-discovery LDP PW
Before you perform this configuration, enable MPLS LDP on interfaces and globally. For more
information, 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
Step Command
Remarks
1.
Enter system view.
system-view
N/A
2.
Enable BGP instance and
enter BGP instance view.
bgp
as-number
[
instance
instance-name
]
By default, BGP is disabled.
3.
Configure the remote PE as a
BGP peer.
peer
{
group-name
|
ip-address
[
mask-length
] }
as-number
as-number
By default, no BGP peers exist.
4.
Create the BGP L2VPN
address family and enter BGP
L2VPN address family view.
address-family l2vpn
By default, no BGP L2VPN address
family exists.
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
VPLS PE 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.
7.
(Optional.) Permit the local
AS number to appear in
routes from the specified peer
or peer group and specify the
appearance times.
peer
{
group-name
|
ip-address
[
mask-length
] }
allow-as-loop
[
number
]
By default, the local AS number is
not allowed in routes from a peer or
peer group.
8.
(Optional.) Enable route
target-based filtering of
incoming BGP L2VPN
information.
policy vpn-target
By default, route target-based
filtering of incoming BGP L2VPN
information is enabled.