No relevant resource is found in the selected language.

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Read our privacy policy>Search

Reminder

To have a better experience, please upgrade your IE browser.

upgrade

Configuration Guide - IP Routing 01

NE05E and NE08E V300R003C10SPC500

This is NE05E and NE08E V300R003C10SPC500 Configuration Guide - IP Routing

Rate and give feedback:
Huawei uses machine translation combined with human proofreading to translate this document to different languages in order to help you better understand the content of this document. Note: Even the most advanced machine translation cannot match the quality of professional translators. Huawei shall not bear any responsibility for translation accuracy and it is recommended that you refer to the English document (a link for which has been provided).
Configuring the Format of BGP 4-Byte AS Numbers

Configuring the Format of BGP 4-Byte AS Numbers

You can change the format of BGP 4-byte AS numbers to your desired format.

Usage Scenario

By default, a BGP 4-byte AS number is displayed in dotted notation. To use integral 4-byte AS numbers, perform this configuration task to display 4-byte AS numbers as integers.

Changing the format of 4-byte AS numbers will affect matching results of AS_Path regular expressions and extended community attribute filters. Therefore, if the system is using an AS_Path regular expression or an extended community attribute filter as an import or export policy, you must 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. This reconfiguration ensures that routes match the import or export policy.
  • 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

  1. Run system-view

    The system view is displayed.

  2. Run as-notation plain

    BGP 4-byte AS numbers are configured to display in integers.

    NOTE:

    After you run the as-notation plain command, BGP 4-byte AS numbers are displayed in integers in display commands but are still displayed in dotted notation in the configuration file.

  3. Run commit

    The configuration is committed.

Checking the Configurations

After configuring the format of BGP 4-byte AS numbers, perform the following operations to check the configuration:
  • Run the display bgp peer [ [ ipv4-address ] verbose ] command to check the format of BGP 4-byte AS numbers.
  • Run the display bgp routing-table command to check the matching results of BGP routes against AS_Path regular expressions.

# The following is an example before the as-notation plain command is run. In this example, the 4-byte AS numbers are displayed in dotted notation (see 1.1 and 1.2 in the command output).

<HUAWEI> display bgp peer
 BGP local router ID : 10.1.1.2
 Local AS number : 1.1
 Total number of peers : 2                 Peers in established state : 2

  Peer            V          AS  MsgRcvd  MsgSent  OutQ  Up/Down       State PrefRcv

  10.1.1.1        4        1.2        28       29     0 00:26:36 Established       0
  10.1.2.2        4       65001        2        2     0 00:00:21 Established       0

# The following is an example after the as-notation plain command is run. In this example, 4-byte AS numbers 1.1 and 1.2 have been changed to the integers 65537 and 65538.

<HUAWEI> display bgp peer
 BGP local router ID : 10.1.1.2
 Local AS number : 65537
 Total number of peers : 2                 Peers in established state : 2

  Peer            V          AS  MsgRcvd  MsgSent  OutQ  Up/Down       State PrefRcv

  10.1.1.1        4       65538      28       29     0 00:26:51 Established       0
  10.1.2.2        4       65001        2        2     0 00:00:36 Established       0

# The following is an example of running the display bgp routing-table command after the as-notation plain command is run. In this example, the AS number in the AS_Path regular expression is an integer (65537), and the corresponding information is displayed.

<HUAWEI> display bgp routing-table regular-expression ^65537
 BGP Local router ID is 10.1.1.2
 Status codes: * - valid, > - best, d - damped, x - best external, a - add path,
               h - history,  i - internal, s - suppressed, S - Stale
               Origin : i - IGP, e - EGP, ? - incomplete
 RPKI validation codes: V - valid, I - invalid, N - not-found

      Network            NextHop        MED        LocPrf    PrefVal Path/Ogn

 *>   1.1.1.1/32         10.1.1.1        0                     0      65537?
 *>   2.2.2.2/32         10.1.1.1        0                     0      65537?

# The following is an example of running the display bgp routing-table command after the as-notation plain command is run. In this example, the AS number in the AS_Path regular expression is in dotted notation (1.1), and no corresponding information is displayed.

<HUAWEI> display bgp routing-table regular-expression ^1.1

This example shows that the AS number 65537 in the AS_Path list does not match the AS number in the AS_Path regular expression.

Translation
Download
Updated: 2019-01-14

Document ID: EDOC1100058916

Views: 42368

Downloads: 61

Average rating:
This Document Applies to these Products

Related Version

Related Documents

Share
Previous Next