R3166-R3206-HP High-End Firewalls Network Management Configuration Guide-6PW101
342
To do… Use the command…
Remarks
Permit local AS number to appear in routes
from a peer/peer group and specify the
appearance times
peer { group-name | ip-address }
allow-as-loop [ number ]
Optional
By default, the local AS
number is not allowed.
2. 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… Use the command…
Remarks
Enter system view system-view
—
Enter BGP view bgp as-number
—
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. Specify a fake AS number for a peer/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/peer groups. In this way, these eBGP peers still think Router A is
in AS 2 and thus need not change their configurations. This feature ensures uninterrupted BGP services.
Follow these steps to specify a fake AS number for a peer/peer group:
To do… Use the command…
Remarks
Enter system view system-view
—
Enter BGP view bgp as-number
—
Specify a fake AS number for a
peer/peer group
peer { group-name | ip-address }
fake-as as-number
Optional
Not specified by default
NOTE:
This command is only applicable to an eBGP peer or peer group.
Remove private AS numbers from updates to a peer/peer group
Follow these steps to remove private AS numbers from updates to a peer/peer group:
To do… Use the command…
Remarks
Enter system view system-view
—
Enter BGP view bgp as-number
—
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
Optional
By default, BGP updates
carry private AS numbers.
Tuning and optimizing BGP networks
Prerequisites
BGP connections have been created.