peer 10.4.1.2 as-number 100
#
ipv4-family unicast
undo synchronization
import-route direct
peer 10.4.1.2 enable
#
return
3.18.2 Example for Configuring the BGP AS Number Substitution
If two VPN sites have the same AS number, and EBGP connections are established between
PEs and CEs, you must enable the AS number substitution function on the PEs that the two VPN
sites access. Otherwise, EBGP discards the routes of the same AS number.
Networking Requirements
As shown in Figure 3-3,CE1 and CE2 belong to the same VPN, and access PE1 and PE2
respectively. CE1 and CE2 use the same AS number 600.
Figure 3-3 Networking diagram of BGP AS number substitution
GE2/0/0
20.1.1.1/24
GE2/0/0
30.1.1.2/24
GE1/0/0
10.1.1.2/24
GE2/0/0
100.1.1.1/24
GE1/0/0
10.1.1.1/24
CE1
PE1 PE2
GE1/0/0
10.2.1.2/24
CE2
GE1/0/0
10.2.1.1/24
VPN1 VPN1
Loopback1
3.3.3.9/32
Loopback1
1.1.1.9/32
Loopback1
2.2.2.9/32
GE1/0/0
20.1.1.2/24
GE2/0/0
30.1.1.1/24
P
GE2/0/0
200.1.1.1/24
Backbone
AS 600 AS 600
AS 100
Configuration Roadmap
The configuration roadmap is as follows:
1. Configure IGP on the backbone network to realize the interconnection between PEs and
between the PE and the P.
2. Set up the MPLS LDP LSP between PEs. Create the VPN instance on the PE. Configure
the CE to access the PE.
3. Set up the EBGP relationship between the PE and the CE. Import the route of the CE to
the PE.
Huawei AR1200 Series Enterprise Routers
Configuration Guide - VPN 3 BGP MPLS IP VPN Configuration
Issue 01 (2012-04-20) Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
161