The as-notation plain command configures a BGP 4-byte AS number to be displayed as an integer.
The undo as-notation plain command configures a BGP 4-byte AS number to be displayed in dotted notation.
By default, a BGP 4-byte AS number is displayed in dotted notation (that is, in the format of x.y).
Usage Scenario
By default, display commands such as the display bgp peer command display 4-byte AS numbers in dotted notation.
4-byte AS number in the Site-of-Origin attribute
Assume that a 4-byte AS number in dotted notation is x.y. Following is the conversion relationship between an integral 4-byte AS number and a 4-byte AS number in dotted notation:
Integral 4-byte AS number = x x 65536 + y
For example, if a 4-byte AS number in dotted notation is 2.3, the corresponding integral 4-byte AS number is 131075 (2 x 65536 + 3).
Precautions
# Configure a BGP 4-byte AS number to be displayed as an integer.
<HUAWEI> system-view
[HUAWEI] as-notation plain
Warning: If the configuration takes effect, the regular expression of the filter for 4-byte AS path should be changed to the asplain format, otherwise match will fail. Continue? [Y/N]y
# Configure a BGP 4-byte AS number to be displayed in dotted notation.
<HUAWEI> system-view
[HUAWEI] undo as-notation plain
Warning: If the configuration takes effect, the regular expression of the filter for 4-byte AS path should be changed to the asdot format, otherwise match will fail. Continue? [Y/N]y