as-notation plain

Function

The as-notation plain command configures BGP 4-byte AS numbers to be displayed as an integer.

The undo as-notation plain command configures BGP 4-byte AS numbers to be displayed in dotted notation.

By default, BGP 4-byte AS numbers are displayed in dotted notation (in the format of x.y).

Format

as-notation plain

undo as-notation plain

Parameters

None

Views

System view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
l3vpn write

Usage Guidelines

Usage Scenario

By default, display commands such as the display bgp peer command display 4-byte AS numbers in dotted notation.

To display 4-byte AS numbers as an integer, run the as-notation plain command. After the as-notation plain command is run. 4-byte AS numbers include:

  • Independent 4-byte AS number
  • 4-byte AS number in an extended community attribute
  • 4-byte AS number in a route distinguisher (RD)
  • 4-byte AS number in a VPN target (also called a route target)
  • 4-byte AS number in the Site-of-Origin attribute

    For example, a 4-byte AS number in dotted notation is x.y. The conversion relationship between an integral 4-byte AS number and a 4-byte AS number in dotted notation is as follows:

    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

After the as-notation plain command is run:

  • If 4-byte AS numbers are configured to be displayed as an integer, 4-byte AS numbers in the configuration information generated by the system are also displayed as integers.
  • If 4-byte AS numbers are configured to be displayed in dotted notation, 4-byte AS numbers in the configuration information generated by the system are also displayed in dotted notation.

    If the system is using an AS_Path regular expression or an extended community attribute filter as an import or export policy, changing the format of 4-byte AS numbers does not allow the received routes to pass the policy, but affects the policy matching result of newly received routes. Therefore, you need to reconfigure an AS_Path regular expression using the ip as-path-filter command or an extended community attribute filter using the ip extcommunity-filter or ip extcommunity-list soo command after changing the format of 4-byte AS numbers. Otherwise, the policy cannot be matched as expected, causing network faults.
  • If 4-byte AS numbers are configured to be displayed as an integer, 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 are configured to be displayed in dotted notation, change 4-byte AS numbers in AS_Path regular expressions and extended community attribute filters to 4-byte AS numbers in dotted notation.

Example

# Configure BGP 4-byte AS numbers to be displayed as an integer.
<HUAWEI> system-view
[~HUAWEI] as-notation plain
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >