control-word
#
mpls ldp
#
 mpls ldp remote-peer 1.1.1.1
 remote-ip 1.1.1.1
#
interface Vlanif40
 ip address 100.2.1.2 255.255.255.252
 mpls
 mpls ldp
#
interface Vlanif50
 mpls l2vc pw-template 2to1 100
#
interface GigabitEthernet1/0/0
 port hybrid pvid vlan 40
 port hybrid tagged vlan 40
#
interface GigabitEthernet1/0/1
 port hybrid pvid vlan 50
 port hybrid tagged vlan 50
#
interface LoopBack1
 ip address 4.4.4.4 255.255.255.255
#
ospf 1
 area 0.0.0.0
  network 4.4.4.4 0.0.0.0
  network 100.2.1.0 0.0.0.3
#
bfd 2to1 bind pw interface Vlanif50
 discriminator local 21
 discriminator remote 12
 commit
#
return
l Configuration file of PE3
#
 sysname PE3
#
 vlan batch 60 70
#
 bfd
#
 bfd for pw enable
#
 mpls lsr-id 5.5.5.5
 mpls
#
 mpls l2vpn
#
pw-template 3to1
 peer-address 1.1.1.1
 control-word
#
mpls ldp
#
 mpls ldp remote-peer 1.1.1.1
 remote-ip 1.1.1.1
#
interface Vlanif60
 ip address 200.2.1.2 255.255.255.252
 mpls
 mpls ldp
#
interface Vlanif70
Quidway S7700 Smart Routing Switch
Configuration Guide - VPN 6 PWE3 Configuration
Issue 01 (2011-07-15) Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
634