Programmable Internetworking & Communication Operating System Docs ... Click Spaces -> Space Directory to see docs for all releases ...
Page tree
Skip to end of metadata
Go to start of metadata

The set protocols bgp neighbor remove-private-as command removes private ASNs from routes sent to the neighbor.

The delete protocols  bgp neighbor remove-private-as command allows the private-AS number to be carried in BGP update message.

Command Syntax

set protocols bgp [vrf <vrf-name>] {neighbor <ip>peer-group <peer-group> |interface <interface>} {ipv4-unicast|ipv4-labeled-unicast|ipv6-unicast|ipv6-labeled-unicastremove-private-as [all] [replace-as]

delete protocols bgp [vrf <vrf-name>] {neighbor <ip>peer-group <peer-group> |interface <interface>} {ipv4 unicast|ipv4 labeled-unicast|ipv6 unicast|ipv6 labeled-unicastremove-private-as [all] [replace-as]




vrf <vrf-name>

Optional. Specifies a VRF name. The value is a string. It’s a user-defined VRF set by the command set ip vrf <vrf-name> [description <string>].

{ipv4-unicast|ipv4-labeled-unicast|ipv6-unicast|ipv6-labeled-unicast}Specifies the type of the address family.
neighbor <ip>Specifies the IP address of a peer.
peer-group <peer-group>Specifies a peer group.
interface <interface>Specifies an interface for BGP connection.
[all]Optional. Apply to all AS numbers.
[replace-as]Optional. Replaces the private ASNs with your public ASN.

Usage Guidelines

If you use private ASNs in the data center, any routes you send out to the internet contain your private ASNs. You can remove all the private ASNs from routes to a specific neighbor.

• This example  removes private ASNs from routes sent to the neighbor.

admin@XorPlus# set protocols bgp neighbor ipv4-unicast remove-private-as
admin@XorPlus# commit

  • No labels