set protocols bgp as-notation


The set protocols bgp as-notation command configures the display format of the 4-byte Autonomous System (AS) numbers be shown for all show commands.

By default, the BGP 4-byte AS number is displayed in the same format as the AS number configured in the set protocols bgp [vrf <vrf-name>local-as <AS-NUMBER> command.

The delete protocols bgp as-notation command deletes the configuration.


Command Syntax

set protocols bgp [vrf <vrf-name>] as-notation <dot | dot+ | plain>


Parameters

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>].

dot

Specifies that Autonomous System (AS) numbers greater than 65535 be shown in dotted integer format for all show commands.

dot+

Specifies to force all Autonomous System (AS) numbers to be shown in dotted integer format for all show commands.

plain

Specifies that Autonomous System (AS) numbers be shown in non-dotted, simple integer.


Usage Guidelines

The set protocols bgp as-notation command changes the display format of the 4-byte AS number and AS_PATH that appears in the display information of all show commands.

The conversion relationship between 4-byte AS number in integer format (z) and 4-byte AS number in dotted format (x.y) is: z = x * 65536 + y, for example, a 4-byte AS number 10.2 in dotted format, the corresponding 4-byte AS number in integer format is: 10*65536+2=655362.

NOTE

The set protocols bgp as-notation command and the set protocols bgp [vrf <vrf-name>local-as <AS-NUMBER> command must be in the same commit. If you want to configure as-notation when the local-as configuration has been successfully committed, then you have to remove all the BGP configuration (all set protocols bgp xx commands) and then reconfigure to make sure that the as-notation command and the local-as command are in the same commit.


Example

  • Configure the display format of the 4-byte Autonomous System (AS) numbers be shown in dotted integer format for all show commands.
admin@PICOS# set protocols bgp local-as 12
admin@PICOS# set protocols bgp as-notation dot+
admin@PICOS# commit

Copyright © 2024 Pica8 Inc. All Rights Reserved.