170
{ PW class to be referenced. A PW class defines the PW transport mode and tunneling policy for
the PW.
To configure an LDP VPLS instance:
Step Command Remarks
1. Enter system view.
system-view N/A
2. Create a PW class and enter
its view.
pw-class pw-class-name
Optional.
By default, no PW class is created.
3. Configure the PW transport
mode.
trans-mode { ethernet | vlan }
Optional.
VLAN by default.
4. Specify a tunneling policy.
pw-tunnel-policy policy-name
Optional.
By default, the tunneling policy
specified through the tnl-policy
command in VSI view is used.
For information about how to
configure a tunneling policy, see
"
Configuring MPLS L3VPN
."
5. Return to system view.
quit N/A
6. Create an LDP VPLS instance
and enter VSI view.
vsi vsi-name static N/A
7. Specify LDP as the PW
signaling protocol and enter
VSI LDP view.
pwsignal ldp N/A
8. Specify an ID for the VPLS
instance.
vsi-id vsi-id N/A
9. Create a peer PE for the VPLS
instance and enter L2VPN
peer view.
peer ip-address [ pw-class
class-name | [ pw-id pw-id ] [ upe
| backup-peer ip-address
[ backup-pw-id pw-id ] ] ] *
N/A
10. Return to VSI LDP view.
quit N/A
11. Enable the PW switchover
function and set the
switchover delay time.
dual-npe revertive [ wtr-time
wtr-time ]
Optional.
By default, PW switchover is
disabled.
Configuring BGP VPLS
Before you configure BGP VPLS, complete the following tasks:
• Configure an IGP on the MPLS backbone devices (PEs and P devices) to guarantee the IP
connectivity of the MPLS backbone. For configuration information, see Layer 3—IP Routing
Configuration Guide.
• Configure basic MPLS on the MPLS backbone devices (PEs and P devices) to establish LSP tunnels
on the backbone network. For configuration information, see "Configuring basic MPLS."