beautypg.com

H3C Technologies H3C S7500E Series Switches User Manual

Page 40

background image

1-28

[MCE] vlan 3

[MCE-vlan3] port GigabitEthernet 2/0/20

[MCE-vlan3] quit

[MCE] interface Vlan-interface 3

[MCE-Vlan-interface3] ip binding vpn-instance vpn2

[MCE-Vlan-interface3] ip address 10.214.20.3 24

[MCE-Vlan-interface3] quit

# Create VLAN 30, VLAN 40 and the corresponding VLAN interfaces. Then bind VLAN 30 to VPN 1,
and VLAN 40 to VPN 2, and configure IP addresses of the VLAN interfaces.

[MCE] vlan 30

[MCE-vlan30] quit

[MCE] interface Vlan-interface 30

[MCE-Vlan-interface30] ip binding vpn-instance vpn1

[MCE-Vlan-interface30] ip address 10.214.30.1 30

[MCE-Vlan-interface30] quit

[MCE] vlan 40

[MCE-vlan40] quit

[MCE] interface Vlan-interface 40

[MCE-Vlan-interface40] ip binding vpn-instance vpn2

[MCE-Vlan-interface40] ip address 10.214.40.1 30

[MCE-Vlan-interface40] quit

z

Configure the routing protocol running between MCE and a site

# The procedure of enabling OSPF in the two VPN instances and advertising the network segments
is the same as that in normal OSPF and is omitted.

# Create OSPF process 10 for MCE whose router ID is 10.10.10.1, bind the process to VPN1.
Redistribute BGP routes from VPN1, enable OSPF multi-instance, and advertise the network
segment 10.100.10.0.

system-view

[MCE] ospf 10 router-id 10.10.10.1 vpn-instance vpn1

[MCE-ospf-10] vpn-instance capability simple

[MCE-ospf-10] import-route bgp

[MCE-ospf-10] area 0

[MCE-ospf-10-area-0.0.0.0] network 10.100.10.0 0.0.0.255

# Display the information about the routes of VPN1.

[MCE-ospf-10-area-0.0.0.0] 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.100.10.0/24 Direct 0 0 10.100.10.1 Vlan2

10.100.10.1/32 Direct 0 0 127.0.0.1 InLoop0

172.16.10.0/24 OSPF 10 1 10.100.10.2 Vlan2

As shown in the displayed information above, MCE has obtained the routing information of VPN1
through OSPF process 10.

# Create OSPF process 20 for MCE whose router ID is 10.10.20.1, bind the process to VPN2.
Redistribute BGP routes from VPN2, enable OSPF multi-instance, and advertise the network