LDP PWs can be configured in hierarchical virtual private LAN service (HVPLS) or (virtual private LAN service) VPLS accessing virtual private wire service (VPWS) networking scenarios.
Context
The service type determines which networking mode to use:
- HVPLS is best suited for multicast services.
- VPLS accessing VPWS is best suited for unicast services.
Procedure
- Configure a PW in HVPLS networking scenarios.
For details, see Configuring LDP HVPLS.
- Run system-view
The system view is displayed.
- Run vsi vsi-name static
A VSI is created, and the static member discovery mode is specified.
- Run pwsignal ldp
LDP is configured as the PW signaling protocol, and the VSI-LDP view is displayed.
- Run vsi-id vsi-id
A VSI ID is configured.
- Run the following commands to configure VSI peers so that PWs can be established:
- To specify an SPE as the peer of a UPE or to specify an NPE as the peer of an SPE, run the peer (VSI-LDP view) peer-address [ negotiation-vc-id vc-id ] [ tnl-policy policy-name ] command.
- To specify a UPE as the peer of an SPE, run the peer (VSI-LDP view) peer-address [ negotiation-vc-id vc-id ] [ tnl-policy policy-name ] upe command.
- Run quit
Return to the VSI view.
- Run quit
Return to the system view.
- Run interface interface-type interface-number
The AC interface view is displayed.
This command must be run on the UPEs and NPEs, but is not required on the SPEs. In HVPLS scenarios, a UPE's AC interfaces are Ethernet interfaces, and an NPE's AC interfaces are Eth-Trunk sub-interfaces.
- Run vlan-type dot1q vlan-id
The VLAN encapsulation type is configured for the AC interface.
- Run l2 binding vsi vsi-name
The AC interface is bound to the VSI.
- Run commit
The configuration is committed.
- Configure a PW in VPLS accessing VPWS networking scenarios.
# Configure a UPE. The configuration procedure is similar to that in HVPLS scenarios. For details, see Configuring HVPLS.
# Configure NPEs.
- Run system-view
The system view is displayed.
- Run interface interface-type interface-number
The AC interface view is displayed.
- Run mpls l2vc { ip-address | pw-template template-name } * vc-id [ tunnel-policy policy-name [ endpoint endpoint-address color color-value ] | [ control-word | no-control-word ] | [ raw | tagged | ip-layer2 | ip-interworking ] | access-port | ignore-standby-state ] *
A dynamic PW is configured on the NPE to connect to the VPLS network on the UPE.
- (Optional) Run mpls l2vc { ip-address | pw-template template-name } * vc-id [ tunnel-policy policy-name | [ control-word | no-control-word ] | [ raw | tagged ] | access-port | ignore-standby-state | bypass ] *
A bypass PW is established between NPEs.
To implement VPLS PW redundancy in master/slave mode, you must configure a bypass PW.
- Run commit
The configuration is committed.