mpls
#
mpls ldp
#
vlan batch 140 150
#
interface Vlanif140
ip address 30.1.1.2 255.255.255.0
mpls
mpls ldp
#
interface Vlanif150
ip address 40.1.1.1 255.255.255.0
mpls
mpls ldp
#
interface GigabitEthernet0/0/1
port hybrid pvid vlan 140
port hybrid untagged vlan 140
#
interface GigabitEthernet0/0/2
port hybrid pvid vlan 150
port hybrid untagged vlan 150
#
interface LoopBack0
ip address 4.4.4.9 255.255.255.255
#
ospf 1
area 0.0.0.0
network 4.4.2.9 0.0.0.0
network 30.1.1.0 0.0.0.255
network 40.1.1.0 0.0.0.255
#
l
Configuration file of U-PE2
#
sysname U-PE2
#
mpls lsr-id 5.5.5.9
mpls
#
mpls l2vpn
#
mpls ldp
#
mpls ldp remote-peer 3.3.3.9
remote-ip 3.3.3.9
#
vlan batch 150 160
#
interface Vlanif150
ip address 40.1.1.2 255.255.255.0
mpls
mpls ldp
#
interface Vlanif160
mpls l2vc 3.3.3.9 200
#
interface GigabitEthernet0/0/1
port hybrid pvid vlan 150
port hybrid untagged vlan 150
#
interface GigabitEthernet0/0/2
port hybrid pvid vlan 160
port hybrid untagged vlan 160
#
interface LoopBack0
ip address 5.5.5.9 255.255.255.255
#
ospf 1
Quidway S5700 Series Ethernet Switches
Configuration Guide - Network Management
6 NQA Configuration
Issue 01 (2011-10-26)
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
384