F3215-HP Load Balancing Module Network Management Configuration Guide-6PW101
273
Ste
p
Command
Remarks
1. Enter system view. system-view N/A
2. Enter BGP view.
bgp as-number N/A
3. Disable BGP from considering
AS_PATH during best route
selection.
bestroute as-path-neglect
Optional.
By default, BGP considers
AS_PATH during best route
selection.
3. Specifying 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.
To specify a fake AS number for a peer or peer group:
Ste
p
Command
Remarks
1. Enter system view.
system-view N/A
2. Enter BGP view. bgp as-number N/A
3. Specify a fake AS number for
a peer or peer group.
peer { group-name | ip-address }
fake-as as-number
Optional.
Not specified by default.
This command is only
applicable to an EBGP peer or
peer group.
4. Configuring AS number substitution
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 CEs in different geographical areas 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 AS number substitution only in the specific scenario. Improper configuration can result in routing
loops.
To configure AS number substitution for a peer or peer group:
Ste
p
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 or peer group in the
AS_PATH attribute as the local
AS number.
peer { group-name | ip-address }
substitute-as
Not configured by default.
5. Removing private AS numbers from updates to a peer or peer group
Private AS numbers are typically used in test networks, and need not be transmitted in public networks.
The range of private AS numbers is from 64512 to 65535.
To remove private AS numbers from updates to a peer or peer group: