[PE1]
display bgp vpnv4 all peer
BGP local router ID : 1.1.1.9
Local AS number : 100
Total number of peers : 3 Peers in established state : 3
Peer V AS MsgRcvd MsgSent OutQ Up/Down State PrefRcv
2.2.2.9 4 100 13 10 0 00:03:45 Established 6
Peer of IPv4-family for vpn instance :
VPN-Instance vpna, router ID 1.1.1.9:
10.1.1.1 4 65410 9 11 0 00:04:14 Established 2
VPN-Instance vpnb, router ID 1.1.1.9:
10.2.1.1 4 65420 9 12 0 00:04:09 Established 2
Step 6
Configure OSPF multi-instance between PE2 and MCE.
# Configure PE2.
<PE2>
system-view
[PE2]
ospf 100 vpn-instance vpna
[PE2-ospf-100]
area 0
[PE2-ospf-100-area-0.0.0.0]
network 192.1.1.0 0.0.0.255
[PE2-ospf-100-area-0.0.0.0]
quit
[PE2-ospf-100]
import-route bgp
[PE2-ospf-100]
quit
[PE2]
ospf 200 vpn-instance vpnb
[PE2-ospf-200]
area 0
[PE2-ospf-200-area-0.0.0.0]
network 192.2.1.0 0.0.0.255
[PE2-ospf-200-area-0.0.0.0]
quit
[PE2-ospf-200]
import-route bgp
[PE2-ospf-200]
quit
[PE2]
bgp 100
[PE2-bgp]
ipv4-family vpn-instance vpna
[PE2-bgp-vpna]
import-route ospf 100
[PE2-bgp-vpna]
quit
[PE2-bgp]
ipv4-family vpn-instance vpnb
[PE2-bgp-vpnb]
import-route ospf 200
[PE2-bgp-vpnb]
quit
# Configure MCE.
<MCE>
system-view
[MCE]
ospf 100 vpn-instance vpna
[MCE-ospf-100]
area 0
[MCE-ospf-100-area-0.0.0.0]
network 192.1.1.0 0.0.0.255
[MCE-ospf-100-area-0.0.0.0]
quit
[MCE-ospf-100]
quit
[MCE]
ospf 200
vpn-instance vpnb
[MCE-ospf-200]
area 0
[MCE-ospf-200-area-0.0.0.0]
network 192.2.1.0 0.0.0.255
[MCE-ospf-200-area-0.0.0.0]
quit
[MCE-ospf-200]
quit
Step 7
Configure RIPv2 between MCE and CE3, and between MCE and CE4.
# Configure MCE.
[MCE]
rip 100 vpn-instance vpna
[MCE-rip-100]
version 2
[MCE-rip-100]
network 10.0.0.0
[MCE-rip-100]
import-route ospf 100
[MCE-rip-100]
quit
[MCE]
rip 200 vpn-instance vpnb
[MCE-rip-200]
version 2
[MCE-rip-200]
network 10.0.0.0
[MCE-rip-200]
import-route ospf 200
# Configure CE3.
<Huawei>
system-view
[Huawei]
sysname CE3
Huawei AR1200 Series Enterprise Routers
Configuration Guide - VPN
3 BGP MPLS IP VPN Configuration
Issue 01 (2012-04-20)
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
220