Data Preparation
To complete the configuration, you need the following data:
l Names and IDs of VSIs
l IP addresses of peers and tunnel policy used for setting up peer relationships
l Interfaces to which VSIs are bound
Procedure
Step 1 Configure the VLAN to which each interface belongs according to Figure 7-12.
The configuration details are not mentioned here.
NOTE
Do not add the AC-side port and PW-side port of a PE to the same VLAN; otherwise, a loop may occur.
Step 2 Configure an IGP. In this example, OSPF is adopted.
When configuring OSPF, advertise 32-bit loopback interface addresses (LSR IDs) of PE1, P,
and PE2.
The configuration details are not mentioned here.
After the configuration is complete, run the display ip routing-table command on PE1, P, and
PE2. You can view the routes learned by PE1, P, and PE2 from each other.
Step 3 Configure basic MPLS functions and LDP.
The configuration details are not mentioned here.
After the configuration, run the display mpls ldp session command. You can find that the
Status of the peer relationship between PE1 and PE2 is Operational, which indicates that the
peer relationship is established. Run the display mpls lsp command, and you can view the setup
of the LSP.
Step 4 Establish remote LDP sessions between PEs.
# Configure PE1.
[PE1] mpls ldp remote-peer 3.3.3.9
[PE1-mpls-ldp-remote-3.3.3.9] remote-ip 3.3.3.9
[PE1-mpls-ldp-remote-3.3.3.9] quit
# Configure PE2.
[PE2] mpls ldp remote-peer 1.1.1.9
[PE2-mpls-ldp-remote-1.1.1.9] remote-ip 1.1.1.9
[PE2-mpls-ldp-remote-1.1.1.9] quit
After the configuration, run the display mpls ldp session on PE1 or PE2. You can find that the
status of the peer relationship between PE1 and PE2 is Operational, which indicates that the
peer relationship is established.
Step 5 Enable MPLS L2VPN on PEs.
# Configure PE1.
[PE1] mpls l2vpn
# Configure PE2.
Quidway S7700 Smart Routing Switch
Configuration Guide - VPN 7 VPLS Configuration
Issue 01 (2011-07-15) Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
732