R3303-HP HSR6800 Routers MPLS Configuration Guide

431
[PE2-GigabitEthernet2/1/1] ipv6 address 2001:2::2 96
[PE2-GigabitEthernet2/1/1] quit
# Configure ASBR-PE 1, creating a VPN instance and binding the VPN instance to the interface
connected to ASBR-PE 2 (ASBR-PE 1 considers ASBR-PE 2 its attached CE).
[ASBR-PE1] ip vpn-instance vpn1
[ASBR-PE1-vpn-vpn1] route-distinguisher 100:2
[ASBR-PE1-vpn-vpn1] vpn-target 100:1 both
[ASBR-PE1-vpn-vpn1] quit
[ASBR-PE1] interface pos 5/1/2
[ASBR-PE1-POS5/1/2] ip binding vpn-instance vpn1
[ASBR-PE1-POS5/1/2] ipv6 address 2002:1::1 96
[ASBR-PE1-POS5/1/2] quit
# Configure ASBR-PE 2, creating a VPN instance and binding the VPN instance to the interface
connected to ASBR-PE 1 (ASBR-PE 2 considers ASBR-PE 1 its attached CE).
[ASBR-PE2] ip vpn-instance vpn1
[ASBR-PE2-vpn-vpn1] route-distinguisher 200:2
[ASBR-PE2-vpn-vpn1] vpn-target 100:1 both
[ASBR-PE2-vpn-vpn1] quit
[ASBR-PE2] interface pos 5/1/2
[ASBR-PE2-POS5/1/2] ip binding vpn-instance vpn1
[ASBR-PE2-POS5/1/2] ipv6 address 2002:1::2 96
[ASBR-PE2-POS5/1/2] quit
After completing the configurations, you can view the VPN instance information by issuing the
display ip vpn-instance command.
Each PE can ping its attached CE, and ASBR-PE 1 and ASBR-PE 2 can ping each other.
4. Establish EBGP peer relationships between PEs and CEs to allow them to exchange VPN routes:
# Configure CE 1.
[CE1] bgp 65001
[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::1 as-number 65001
[PE1-bgp-ipv6-vpn1] import-route direct
[PE1-bgp-ipv6-vpn1] quit
[PE1-bgp] quit
# Configure CE 2.
[CE2] bgp 65002
[CE1-bgp] ipv6-family
[CE2-bgp-af-ipv6] peer 2001:2::2 as-number 200
[CE2-bgp-af-ipv6] import-route direct
[CE2-bgp-af-ipv6] quit
# Configure PE 2.
[PE2] bgp 200