mpls
#
mpls ldp
#
isis 1
 network-entity 10.0000.0000.0002.00
#
interface Vlanif20
 ip address 100.2.1.1 255.255.255.252
 isis enable 1
 mpls
 mpls ldp
#
interface Vlanif102
 ip binding vpn-instance vpn1
 ip address 10.2.1.2 255.255.255.252
#
interface  GigabitEthernet1/0/0
 port hybrid pvid vlan 102
 port hybrid untagged vlan 102
#
interface  GigabitEthernet2/0/0
 port hybrid pvid vlan 20
 port hybrid untagged vlan 20
#
interface LoopBack1
 ip address 2.2.2.2 255.255.255.255
 isis enable 1
#
bgp 100
 peer 4.4.4.4 as-number 100
 peer 4.4.4.4 connect-interface LoopBack1
 #
 ipv4-family unicast
  undo synchronization
  peer 4.4.4.4 enable
 #
 ipv4-family vpnv4
  policy vpn-target
  peer 4.4.4.4 enable
 #
 ipv4-family vpn-instance vpn1
  peer 10.2.1.1 as-number 65410
  import-route direct
#
return
l Configuration file of P1
#
 sysname P1
#
 vlan batch 10 30
#
 mpls lsr-id 5.5.5.5
 mpls
#
mpls ldp
#
isis 1
 network-entity 10.0000.0000.0005.00
#
interface Vlanif 10
 ip address 100.1.1.2 255.255.255.252
 isis enable 1
 mpls
 mpls ldp
#
interface Vlanif 30
 ip address 100.3.1.1 255.255.255.252
 isis enable 1
Quidway S7700 Smart Routing Switch
Configuration Guide - VPN 3 BGP MPLS IP VPN Configuration
Issue 01 (2011-07-15) Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
287