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 a Community Set

Configuring a Community Set

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

Procedure

  • Configure a community set using the paragraph editing mode.
    1. Run the edit xpl community-list community-list-name command to enter the community 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 community-list community-list-name) for a community set.
    4. Configure elements in the format of aa:nn (100:1 for example), a community number, or a known community (internet, no-export-subconfed, no-advertise, or no-export) for the community set and separate every two neighboring elements with a comma (,). An asterisk (*) can be used to match any character. If an asterisk (*) is used in an element, such as 100:*, the element matches all communities with the AS number 100.
    5. Configure an end clause (end-list) for the community 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 a community set using the line editing mode.
    1. Run the system-view command to enter the system view.
    2. Run the xpl community-list community-list-name command to enter the community set view.
    3. Configure elements in the format of aa:nn (100:1 for example), a community number, or a known community (internet, no-export-subconfed, no-advertise, or no-export) for the community set and separate every two neighboring elements with a comma (,). An asterisk (*) can be used in an element to match any digit, 100:* for example.
    4. Run the end-list command to conclude the configuration of the community set, exit the community 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 a community set to match the routes carrying community set 100:1, 200:1, 300:1, or no-export.
Configuration Example 1
<HUAWEI> edit xpl community-list aaa

xpl community-list aaa
100:1,
200:1,
300:1,
no-export
end-list

The community set aaa includes four elements and matches the routes carrying community set 100:1, 200:1, 300:1, or no-export.

Objective Configure a community set to match the routes carrying community set 100:*, 200:*, or 300:1.
Configuration Example 2
<HUAWEI> edit xpl community-list bbb

xpl community-list aaa
100:*,
200:*,
300:1
end-list

The community set bbb includes three elements and matches the routes carrying community set 100:*, 200:*, or 300:1.

Objective Configure a route-filter to add communities 100:1, 200:1, 300:1, and no-export to the routes with the Local_Pref value less than or equal to 100.
Reference Example 1
<HUAWEI> edit xpl route-filter r1

xpl route-filter r1
if local-preference le 100 then
apply community aaa addtive
endif
end-filter

The route-filter r1 references community set aaa and adds communities 100:1, 200:1, 300:1, and no-export to the routes with the Local_Pref value less than or equal to 100.

Objective Configure a route-filter to set the next hop addresses of the routes carrying all the communities listed in community set bbb or carrying only some of the listed communities to 1.1.1.1.
Reference Example 2
<HUAWEI> edit xpl route-filter r2

xpl route-filter r2
if community matches-within bbb then
apply ip next-hop 1.1.1.1
endif
end-filter

The route-filter r2 references community set bbb and sets the next hop addresses of the routes carrying all the communities listed in community set bbb or carrying only some of the listed communities to 1.1.1.1.

Translation
Download
Updated: 2019-01-03

Document ID: EDOC1100055018

Views: 54079

Downloads: 209

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