
Step 3
Configure basic MPLS functions and LDP.
For detailed configuration procedures, see the following configuration files.
After the configuration, run the
display mpls ldp peer
command. You can find that the peer
relationship is established between PE1 and P and between PE2 and P. Run the
display mpls
ldp session
command on PE1 and PE2, and you can find that an LDP session is set up between
PE1 and PE2. Run the
display mpls lsp
command, and you can view the setup of the LSP.
Step 4
Establish BGP peers to exchange VPLS information.
# Configure PE1.
[PE1]
bgp 100
[PE1-bgp]
peer 3.3.3.9 as-number 100
[PE1-bgp]
peer 3.3.3.9 connect-interface loopback1
[PE1-bgp]
vpls-family
[PE1-bgp-af-vpls]
peer 3.3.3.9 enable
[PE1-bgp-af-vpls]
quit
# Configure PE2.
[PE2]
bgp 100
[PE2-bgp]
peer 1.1.1.9 as-number 100
[PE2-bgp]
peer 1.1.1.9 connect-interface loopback1
[PE2-bgp]
vpls-family
[PE2-bgp-af-vpls]
peer 1.1.1.9 enable
[PE2-bgp-af-vpls]
quit
Step 5
Enable MPLS L2VPN on PEs.
# Configure PE1.
[PE1]
mpls l2vpn
# Configure PE2.
[PE2]
mpls l2vpn
Step 6
Configure VSIs on PEs.
NOTE
Site IDs at both ends of a VSI must be different.
# Configure PE1.
[PE1]
vsi bgp1 auto
[PE1-vsi-bgp1]
pwsignal bgp
[PE1-vsi-bgp1-bgp]
route-distinguisher 168.1.1.1:1
[PE1-vsi-bgp1-bgp]
vpn-target 100:1 import-extcommunity
[PE1-vsi-bgp1-bgp]
vpn-target 100:1 export-extcommunity
[PE1-vsi-bgp1-bgp]
site 1 range 5 default-offset 0
# Configure PE2.
[PE2]
vsi bgp1 auto
[PE2-vsi-bgp1]
pwsignal bgp
[PE2-vsi-bgp1-bgp]
route-distinguisher 169.1.1.2:1
[PE2-vsi-bgp1-bgp]
vpn-target 100:1 import-extcommunity
[PE2-vsi-bgp1-bgp]
vpn-target 100:1 export-extcommunity
[PE2-vsi-bgp1-bgp]
site 2 range 5 default-offset 0
Step 7
Bind VSIs to AC interfaces on PEs.
# Create a sub-interface on PE1, allow the sub-interface to receive packets from VLAN 10, and
bind a VSI to the sub-interface.
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.
739