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

NE40E V800R010C10SPC500 Configuration Guide - IP Routing 01

This is NE40E V800R010C10SPC500 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 an AS_Path Set

Configuring an AS_Path Set

AS_Path sets apply only to BGP and are used to match the AS_Path attribute of BGP routes. This section describes how to configure AS_Path sets.

Procedure

  • Configure an AS_Path set using the paragraph editing mode.
    1. Run the edit xpl as-path-list as-path-list-name command to enter the AS_Path set paragraph editing interface view.
    2. Press i to enter the text editing mode.

      NOTE:

      Sets or route-filters can be configured only in the text editing mode. If you exit from the text editing mode, you can perform shortcut key operations only.

    3. Configure a start clause (xpl as-path-list as-path-list-name) for an AS_Path set.
    4. Configure elements in the format of regular+AS_Path regular expression for the set and separate every two neighboring elements with a comma (,). For example, regular 1_2_3_4 represents an AS_Path that contains AS numbers 1, 2, 3, and 4. For details about regular expressions, see NE40E Configuration Guide – Basic Configuration.
    5. Configure an end clause (end-list) for the AS_Path set.
    6. Press Esc to exit from the text editing mode.
    7. Press :wq and Enter to save the configurations and exit from the global variable set paragraph editing interface view.

      NOTE:

      A message is displayed for you to confirm whether to commit the configurations when you attempt to exit from the global variable set paragraph editing interface view. To commit the configurations, press Y.

      To exit from the global variable set paragraph editing interface view without saving the configurations, press :q! and Enter.

  • Configure an AS_Path set using the line editing mode.
    1. Run the system-view command to enter the system view.
    2. Run the xpl as-path-list as-path-list-name command to enter the AS_Path set view.
    3. Configure elements in the format of regular+AS_Path regular expression for the set and separate every two neighboring elements with a comma (,). For example, regular 1_2_3_4 represents an AS_Path that contains AS numbers 1, 2, 3, and 4. For detailed description about regular expressions, see NE40E Configuration Guide – Basic Configuration.
    4. Run the end-list command to conclude the configuration of the AS_Path set, exit the AS_Path set view, and return to the system view.
    5. Run the commit command to commit the configuration.

Example

NOTE:

If only paragraph editing is used as an example, the corresponding line editing is similar. To use the line editing mode, perform the operations described in paragraph editing.

For detailed set and route-filter configuration steps, see Configuration Procedures of Sets and Route-Filters Using the Paragraph Editing Mode. For details about XPL clauses, see XPL Paragraph Editing Clauses.

Objective Configure an AS_Path set to match the routes received from AS 100, the routes that pass through AS 200, and the routes that originate from AS 300.
Configuration Example
<HUAWEI> edit xpl as-path-list aaa

xpl as-path-list aaa
regular ^100_,
regular _200_,
regular _300$
end-list

The AS_Path set aaa includes three elements and matches the routes received from AS 100, the routes that pass through AS 200, and the routes that originate from AS 300.

Objective Configure a route-filter to deny the routes received from AS 100, the routes that pass through AS 200, and the routes that originate from AS 300.
Reference Example
<HUAWEI> edit xpl route-filter r1

xpl route-filter r1
if as-path in aaa then
refuse
else
approve
endif
end-filter

The route-filter r1 references AS_Path set aaa, denies the routes that match aaa, and permits all other routes.

Translation
Download
Updated: 2019-01-03

Document ID: EDOC1100055018

Views: 49790

Downloads: 201

Average rating:
This Document Applies to these Products
Related Version
Related Documents
Share
Previous Next