34.1.1.0/24 BGP 255 0 RD 3.3.3.9 Vlanif10
255.255.255.255/32 Direct 0 0 D 127.0.0.1 InLoopBack0
Run the ping 34.1.1.1 command on CE1, and the ping is successful. Run the display
interface command to view the statistics about packets on GE 3/0/1 and GE3/0/2 of PE2, and
you can see that there are packets passing through GE 3/0/1 but there is not any packet passing
through GE3/0/2. This indicates that the two VPN instances contain same addresses but users
in the VPNs cannot communicate with each other.
----End
Configuration Files
l Configuration file of PE1
#
sysname PE1
#
vlan batch 10 100 101
#
ip vpn-instance vpna
route-distinguisher 100:100
vpn-target 100:100 export-extcommunity
vpn-target 100:100 import-extcommunity
ip vpn-instance vpnb
route-distinguisher 300:300
vpn-target 200:200 export-extcommunity
vpn-target 200:200 import-extcommunity
#
mpls lsr-id 1.1.1.9
mpls
#
mpls ldp
#
interface Vlanif10
ip address 12.1.1.1 255.255.255.0
mpls
mpls ldp
#
interface Vlanif100
ip binding vpn-instance vpna
ip address 14.1.1.1 255.255.255.0
#
interface Vlanif101
ip binding vpn-instance vpnb
ip address 14.1.1.1 255.255.255.0
#
interface GigabitEthernet1/0/1
port hybrid pvid vlan 10
port hybrid untagged vlan 10
#
interface GigabitEthernet3/0/1
port hybrid pvid vlan 100
port hybrid untagged vlan 100
#
interface GigabitEthernet3/0/2
port hybrid pvid vlan 101
port hybrid untagged vlan 101
#
interface LoopBack0
ip address 1.1.1.9 255.255.255.255
#
bgp 100
peer 3.3.3.9 as-number 100
peer 3.3.3.9 connect-interface LoopBack0
#
ipv4-family unicast
undo synchronization
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.
193