H3C Technologies H3C SR8800 User Manual

Page 158

Advertising
background image

147

[PE2-vpn-instance-vpn1] quit

[PE2] interface GigabitEthernet 3/1/1

[PE2-GigabitEthernet3/1/1] ip binding vpn-instance vpn1

[PE2-GigabitEthernet3/1/1] ip address 192.168.2.1 255.255.255.0

[PE2-GigabitEthernet3/1/1] quit

# Perform the display ip vpn-instance command on the PEs to verify the configuration of the VPN

instance. Take PE 1 for example:

[PE1] display ip vpn-instance instance-name vpn1

VPN-Instance Name and ID : vpn1, 1

Create time : 2006/09/27 15:10:29

Up time : 0 days, 00 hours, 03 minutes and 09 seconds

Route Distinguisher : 100:1

Export VPN Targets : 100:1

Import VPN Targets : 100:1

Tunnel Policy : policy1

Interfaces : GigabitEthernet3/1/1

# Ping connected CEs on PEs to test connectivity. For example, ping CE 1 on PE 1:

[PE1] ping -vpn-instance vpn1 192.168.1.2

PING 192.168.1.2: 56 data bytes, press CTRL_C to break

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

Reply from 192.168.1.2: bytes=56 Sequence=2 ttl=255 time=26 ms

Reply from 192.168.1.2: bytes=56 Sequence=3 ttl=255 time=26 ms

Reply from 192.168.1.2: bytes=56 Sequence=4 ttl=255 time=26 ms

Reply from 192.168.1.2: bytes=56 Sequence=5 ttl=255 time=26 ms

--- 192.168.1.2 ping statistics ---

5 packet(s) transmitted

5 packet(s) received

0.00% packet loss

round-trip min/avg/max = 26/30/47 ms

The output shows that PE 1 can reach CE 1.

6.

Configure BGP
# Configure CE 1.

[CE1] bgp 65001

[CE1-bgp] peer 192.168.1.1 as-number 100

[CE1-bgp] quit

# Configure PE 1 to establish the EBGP peer relationship with CE 1, and the IBGP peer relationship

with PE 2.

[PE1] bgp 100

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

[PE1-bgp-vpn1] peer 192.168.1.2 as-number 65001

[PE1-bgp-vpn1] import-route direct

[PE1-bgp-vpn1] quit

[PE1-bgp] peer 3.3.3.3 as-number 100

[PE1-bgp] peer 3.3.3.3 connect-interface loopback 0

[PE1-bgp] ipv4-family vpnv4

[PE1-bgp-af-vpnv4] peer 3.3.3.3 enable

[PE1-bgp-af-vpnv4] quit

Advertising