interface Vlanif50
ip address 10.1.1.1 255.255.255.252
#
interface GigabitEthernet1/0/0
port hybrid pvid vlan 50
port hybrid tagged vlan 50
#
interface GigabitEthernet2/0/1
port hybrid pvid vlan 40
port hybrid tagged vlan 40
#
mpls l2vpn vpn1 encapsulation vlan control-word
route-distinguisher 100:3
vpn-target 1:1 import-extcommunity
vpn-target 1:1 export-extcommunity
ce ce3 id 3 range 10 default-offset 0
connection ce-offset 1 interface Vlanif50 tunnel-policy p1
#
#
interface LoopBack1
ip address 2.2.2.2 255.255.255.255
#
bgp 100
peer 1.1.1.1 as-number 100
peer 1.1.1.1 connect-interface LoopBack1
#
ipv4-family unicast
undo synchronization
peer 1.1.1.1 enable
#
l2vpn-family
policy vpn-target
peer 1.1.1.1 enable
#
#
ospf 1
area 0.0.0.0
network 2.2.2.2 0.0.0.0
network 100.12.1.0 0.0.0.3
#
return
4 VLL Configuration
Quidway S9300 Terabit Routing Switch
Configuration Guide - VPN
4-120 Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
Issue 03 (2009-08-20)