F3726, F3211, F3174, R5135, R3816-HP Firewalls and UTM Devices Network Management Configuration Guide-6PW100
490
4. Configuring AS number substitution
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
561. Enter system view.
system-view N/A
562. Enter BGP view or BGP-VPN
instance view.
• Enter BGP view:
bgp as-number
• Enter BGP-VPN instance view:
a. bgp as-number
b. ipv4-family vpn-instance
vpn-instance-name
Use either approach.
563. 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:
Ste
p
Command
Remarks
564. Enter system view.
system-view
N/A
565. Enter BGP view or BGP-VPN
instance view.
• Enter BGP view:
bgp as-number
• Enter BGP-VPN instance view:
a. bgp as-number
b. ipv4-family vpn-instance
vpn-instance-name
Use either approach.
566. Configure BGP to remove
private AS numbers from the
AS_PATH attribute of updates
to a peer or peer group.
peer { group-name | ip-address }
public-as-only
By default, BGP updates carry
private AS numbers.
6. 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.
For some network applications, a BGP router does not add its own AS number to the AS_PATH
attribute. In this case, you must configure the ignore-first-as command on the EBGP peer to ignore
the first AS number of EBGP route updates.
To ignore the first AS number of EBGP route updates:
Ste
p
Command
Remarks
567. Enter system view.
system-view N/A
568. Enter BGP view or BGP-VPN instance
view.
bgp as-number N/A