H3C Technologies H3C S7500E Series Switches User Manual
Page 287

6-62
[PE2-vpn-instance] quit
[PE2] interface vlan-interface 11
[PE2-Vlan-interface11] ip binding vpn-instance vpn1
[PE2-Vlan-interface11] ip address 10.2.1.2 24
[PE2-Vlan-interface11] quit
# Configure ASBR PE 1, creating a VPN instance and binding the instance to the interface connected
with ASBR PE 2. Note that ASBR PE 1 considers ASBR PE 2 its CE.
[ASBR-PE1] ip vpn-instance vpn1
[ASBR-PE1-vpn-instance-vpn1] route-distinguisher 100:1
[ASBR-PE1-vpn-instance-vpn1] vpn-target 100:1 both
[ASBR-PE1-vpn-instance-vpn1] quit
[ASBR-PE1] interface vlan-interface 13
[ASBR-PE1-Vlan-interface13] ip binding vpn-instance vpn1
[ASBR-PE1-Vlan-interface13] ip address 192.1.1.1 24
[ASBR-PE1-Vlan-interface13] quit
# Configure ASBR PE 2, creating a VPN instance and binding the instance to the interface connected
with ASBR PE 1. Note that ASBR PE 2 considers ASBR PE 1 its CE.
[ASBR-PE2] ip vpn-instance vpn1
[ASBR-PE2-vpn-vpn-vpn1] route-distinguisher 200:1
[ASBR-PE2-vpn-vpn-vpn1] vpn-target 100:1 both
[ASBR-PE2-vpn-vpn-vpn1] quit
[ASBR-PE2] interface vlan-interface 13
[ASBR-PE2-Vlan-interface13] ip binding vpn-instance vpn1
[ASBR-PE2-Vlan-interface13] ip address 192.1.1.2 24
[ASBR-PE2-Vlan-interface13] quit
After completing the above configurations, you should see the VPN instance configurations by issuing
the display ip vpn-instance command.
The PEs should be able to ping the CEs and the ASBR PEs should be able to ping each other.
4) Establish EBGP peer relationship between PEs and CEs to allow VPN routes to be injected
# Configure CE 1.
[CE1] bgp 65001
[CE1-bgp] peer 10.1.1.2 as-number 100
[CE1-bgp] import-route direct
[CE1-bgp] quit
# Configure PE 1.
[PE1] bgp 100
[PE1-bgp] ipv4-family vpn-instance vpn1
[PE1-bgp-vpn1] peer 10.1.1.1 as-number 65001
[PE1-bgp-vpn1] import-route direct
[PE1-bgp-vpn1] quit
[PE1-bgp] quit
# Configure CE 2.
[CE2] bgp 65002
[CE2-bgp] peer 10.2.1.2 as-number 200
[CE2-bgp] import-route direct
[CE2-bgp] quit
# Configure PE 2.
[PE2] bgp 200