beautypg.com

H3C Technologies H3C SR8800 User Manual

Page 303

background image

292

[PE2-GigabitEthernet3/1/1] ip address 10.3.1.2 24

[PE2-GigabitEthernet3/1/1] quit

[PE2] interface GigabitEthernet 3/1/2

[PE2-GigabitEthernet3/1/2] ip binding vpn-instance vpn2

[PE2-GigabitEthernet3/1/2] ip address 10.4.1.2 24

[PE2-GigabitEthernet3/1/2 quit

# Configure IP addresses for the CEs as per

Figure 75

. (Details not shown)

After completing the configurations, issue the display ip vpn-instance command on the PEs to view
the configuration of the VPN instances. Use the ping command to test connectivity between the PEs

and their attached CEs. The PEs can ping their attached CEs. Take PE 1 and CE 1 as examples:

[PE1] display ip vpn-instance

Total VPN-Instances configured : 2

VPN-Instance Name RD Create time

vpn1 100:1 2009/01/22 13:02:21

vpn2 100:2 2009/01/22 13:02:40

[PE1] ping -vpn-instance vpn1 10.1.1.1

PING 10.1.1.1: 56 data bytes, press CTRL_C to break

Reply from 10.1.1.1: bytes=56 Sequence=1 ttl=255 time=56 ms

Reply from 10.1.1.1: bytes=56 Sequence=2 ttl=255 time=4 ms

Reply from 10.1.1.1: bytes=56 Sequence=3 ttl=255 time=4 ms

Reply from 10.1.1.1: bytes=56 Sequence=4 ttl=255 time=52 ms

Reply from 10.1.1.1: bytes=56 Sequence=5 ttl=255 time=3 ms

--- 10.1.1.1 ping statistics ---

5 packet(s) transmitted

5 packet(s) received

0.00% packet loss

round-trip min/avg/max = 3/23/56 ms

4.

Establish IBGP peer relationships between PEs and CEs to redistribute VPN routes, and configure
routing policies to change the next hop of the routes.
# On CE 1, configure PE 1 as the IBGP peer, and configure a routing policy for the routes received
from PE 1, changing the next hop address of the routes to the IP address of PE 1.

system-view

[CE1] route-policy ce-ibgp permit node 0

[CE1-route-policy] apply ip-address next-hop 10.1.1.2

[CE1-route-policy] quit

[CE1] bgp 100

[CE1-bgp] peer 10.1.1.2 as-number 100

[CE1-bgp] peer 10.1.1.2 route-policy ce-ibgp import

[CE1-bgp] import-route direct

[CE1-bgp] quit

NOTE:

The configurations for the other three CEs (CE 2 through CE 4) are similar to those for CE 1. (Details not
shown)

# On PE 1, configure the CE 1 and CE 2 as its IBGP peers, and configure PE 1 as the route
reflector.