neighbor remove-private-as
Provides the removal of private autonomous system numbers for a specified peer or peer group for this EBGP neighbor.
Syntax: neighbor {peer | peer-group} remove-private-as
no neighbor {peer | peer-group} remove-private-as
peer
Specifies the IP address of the peer for which private AS numbers should be removed.
peer-group
Specifies the peer group for which private AS numbers should be removed.
Description: When an autonomous system provides BGP to a single provider, and the routing policy will not be visible to the internet, private autonomous system numbers are used in order to conserve public autonomous system numbers. Private AS numbers are in the range 64512 - 65535. When BGP advertises prefixes to external neighbors, these private AS numbers should be removed. IPriori provides for external BGP neighbors to identify individual peers and peer groups for the removal of private AS numbers.
Use the neighbor remove-private-as command in router configuration command mode to identify peers and peer groups for which the private AS numbers should be removed for this EBGP neighbor.
Use the no neighbor remove-private-as command in router configuration command mode to disable removal of private AS numbers for specified peers or peer groups for this EBGP neighbor.
The following behaviors apply to the neighbor remove-private-as command:
- This command is only available to external BGP (EBGP) neighbors.
- Private autonomous system numbers are removed when the autonomous system path of an update passed to an external neighbor includes a private autonomous system number.
- If the AS_PATH contains confederations, only private autonomous system numbers that come after the confederation portion of an AS_PATH are removed. This operation takes place after any applicable removal of the confederation portion of the AS_PATH.
- Private autonomous system numbers are not removed from any AS_SETs (aggregated routes) the AS_PATH contains.
- Private autonomous system numbers are not removed from an autonomous system path that contains the autonomous system number of the EBGP.
Factory Default: None.
Command Mode: Router configuration.
Example 1: The following example enters AS 200 and configures a peer and peer group to remove private AS numbers:
router#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
router(config)#router bgp 200
router(config-router)#neighbor techpubs peer-group
router(config-router)#neighbor techpubs remote-as 100
router(config-router)#neighbor techpubs remove-private-as
router(config-router)#neighbor 10.200.83.190 remote-as 300
router(config-router)#neighbor 10.200.83.190 remove-private-as
router(config)#end
router#show ip bgp peer-group techpubs
BGP Peer-group: techpubs remote AS 100
BGP version: 4 State:Administratively down
Route-Reflector-client:False
def orignat: False ebgp multihop: False
send comm: False soft reconfig: False
Private AS number removed from outbound updates to this peer-group members
router#show ip bgp neighbor 10.200.83.190
BGP neighbor 10.200.83.190 using remote AS 300
router ID: 0.0.0.0 version: 4
state: Active time: 0:00:00
def orignat: False ebgp multihop: False
n hop self: False route ref client: False
send comm: False soft reconfig: False
hold time: 180 sec keepalive time: 60 sec
advertisement interval: 5 sec
# notf rcvd: 0 # msg rcvd: 0 # updates rcvd: 0
# notf sent: 0 # msg sent: 0 # updates sent: 0
Private AS number removed from outbound updates to this neighbor
.
.
.
router#
Example 2: The following example enters AS 200 and disables private AS number removal from a peer and peer group:
router#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
router(config)#router bgp 200
router(config-router)#neighbor techpubs peer-group
router(config-router)#neighbor techpubs remote-as 100
router(config-router)#no neighbor techpubs remove-private-as
router(config-router)#neighbor 10.200.83.190 remote-as 300
router(config-router)#no neighbor 10.200.83.190 remove-private-as
router(config)#end
router#show ip bgp peer-group techpubs
BGP Peer-group: techpubs remote AS 100
BGP version: 4 State:Administratively down
Route-Reflector-client:False
def orignat: False ebgp multihop: False
send comm: False soft reconfig: False
router#show ip bgp neighbor 10.200.83.190
BGP neighbor 10.200.83.190 using remote AS 300
router ID: 0.0.0.0 version: 4
state: Active time: 0:00:00
def orignat: False ebgp multihop: False
n hop self: False route ref client: False
send comm: False soft reconfig: False
hold time: 180 sec keepalive time: 60 sec
advertisement interval: 5 sec
# notf rcvd: 0 # msg rcvd: 0 # updates rcvd: 0
# notf sent: 0 # msg sent: 0 # updates sent: 0
.
.
.
router#
Related Commands: show ip bgp
Copyright © 2004
Avici Systems Inc.
Avici® and TSR®
is a registered trademark of Avici Systems Inc.
IPriori, Composite Links, SSR, QSR, and NSR® are
trademarks of Avici Systems Inc.
Source
File Name: BGP_Nd.fm
HTML File Name: BGP_Nd38.html
Last Updated: 05/10/04 at 16:36:55