Procedure
Step 1
Configure the basic MPLS.
1.
Configure a loopback interface.
Set the ID of the loopback interface to
0
and its IP address to
10.10.10.10/32
.
huawei(config)#
interface loopback 0
huawei(config-if-loopback0)#
ip address 10.10.10.10 32
huawei(config-if-loopback0)#
quit
2.
Configure the MPLS LSR-ID. Use the IP address of loopback interface 0 as the LSR ID.
huawei(config)#
mpls lsr-id 10.10.10.10
3.
Enable MPLS globally.
Trigger LDP by the IP address of the host to set up an LSP.
huawei(config)#
mpls
huawei(config-mpls)#
lsp-trigger host
huawei(config-mpls)#
quit
4.
Enable the L2VPN function.
huawei(config)#
mpls l2vpn
5.
Enable the LDP function globally and enable the split horizon policy.
huawei(config)#
mpls ldp
huawei(config-mpls-ldp)#
outbound peer all split-horizon
huawei(config-mpls-ldp)#
quit
Step 2
Configure VLAN, and enable MPLS for VLAN and VLAN interfaces.
1.
Add VLAN 4001 for forwarding MPLS packets and add two upstream ports to it.
huawei(config)#
vlan 4001 smart
huawei(config)#
port vlan 4001 0/19/0
huawei(config)#
port vlan 4001 0/19/1
2.
Enable MPLS for VLAN 4001.
huawei(config)#
mpls vlan 4001
3.
Set the IP address of VLAN interface 4001 to
10.50.50.50/24
and enable MPLS LDP for
the VLAN interface.
huawei(config)#
interface vlanif 4001
huawei(config-if-vlanif4001)#
ip address 10.50.50.50 24
huawei(config-if-vlanif4001)#
mpls
huawei(config-if-vlanif4001)#
mpls ldp
huawei(config-if-vlanif4001)#
quit
Step 3
Configure routes.
VPLS has no special requirements on routing policy. You can use static route, RIP, or OSPF
policy. In the following example, OSPF is used.
Set the OSPF process ID to
100
and OSPF area ID to
1
. In addition, configure the interfaces
(VLAN interface and loopback interface) that run OSPF and configure the areas of the interfaces.
huawei(config)#
ospf 1
huawei(config-ospf-1)#
area 100
huawei(config-ospf-1-area-0.0.0.100)#
network 10.50.50.0 0.0.0.255
huawei(config-ospf-1-area-0.0.0.100)#
network 10.10.10.10 0.0.0.0
huawei(config-ospf-1-area-0.0.0.100)#
return
Step 4
Configure the remote LDP session.
Configure the remote LDP sessions from the MA5600T/MA5603T/MA5608T to SPE1 (LSR
ID: 1.1.1.1) and SPE2 (LSR ID: 2.2.2.2) respectively. Name the sessions
to_spe1
and
to_spe2
respectively.
SmartAX MA5600T/MA5603T/MA5608T Multi-service
Access Module
Commissioning and Configuration Guide
6 Configuration Example of VPLS
Issue 01 (2014-04-30)
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
497