H3C Technologies H3C S7500E Series Switches User Manual
Page 37

1-25
Destination/Mask Proto Pre Cost NextHop Interface
10.214.20.0/24 Direct 0 0 10.214.20.3 Vlan20
10.214.20.3/32 Direct 0 0 127.0.0.1 InLoop0
10.214.40.0/30 Direct 0 0 10.214.40.1 Vlan40
10.214.40.1/32 Direct 0 0 127.0.0.1 InLoop0
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
192.168.10.0/24 RIP 100 1 10.214.20.2 Vlan20
As shown in the displayed information above, MCE has obtained the routes of VPN2 through RIP,
and maintains these routes in a routing table different from the routing table for routing information
of VPN1 to the network segment 192.168.0.0, thus isolating the routes of VPN1 from the routes of
VPN2.
z
Configure the routing protocol running between the MCE and a PE
# MCE uses GigabitEthernet 2/0/3 to connect to GigabitEthernet 2/0/18 of PE. Configure the two
ports to be trunk ports and permit tagged packets of VLAN 30 and VLAN 40.
[MCE-rip-20] quit
[MCE] interface GigabitEthernet 2/0/3
[MCE-GigabitEthernet2/0/3] port link-type trunk
[MCE-GigabitEthernet2/0/3] port trunk permit vlan 30 40
# Configure GigabitEthernet 2/0/18 of PE.
[PE] interface GigabitEthernet 2/0/18
[PE-GigabitEthernet2/0/18] port link-type trunk
[PE-GigabitEthernet2/0/18] port trunk permit vlan 30 40
# Configure IP addresses 10.214.30.2 and 10.214.40.2 for VLAN-interface 30 and VLAN-interface
40 of PE respectively. The configuration procedures are omitted here.
# Configure Loopback0 of MCE and CE to specify the router ID for MCE and PE respectively. The IP
addresses for Loopback0 of MCE and CE are 101.101.10.1 and 100.100.10.1 respectively.
Configuration procedures are omitted here.
# Create OSPF process 10 on MCE, bind the process to VPN1, and set the OSPF domain ID to 10,
and enable OSPF multi-instance.
[MCE-GigabitEthernet2/0/3] quit
[MCE] ospf 10 router-id 101.101.10.1 vpn-instance vpn1
[MCE-ospf-10] domain 10
[MCE-ospf-10] vpn-instance-capability simple
# Advertise the network segment 10.214.30.0 within Area0, and import static routes of VPN1.
[MCE-ospf-10] area 0
[MCE-ospf-10-area-0.0.0.0] network 10.214.30.0 0.0.0.255
[MCE-ospf-10-area-0.0.0.0] quit
[MCE-ospf-10] import-route static
# Create OSPF process 10 on PE, bind the process to VPN1, set the OSPF domain ID to 10, enable
OSPF multi-instance, and advertise the network segment 10.214.30.0 within Area0.
[PE-GigabitEthernet2/0/18] quit
[PE] ospf 10 router-id 100.100.10.1 vpn-instance vpn1
[PE-ospf-10] domain-id 10
[PE-ospf-10] vpn-instance-capability simple
[PE-ospf-10] area 0