beautypg.com

H3C Technologies H3C S7500E Series Switches User Manual

Page 36

background image

1-24

MCE is directly connected to VPN1, which has no routing protocol enabled. You can configure to
use static routes between MCE and a site.

Configuration on VR1: Assume VR1 is an S7500E switch, configure IP address 10.214.10.2/24 for
the interface connecting to MCE and IP address 192.168.0.1/24 for the interface connecting to
VPN1. The operation of adding a port to a VLAN and configuring IP address for a VLAN-interface is
omitted here.

# Configure a default route on VR1, specifying the next hop address to 10.214.10.3.

system-view

[VR1] ip route-static 0.0.0.0 0.0.0.0 10.214.10.3

# Define a static route on MCE, specify the next hop address 10.214.10.2 for packets destined for
the network segment 192.168.0.0, and bind this route to VPN1.

[MCE-Vlan-interface10] quit

[MCE] ip route-static vpn-instance vpn1 192.168.0.0 16 10.214.10.2

# Display the information about the routes of VPN1 maintained on MCE.

[MCE] display ip routing-table vpn-instance vpn1

Routing Tables: vpn1

Destinations : 5 Routes : 5

Destination/Mask Proto Pre Cost NextHop Interface

127.0.0.0/8 Direct 0 0 127.0.0.1 InLoop0

127.0.0.1/32 Direct 0 0 127.0.0.1 InLoop0

10.214.10.0/24 Direct 0 0 10.214.10.3 Vlan10

10.214.10.3/32 Direct 0 0 127.0.0.1 InLoop0

192.168.0.0/16 Static 60

0 10.214.10.2 Vlan10

As shown in the displayed information above, a static route has been specified for VPN1.

# On VR2, configure IP address 10.214.20.2/24 for the interface connecting to MCE (configuration
procedures omitted), enable RIP and advertise the network segments 192.168.10.0 and
10.214.20.0.

system-view

[VR2] rip 20

[VR2-rip-20] network 192.168.10.0

[VR2-rip-20] network 10.0.0.0

# RIP is running within VPN2, so you can configure RIP on MCE and involve the RIP on MCE in the
routing computation in the site to update the routing information automatically. Create RIP process
20, disable automatic route summarization, redistribute routes from OSPF process 20, and bind the
RIP process to VPN2.

[MCE] rip 20 vpn-instance vpn2

# Advertise the network segment 10.214.20.0 and 10.214.40.0.

[MCE-rip-20] network 10.0.0.0

[MCE-rip-20] undo summary

[MCE-rip-20] import-route ospf

# Display the information about the routes of VPN2 on MCE.

[MCE-rip-20] display ip routing-table vpn-instance vpn2

Routing Tables: vpn2

Destinations : 5 Routes : 5