![](/images/new-backgrounds/1191620/19162093x1.webp)
BGP and BGP4+ Introduction
How to remove private AS numbers for BGP
There are public and private AS numbers, in the same way there are public and private IP addresses. Like the private IP addresses that you cannot send to the Internet, you cannot send private AS numbers to the Internet. This functionality enables you to remove them.
Public AS numbers range from 1 to 64,511. Private AS numbers range for 64,512 and 65,535. Private AS numbers are used to divide large ASs into smaller multiple ASs for eBGP.
ISPs may assign private AS numbers to save public AS number usage. When you receive private AS numbers, you need to remove them before you send updates to the Internet. To remove private AS numbers for BGP, use this command in the Router Configuration mode:
awplus(config-router)#
neighbor <neighborid> This command removes private AS numbers for BGP in Router
BGP4+ in IPv6 Address Family Configuration mode.
This command removes a private AS number and makes an update packet with a public AS number as the AS path attribute. So only public AS numbers are entered in Internet BGP routing tables, and private AS numbers are not entered in Internet BGP tables.
For the filtering to apply, both peering devices must be set to use either
The neighbor
Family Configuration mode for BGP4+. This command is only available in Router
Configuration mode for BGP.
Verify the application of this command with the show
■How to remove BGP filtering for private AS numbers
■How to apply BGP filtering for private AS numbers.
| Software Reference Supplement for SwitchBlade® x8112, x908, x900 and x610 Series Switches |
|
AlliedWare PlusTM Operating System - Software Version | 1.39 |