beautypg.com

H3C Technologies H3C S7500E Series Switches User Manual

Page 41

background image

1-29

segment 10.100.20.0. The procedure of configuring OSPF process 20 is similar to that of
configuring OSPF process 10. Followed is the result of the above configuration.

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

Routing Tables: vpn2

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.20.0/24 Direct 0 0 10.100.20.1 Vlan3

10.100.20.1/32 Direct 0 0 127.0.0.1 InLoop0

172.16.20.0/24 OSPF 10 1 10.100.20.2 Vlan3

z

Configure the routing protocol running between MCE and PE

# The procedure of connecting MCE to PE through trunk ports is similar to that in

Using OSPF to

Redistribute VPN Routes Between an MCE and PE

and is omitted here.

# Create BGP process 10 for MCE.

[MCE] bgp 100

[MCE-bgp]

# Enter IPv4 address family view in VPN1.

[MCE-bgp] ipv4-family vpn-instance vpn1

[MCE-bgp-vpn1]

# Configure PE as an EBGP peer and import the routing information of OSPF process 10 (assuming
that the address of the interface bound to VPN1 is 10.100.30.3 and the ID of the BGP process is
200).

[MCE-bgp-vpn1] peer 10.100.30.3 as-number 200

[MCE-BGP-vpn1] import-route ospf 10

# Create BGP process 200 on the PE, and configure MCE as an EBGP peer.

system-view

[PE] bgp 200

[PE-bgp] ipv4-family vpn-instance vpn1

[PE-bgp-vpn1] peer 10.100.30.1 as-number 100

# Display the information about the routes of VPN1 on PE.

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.30.0/24 Direct 0 0 10.100.10.3 Vlan2

10.100.30.3/32 Direct 0 0 127.0.0.1 InLoop0

172.16.10.0/24 BGP 255 2 10.100.10.2 Vlan2

# For VPN2, perform the configurations similar to the above on MCE and PE to import the OSPF
routing information of VPN2 to the EBGP routing table. Configuration procedures are omitted here.
Followed is the result of the above configurations.

display ip routing-table vpn-instance vpn2