(Optional) Configuring the Format of BGP 4-Byte AS Numbers
Context
By default, a BGP 4-byte AS number is displayed in dotted notation (x.y). To use integral 4-byte AS numbers, perform this configuration task to display 4-byte AS numbers as integers.
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).
- If integral 4-byte AS numbers are configured, you must change 4-byte AS numbers in AS_Path regular expressions and extended community attribute filters to integral 4-byte AS numbers.
- If 4-byte AS numbers in dotted notation are configured, you must change 4-byte AS numbers in AS_Path regular expressions and extended community attribute filters to 4-byte AS numbers in dotted notation.
Procedure
- Run system-view
The system view is displayed.
- Run as-notation plain
BGP 4-byte AS numbers are configured to display as integers.
After you run the as-notation plain command, BGP 4-byte AS numbers are displayed as integers in display commands but are still displayed in dotted notation in the configuration file.
- Run commit
The configuration is committed.