[PE1-Vlanif10]
mpls l2vc 2.2.2.9 100 tunnel-policy policy1
[PE1-Vlanif10]
quit
# Configure PE1. Bind PE1 to Tunnel2.
[PE1]
interface tunnel 2/0/0
[PE1-Tunnel2/0/0]
mpls te reserved-for-binding
[PE1-Tunnel2/0/0]
mpls te commit
[PE1-Tunnel2/0/0]
quit
[PE1]
tunnel-policy policy2
[PE1-tunnel-policy-policy2]
tunnel binding destination 3.3.3.9 te tunnel 2/0/0
[PE1-tunnel-policy-policy2]
quit
[PE1]
interface vlanif 4
[PE1-Vlanif4]
mpls l2vc 3.3.3.9 200 tunnel-policy policy2
[PE1-Vlanif4]
quit
# Configure PE2.
[PE2]
mpls l2vpn
[PE2-l2vpn]
mpls l2vpn default martini
[PE2-l2vpn]
quit
[PE2]
interface tunnel 1/0/0
[PE2-Tunnel1/0/0]
mpls te reserved-for-binding
[PE2-Tunnel1/0/0]
mpls te commit
[PE2-Tunnel1/0/0]
quit
[PE2]
tunnel-policy policy1
[PE2-tunnel-policy-policy1]
tunnel binding destination 1.1.1.9 te tunnel 1/0/0
[PE2-tunnel-policy-policy1]
quit
[PE2]
interface vlanif 2
[PE2-Vlanif2]
mpls l2vc 1.1.1.9 100 tunnel-policy policy1
[PE2-Vlanif2]
quit
# Configure PE3.
[PE3]
mpls l2vpn
[PE3-l2vpn]
mpls l2vpn default martini
[PE3-l2vpn]
quit
[PE3]
interface tunnel 1/0/0
[PE3-Tunnel1/0/0]
mpls te reserved-for-binding
[PE3-Tunnel1/0/0]
mpls te commit
[PE3-Tunnel1/0/0]
quit
[PE3]
tunnel-policy policy1
[PE3-tunnel-policy-policy1]
tunnel binding destination 1.1.1.9 te tunnel 1/0/0
[PE3-tunnel-policy-policy1]
quit
[PE3]
interface vlanif 3
[PE3-Vlanif3]
mpls l2vc 1.1.1.9 200 tunnel-policy policy1
[PE3-Vlanif3]
quit
Step 7
Connect the CEs to the backbone network.
# The following takes the configuration of CE1 as an example. The configuration procedures of
CE2 and CE3 are the same as the configuration procedure of CE1, and are not mentioned here.
[CE1]
vlan 10
[CE1]
quit
[CE1]
vlan 4
[CE1]
quit
[CE1]
interface gigabitethernet 1/0/2
[CE1-GigabitEthernet1/0/2]
port link-type trunk
[CE1-GigabitEthernet1/0/2]
port trunk allow-pass vlan 10
[CE1-GigabitEthernet1/0/2]
quit
[CE1]
interface gigabitethernet 1/0/3
[CE1-GigabitEthernet1/0/3]
port link-type trunk
[CE1-GigabitEthernet1/0/3]
port trunk allow-pass vlan 4
[CE1-GigabitEthernet1/0/3]
quit
[CE1]
interface VLANIF 10
[CE1-Vlanif10]
ip address 10.1.1.1 24
[CE1-Vlanif10]
quit
[CE1]
interface vlanif 4
Quidway S7700 Smart Routing Switch
Configuration Guide - VPN
1 VPN Tunnel Management Configuration
Issue 01 (2011-07-15)
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
49