Figure 89 AS number substitution configuration
EBGP_Update:10.1.1.1/32
AS_PATH:800
AS 800
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.
Follow these steps to configure AS number substitution for a peer or peer group:
To do...
Enter system view
Enter BGP view
Replace the AS number of a peer or peer
group in the AS_PATH attribute as the local
AS number
CAUTION:
Improper AS number substitution configuration may cause route loops; use this command with caution.
Remove private AS numbers from updates to a peer or peer group
Follow these steps to remove private AS numbers from updates to a peer or peer group:
To do...
Enter system view
Enter BGP view
Configure BGP to remove private AS
numbers from the AS_PATH attribute of
updates to a peer or peer group
Ignore 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.
Follow these steps to ignore the first AS number of eBGP route updates:
To do...
Enter system view
Enter BGP view
AS 100
PE 1
MPLS backbone
VPNv4_Update:10.1.0.0/16
RD:10.1.1.1/32
AS_PATH:800
CE 1
Use the command...
system-view
bgp as-number
peer { group-name | ip-address }
substitute-as
Use the command...
system-view
bgp as-number
peer { group-name | ip-address }
public-as-only
Use the command...
system-view
bgp as-number
218
PE 2
EBGP_Update:10.1.1.1/32
AS_PATH:100,100
CE 2
AS 800
Remarks
—
—
Required
Not configured by default.
Remarks
—
—
Required
By default, BGP updates
carry private AS numbers.
Remarks
—
—