beautypg.com

H3C Technologies H3C S10500 Series Switches User Manual

Page 44

background image

33

# On MCE 1, configure OSPF process 2 for VPN instance vpn2, and configure OSPF to support MCE.

Be sure to configure the same OSPF area as that configured at site 2 of VPN 2, area 0 in this example.

[MCE1] ospf 2 vpn-instance vpn2 router-id 192.168.2.1

[MCE1-ospf-2] vpn-instance-capability simple

[MCE1-ospf-2] area 0

[MCE1-ospf-2-area-0.0.0.0]

# Advertise the address of tunnel interface Tunnel 1.

[MCE1-ospf-2-area-0.0.0.0] network 10.1.2.1 0.0.0.255

# Configure RIP process 1 for VPN instance vpn2.

[MCE1] rip 1 vpn-instance vpn2

[MCE1-rip-1]

# Advertise the IP address of VLAN-interface 11.

[MCE1-rip-1] network 10.214.20.1

# Redistribute routes learned by OSPF process 2 to RIP process 1.

[MCE1-rip-1] import-route ospf 2

[MCE1-rip-1] quit

# Redistribute routes learned by RIP process 1 to OSPF process 2.

[MCE1] ospf 2

[MCE1-ospf-2] import-route rip 1

# On MCE 2, configure OSPF process 2 for VPN instance vpn2, and configure OSPF to support MCE.

Be sure to configure the same OSPF area as that configured at site 2 of VPN 2, area 0 in this example.

[MCE2] ospf 2 vpn-instance vpn2 router-id 172.16.2.1

[MCE2-ospf-2] vpn-instance-capability simple

[MCE2-ospf-2] area 0

[MCE2-ospf-2-area-0.0.0.0]

# Advertise the addresses of interfaces VLAN-interface 21 and Tunnel 1 on MCE 2.

[MCE2-ospf-2-area-0.0.0.0] network 10.214.40.1 0.0.0.255

[MCE2-ospf-2-area-0.0.0.0] network 10.1.2.2 0.0.0.255