Configuring as number substitution, Ignoring the first as number of ebgp route updates – H3C Technologies H3C SR8800 User Manual
Page 240

224
Configuring AS number substitution
In MPLS L3VPN, if EBGP is used between PE and CE, sites in different geographical areas should have
different AS numbers assigned to ensure correct route advertisement. If different CEs use the same AS
number, you must configure the relevant PE to replace the AS number of the CE as its own AS number.
This feature is used for route advertisement only.
Figure 89 AS number substitution configuration
As shown in the above figure, CE 1 and CE 2 use the same AS number of 800. If AS number substitution
for CE 2 is configured on PE 2, and PE 2 receives a BGP update sent from CE 1, PE 2 replaces AS number
800 as its own AS number 100. Similar configuration must also be made on PE 1.
To configure AS number substitution for a peer/peer group:
Step Command
Remarks
1.
Enter system view.
system-view
N/A
2.
Enter BGP view.
bgp as-number
N/A
3.
Replace the AS number of a peer/peer
group in the AS_PATH attribute as the
local AS number.
peer { group-name | ip-address }
substitute-as
Not configured by default
CAUTION:
Improper AS number substitution configuration may cause route loops; use this command with caution.
Removing private AS numbers from updates to a peer/peer group
To remove private AS numbers from updates to a peer/peer group:
Step Command
Remarks
1.
Enter system view.
system-view
N/A
2.
Enter BGP view.
bgp as-number
N/A
3.
Configure BGP to remove private AS
numbers from the AS_PATH attribute of
updates to a peer/peer group.
peer { group-name | ip-address }
public-as-only
By default, BGP updates
carry private AS numbers.
Ignoring the first AS number of EBGP route updates
Typically, BGP checks the AS_PATH attribute of a route update received from a peer. If the first AS number
is not that of the BGP peer, the BGP router discards the route update.
To ignore the first AS number of EBGP route updates:
- H3C SR6600-X H3C SR6600 H3C WX6000 Series Access Controllers H3C WX5000 Series Access Controllers H3C WX3000 Series Unified Switches H3C LSWM1WCM10 Access Controller Module H3C LSWM1WCM20 Access Controller Module H3C LSQM1WCMB0 Access Controller Module H3C LSRM1WCM2A1 Access Controller Module H3C LSBM1WCM2A0 Access Controller Module