# neighbor remove-private-as

#### Syntax

[ no | default ] neighbor { ipAddress | ipv6Address | peerGroupName } remove-private-as

#### Release Information

Command introduced before JunosE Release 7.1.0.
ipv6Address variable added in JunosE Release 8.0.0.

#### Description

Removes private AS numbers in updates sent to external peers. Private AS numbers are only in the range 64,512–65,535. The no version halts removing private AS numbers. The default version removes the explicit configuration from the peer or peer group and reestablishes inheritance of the feature configuration.

#### Options

- ipAddress—IP address of BGP neighbor
- ipv6Address—IPv6 address of BGP neighbor
- peerGroupName—Name of a BGP peer group. If you specify a BGP peer group by using the peerGroupName argument, all the members of the peer group inherit the characteristic configured with this command. You cannot override the characteristic for a specific member of the peer group.

#### Mode

Address Family Configuration, Router Configuration