[PE2-Vlanif50]
ip binding vpn-instance vpna
[PE2-Vlanif50]
ip address 192.1.1.1 24
[PE2-Vlanif50]
quit
[PE2]
interface vlanif 40
[PE2-Vlnaif40]
ip binding vpn-instance vpnb
[PE2-Vlnaif40]
ip address 192.2.1.1 24
[PE2-Vlnaif40]
quit
Step 4
Configure VPN instances on the MCE. Connect CE3, CE4, and PE2 to MCE.
<Quidway>
system-view
[Quidway]
sysname MCE
[MCE]
vlan batch 40 50 60 70
[MCE]
interface gigabitethernet 2/0/0
[MCE-GigabitEthernet2/0/0]
port hybrid pvid vlan 40
[MCE-GigabitEthernet2/0/0]
port hybrid untagged vlan 40
[MCE-GigabitEthernet2/0/0]
quit
[MCE]
interface gigabitethernet 1/0/0
[MCE-GigabitEthernet1/0/0]
port hybrid pvid vlan 50
[MCE-GigabitEthernet1/0/0]
port hybrid untagged vlan 50
[MCE-GigabitEthernet1/0/0]
quit
[MCE]
interface gigabitethernet 3/0/0
[MCE-GigabitEthernet3/0/0]
port hybrid pvid vlan 60
[MCE-GigabitEthernet3/0/0]
port hybrid untagged vlan 60
[MCE-GigabitEthernet3/0/0]
quit
[MCE]
interface gigabitethernet 3/0/1
[MCE-GigabitEthernet3/0/1]
port hybrid pvid vlan 70
[MCE-GigabitEthernet3/0/1]
port hybrid untagged vlan 70
[MCE-GigabitEthernet3/0/1]
quit
[MCE]
ip vpn-instance vpna
[MCE-vpn-instance-vpna]
route-distinguisher 100:1
[MCE-vpn-instance-vpna]
vpn-target 111:1 both
[MCE-vpn-instance-vpna]
quit
[MCE]
ip vpn-instance vpnb
[MCE-vpn-instance-vpnb]
route-distinguisher 100:2
[MCE-vpn-instance-vpnb]
vpn-target 222:2 both
[MCE-vpn-instance-vpnb]
quit
[MCE]
interface vlanif 60
[MCE-Vlanif60]
ip binding vpn-instance vpna
[MCE-Vlanif60]
ip address 10.3.1.2 24
[MCE-Vlanif60]
quit
[MCE]
interface vlanif 70
[MCE-Vlanif70]
ip binding vpn-instance vpnb
[MCE-Vlanif70]
ip address 10.4.1.2 24
[MCE-Vlanif70]
quit
[MCE]
interface vlanif 50
[MCE-Vlanif50]
ip binding vpn-instance vpna
[MCE-Vlanif50]
ip address 192.1.1.2 24
[MCE-Vlanif50]
quit
[MCE]
interface vlanif 40
[MCE-Vlanif40]
ip binding vpn-instance vpnb
[MCE-Vlanif40]
ipaddress 192.2.1.2 24
[MCE-Vlanif40]
quit
Step 5
Set up an MP-IBGP adjacency between PEs, and between PE1 and CE1. Set up an EBGP
adjacency between PE1 and CE1, and between PE1 and CE2.
The configuration procedure is not mentioned.
After the configuration, run the
display bgp vpnv4 all peer
command on PE1, and you can see
that the IBGP adjacency between PE1 and PE2 is in Established state. The EBGP adjacency
between PE1 and CE1 and the EBGP adjacency between PE1 and CE2 are in Established state.
[PE1]
display bgp vpnv4 all peer
BGP local router ID : 1.1.1.9
Local AS number : 100
Total number of peers : 1 Peers in established state : 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.
261