10
For commands that display routing tables for VPN instances, see
Layer 3—IP Routing Command
Reference
.
MCE configuration examples
Example: Configuring the MCE that uses OSPF to advertise
VPN routes to the PE
Network configuration
As shown in
, VPN 2 runs OSPF. The edge devices of VPN 1 and VPN 2 are VR 1 and VR 2,
respectively. Configure the MCE device to separate routes from different VPNs and to advertise the
VPN routes to PE 1 through OSPF.
Figure 4 Network diagram
Procedure
1.
Configure the VPN instances on the MCE and PE 1:
# On the MCE, configure VPN instances
vpn1
and
vpn2
, and specify an RD and route targets
for each VPN instance.
<MCE> system-view
[MCE] ip vpn-instance vpn1
[MCE-vpn-instance-vpn1] route-distinguisher 10:1
[MCE-vpn-instance-vpn1] vpn-target 10:1
[MCE-vpn-instance-vpn1] quit
[MCE] ip vpn-instance vpn2
[MCE-vpn-instance-vpn2] route-distinguisher 20:1
CE 2
VPN 1
Site 2
CE 1
VPN 2
Site 1
PE 1
PE 3
PE 2
VPN 2
192.168.10.0/24
VR 2
VPN 1
192.168.0.0/24
VR 1
MCE
Vlan-int10
10.214.10.3/24
Vlan-int30: 30.1.1.2/24
Vlan-int40: 40.1.1.2/24
Vlan-int30: 30.1.1.1/24
Vlan-int40: 40.1.1.1/24
Vlan-int20
10.214.20.3/24