
412
[PE2-GigabitEthernet2/1/1] quit
# Configure CE 1.
<CE1> system-view
[CE1] interface gigabitethernet 2/1/1
[CE1-GigabitEthernet2/1/1] ipv6 address 2001:1::1 24
[CE1-GigabitEthernet2/1/1] quit
# Configure CE 2.
<CE2> system-view
[CE2] interface gigabitethernet 2/1/1
[CE2-GigabitEthernet2/1/1] ipv6 address 2001:2::1 24
[CE2-GigabitEthernet2/1/1] quit
After completing the configurations, execute the
display ip vpn-instance
command on the
PEs to view information about the VPN instance. Use the ping command to test connectivity
between the PEs and their attached CEs. The PEs can ping their attached CEs. Take PE 1 as
an example:
[PE1] display ip vpn-instance
Total VPN-Instances configured : 1
VPN-Instance Name RD Create Time
vpn1 100:1 2006/08/13 09:32:45
[PE1] ping ipv6 -vpn-instance vpn1 2001:1::1
PING 2001:1::1 : 56 data bytes, press CTRL_C to break
Reply from 2001:1::1
bytes=56 Sequence=1 hop limit=64 time = 1 ms
Reply from 2001:1::1
bytes=56 Sequence=2 hop limit=64 time = 1 ms
Reply from 2001:1::1
bytes=56 Sequence=3 hop limit=64 time = 1 ms
Reply from 2001:1::1
bytes=56 Sequence=4 hop limit=64 time = 1 ms
Reply from 2001:1::1
bytes=56 Sequence=5 hop limit=64 time = 1 ms
--- 2001:1::1 ping statistics ---
5 packet(s) transmitted
5 packet(s) received
0.00% packet loss
round-trip min/avg/max = 1/1/1 ms
4.
Establish EBGP peer relationships between PEs and CEs to allow them to exchange VPN
routes:
# Configure CE 1.
[CE1] bgp 65410
[CE1-bgp] ipv6-family
[CE1-bgp-af-ipv6] peer 2001:1::2 as-number 100
[CE1-bgp-af-ipv6] import-route direct
[CE1-bgp-af-ipv6] quit
# Configure PE 1.
[PE1] bgp 100
[PE1-bgp] ipv6-family vpn-instance vpn1
[PE1-bgp-ipv6-vpn1] peer 2001:1::2 as-number 65410