interface GigabitEthernet1/0/0
port link-type trunk
port trunk allow-pass vlan 10
#
return
l Configuration file of CE2
#
sysname CE2
#
interface Vlanif60
ip address 10.1.1.2 255.255.255.0
#
interface GigabitEthernet1/0/0
port link-type trunk
port trunk allow-pass vlan 60
#
return
l Configuration file of UPE1
#
sysname UPE1
#
vlan batch 10 20
#
mpls lsr-id 4.4.4.9
mpls
#
mpls l2vpn
#
interface Vlanif10
mpls static-l2vc destination 1.1.1.9 transmit-vpn-label 100 receive-vpn-label
100
#
interface Vlanif20
ip address 100.1.3.2 255.255.255.0
mpls
#
interface GigabitEthernet1/0/0
port hybrid pvid vlan 20
port hybrid tagged vlan 20
#
interface GigabitEthernet2/0/0
port hybrid pvid vlan 10
port hybrid tagged vlan 10
#
interface LoopBack1
ip address 4.4.4.9 255.255.255.255
#
ospf 1
area 0.0.0.0
network 4.4.4.9 0.0.0.0
network 100.1.3.0 0.0.0.255
#
static-lsp ingress UPE1toSPE1 destination 1.1.1.9 32 nexthop 100.1.3.1 out-
label 20
static-lsp egress SPE1toUPE1 incoming-interface Vlanif 20 in-label 30
#
return
l Configuration file of SPE1
#
sysname SPE1
#
vlan batch 20 30
#
mpls lsr-id 1.1.1.9
mpls
#
mpls l2vpn
6 VPLS Configuration
Quidway S9300 Terabit Routing Switch
Configuration Guide - VPN
6-64 Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
Issue 03 (2009-08-20)