To do...
Enter system view
Enter BGP view
Permit local AS number to appear in routes
from a peer or peer group and specify the
appearance times
Disable BGP from considering AS_PATH during best route selection
Follow these steps to disable BGP from considering AS_PATH during best route selection:
To do...
Enter system view
Enter BGP view
Disable BGP from considering AS_PATH
during best route selection
Specify a fake AS number for a peer or peer group
When Router A in AS 2 is moved to AS 3, you can configure Router A to specify a fake AS number of 2
for created connections to eBGP peers or peer groups. In this way, these eBGP peers still think Router A
is in AS 2 and need not change their configurations. This feature ensures uninterrupted BGP services.
Follow these steps to specify a fake AS number for a peer or peer group:
To do...
Enter system view
Enter BGP view
Specify a fake AS number for a peer or peer
group
NOTE:
This command is only applicable to an eBGP peer or peer group.
Configure AS number substitution
In L3VPN, if eBGP is used between PE and CE, sites in different geographical areas must 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.
Use the command...
system-view
bgp as-number
peer { group-name | ip-address }
allow-as-loop [ number ]
Use the command...
system-view
bgp as-number
bestroute as-path-neglect
Use the command...
system-view
bgp as-number
peer { group-name | ip-address }
fake-as as-number
217
Remarks
—
—
Optional
By default, the local AS
number is not allowed.
Remarks
—
—
Optional
By default, BGP considers
AS_PATH during best route
selection.
Remarks
—
—
Optional
Not specified by default