isis enable 1
mpls
mpls ldp
#
interface Vlanif 104
ip binding vpn-instance vpn1
ip address 10.4.1.1. 255.255.255.252
#
interface GigabitEthernet1/0/0
port hybrid pvid vlan 40
port hybrid untagged vlan 40
#
interface GigabitEthernet2/0/0
port hybrid pvid vlan 104
port hybrid untagged vlan 104
#
interface LoopBack1
ip address 4.4.4.4 255.255.255.255
isis enable 1
#
bgp 100
peer 2.2.2.2 as-number 100
peer 2.2.2.2 connect-interface LoopBack1
#
ipv4-family unicast
undo synchronization
peer 2.2.2.2 enable
#
ipv4-family vpnv4
policy vpn-target
peer 2.2.2.2 enable
#
ipv4-family vpn-instance vpn1
peer 10.4.1.2 as-number 65420
import-route direct
#
return
l
Configuration file of CE2
#
sysname CE2
#
vlan batch 103 104 1002
#
interface Vlanif 103
ip address 10.3.1.2 255.255.255.252
#
interface Vlanif 104
ip address 10.4.1.2 255.255.255.252
#
interface Vlanif 1002
ip address 1.6.1.1 255.255.255.0
#
interface GigabitEthernet1/0/0
port link-type trunk
port trunk allow-pass vlan 103
#
interface GigabitEthernet2/0/0
port link-type trunk
port trunk allow-pass vlan 104
#
interface GigabitEthernet3/0/0
port link-type trunk
port trunk allow-pass vlan 1002
#
bgp 65420
router-id 20.20.20.20
peer 10.3.1.1 as-number 100
peer 10.4.1.1. as-number 100
#
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.
290