[MCE]
ospf 100 vpn-instance vpna
[MCE-ospf-100]
area 0
[MCE-ospf-100-area-0.0.0.0]
network 172.19.0.0 0.0.255.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 172.18.0.0 0.0.255.255
[MCE-ospf-200-area-0.0.0.0]
quit
4.
Configure RIP between the MCE and CE3, and between the MCE and CE4.
# Configure RIP-2 on the MCE.
[MCE]
rip 100 vpn-instance vpna
[MCE-rip-100]
version 2
[MCE-rip-100]
network 172.17.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 172.16.0.0
[MCE-rip-200]
import-route ospf 200
# Configure RIP-2 on CE3.
[CE3]
rip 200
[CE3-rip-200]
version 2
[CE3-rip-200]
network 172.16.0.0
[CE3-rip-200]
network 192.168.1.0
[CE3-rip-200]
import-route direct
# Configure RIP-2 on CE4.
[CE4]
rip 100
[CE4-rip-100]
version 2
[CE4-rip-100]
network 172.17.0.0
[CE4-rip-100]
network 192.168.2.0
[CE4-rip-100]
import-route direct
# Import RIP routes on the MCE.
[MCE]
ospf 100
[MCE-ospf-100]
import-route rip 100
[MCE-ospf-100]
quit
[MCE]
ospf 200
[MCE-ospf-200]
import-route rip 200
5.
Verify the configuration.
# After the configuration, run the
display ip routing-table vpn-instance
command on the
MCE, and you can view the routes to the local VPN.
Take
vpnb
as an example:
[MCE]
display ip routing-table vpn-instance vpnb
Route Flags: R - relay, D - download to fib
------------------------------------------------------------------------------
Routing Tables: vpnb
Destinations : 7 Routes : 7
Destination/Mask Proto Pre Cost Flags NextHop Interface
172.16.0.0/16 Direct 0 0 D 172.16.1.2 Vlanif10
172.16.1.1/32 Direct 0 0 D 172.16.1.1 Vlanif10
172.16.1.2/32 Direct 0 0 D 127.0.0.1 InLoopBack0
172.18.0.0/16 Direct 0 0 D 172.18.1.2 Vlanif30
172.18.1.1/32 Direct 0 0 D 172.18.1.1 Vlanif30
172.18.1.2/32 Direct 0 0 D 127.0.0.1 InLoopBack0
192.168.0.0/16
RIP
100
1
D
172.16.1.1
Vlanif10
# Run the
display ip routing-table vpn-instance
command on the PE, and you can view
the routes to the local VPN.
Take
vpnb
on PE2 as an example:
Huawei AR1200 Series Enterprise Routers
Configuration Guide - VPN
2 MCE Configuration
Issue 01 (2012-04-20)
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
57