/
set protocols bgp neighbor as-override

set protocols bgp neighbor as-override


The set protocols bgp neighbor as-override command overrides AS number of the originating router with the local AS number.
The delete protocols  bgp neighbor as-override command restores the default setting.


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-unicastas-override

delete protocols bgp [vrf <vrf-name>{neighbor <ip>peer-group <peer-group> |interface <interface>} {ipv4-unicast|ipv4-labeled-unicast|ipv6-unicast|ipv6-labeled-unicastas-override


Parameter

Parameter

Description

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.


Usage Guidelines

Usually this configuration is used in PEs (Provider Edge) to replace the incoming customer AS number so the connected CE (Customer Edge) can use the same AS number as the other customer sites. This allows customers of the provider network to use the same AS number across their sites.
This command is only allowed for eBGP peers.



Example
• This example overrides AS number of the originating router with the local AS number.

admin@XorPlus# set protocols bgp neighbor 2.2.2.2 ipv4-unicast as-override
admin@XorPlus# commit


Copyright © 2025 Pica8 Inc. All Rights Reserved.