# On ASBR-PE1, set up an EBGP peer relation between ASBR-PE1 and ASBR-PE2.
[ASBR-PE1]
bgp 100
[ASBR-PE1-bgp]
ipv4-family vpn-instance vpn1
[ASBR-PE1-bgp-vpn1]
peer 192.1.1.2 as-number 200
[ASBR-PE1-bgp-vpn1]
import-route direct
[ASBR-PE1-bgp-vpn1]
quit
[ASBR-PE1-bgp]
quit
# On ASBR-PE2, set up an EBGP peer relation between ASBR-PE2 and ASBR-PE1.
[ASBR-PE2]
bgp 200
[ASBR-PE2-bgp]
ipv4-family vpn-instance vpn1
[ASBR-PE2-bgp-vpn1]
peer 192.1.1.1 as-number 100
[ASBR-PE2-bgp-vpn1]
import-route direct
[ASBR-PE2-bgp-vpn1]
quit
[ASBR-PE2-bgp]
quit
Run the
display bgp vpnv4 vpn-instance peer
command on the ASBR PE, and you can see
that the BGP peer relation is established between the ASBR-PEs.
Step 6
Verify the configuration.
After the preceding configuration, CEs can learn the routes from the interfaces of each other,
and CE1 and CE2 can ping each other successfully.
Take the display on CE1 as an example:
[CE1]
display ip routing-table
Route Flags: R - relied, D - download to fib
------------------------------------------------------------------------------
Routing Tables: Public
Destinations : 10 Routes : 10
Destination/Mask Proto Pre Cost Flags NextHop Interface
10.1.1.0/24 Direct 0 0 D 10.1.1.1 Vlanif10
10.1.1.1/32 Direct 0 0 D 127.0.0.1 InLoopBack0
10.1.1.255/32 Direct 0 0 D 127.0.0.1 InLoopBack0
10.2.1.0/24 BGP 255 0 D 10.1.1.2 Vlanif10
127.0.0.0/8 Direct 0 0 D 127.0.0.1 InLoopBack0
127.0.0.1/32 Direct 0 0 D 127.0.0.1 InLoopBack0
127.255.255.255/32 Direct 0 0 D 127.0.0.1 InLoopBack0
192.1.1.0/24 BGP 255 0 D 10.1.1.2 Vlanif10
192.1.1.2/32 BGP 255 0 D 10.1.1.2 Vlanif10
255.255.255.255/32 Direct 0 0 D 127.0.0.1 InLoopBack0
[CE1]
ping 10.2.1.1
PING 10.2.1.1: 56 data bytes, press CTRL_C to break
Reply from 10.2.1.1: bytes=56 Sequence=1 ttl=251 time=119 ms
Reply from 10.2.1.1: bytes=56 Sequence=2 ttl=251 time=141 ms
Reply from 10.2.1.1: bytes=56 Sequence=3 ttl=251 time=136 ms
Reply from 10.2.1.1: bytes=56 Sequence=4 ttl=251 time=113 ms
Reply from 10.2.1.1: bytes=56 Sequence=5 ttl=251 time=78 ms
--- 10.2.1.1 ping statistics ---
5 packet(s) transmitted
5 packet(s) received
0.00% packet loss
round-trip min/avg/max = 78/117/141 ms
Run the
display ip routing-table vpn-instance
command on an ASBR-PE, and you can see the
VPN routing table on the ASBR-PE.
[ASBR-PE1]
display ip routing-table vpn-instance vpn1
Route Flags: R - relied, D - download to fib
------------------------------------------------------------------------------
Routing Tables: vpn1
Destinations : 6 Routes : 6
Destination/Mask Proto Pre Cost Flags NextHop Interface
10.1.1.0/24 BGP 255 0 RD 1.1.1.9 Vlanif11
10.2.1.0/24 BGP 255 0 D 192.1.1.2 Vlanif12
192.1.1.0/24 Direct 0 0 D 192.1.1.1 Vlanif12
Quidway S7700 Smart Routing Switch
Configuration Guide - VPN
3 BGP MPLS IP VPN Configuration
Issue 01 (2011-07-15)
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
225