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

ME60 V800R010C10SPC500 Configuration Guide - IP Routing 01

This is ME60 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 IP Prefix List

Configuring an IP Prefix List

An IP prefix list filters routes based on the destination addresses of the routes.

Usage Scenario

To control route reception and advertisement based on the destination addresses of the routes, you need to configure an IP prefix list.

Each route contains an IP prefix. Therefore, IP prefix lists can be applied on various networks to filter routes.

Before applying a routing policy, you need to set the matching rules (filters). Similar to an ACL, an IP prefix list is flexible in filtering routes. IP prefix lists filter routes based on the destination addresses of the routes.

Pre-configuration Tasks

None

Configuration Procedures

Perform one or more of the following configurations as required.

Configuring an IPv4 Prefix List

An IP prefix list filters routes based on IP address prefixes. Each IP prefix in an IP prefix list contains an IP address and a mask.

Procedure

  1. Run system-view

    The system view is displayed.

  2. Run ip ip-prefix ip-prefix-name [ index index-number ] { permit | deny } ip-address mask-length [ greater-equal greater-equal-value ] [ less-equal less-equal-value ]

    An IPv4 prefix list is configured.

    The range of the mask length must meet the following requirements: mask-length <= greater-equal-value <= less-equal-value <= 32. If only greater-equal is specified, the range of the IP prefix is [greater-equal-value, 32]. If only less-equal is specified, the range of the IP prefix is [mask-length, less-equal-value].

    An IPv4 prefix list is identified by its list name, and each IP prefix list contains multiple entries. Each entry can independently specify a matching range in the form of a network prefix. The matching range is identified by an index number that specifies the matching sequence. An example of an IPv4 prefix list named abcd is as follows:

    #
    ip ip-prefix abcd index 10 permit 1.0.0.0 8
    ip ip-prefix abcd index 20 permit 2.0.0.0 8

    During route matching, the system checks the entries identified by index numbers in ascending order. If a route matches an entry, the route does not continue to match against the next entry.

    On the ME60, the routes that fail to match an IPv4 prefix list are denied by default. If all entries are set to deny mode, all routes are denied by the IP prefix list. Therefore, you need to define an entry permit 0.0.0.0 0 less-equal 32 following the entries in deny mode so that other IPv4 routes will not be filtered out by the IP prefix list.

    NOTE:

    If more than one IP prefix entry is defined, at least one entry needs to be set in permit mode.

  3. Run commit

    The configuration is committed.

Configuring an IPv6 Prefix List

An IPv6 prefix list filters routes based on IPv6 address prefixes. Each IPv6 prefix in an IPv6 prefix list contains an IPv6 address and a prefix.

Context

Perform the following steps on the router where an IPv6 prefix list needs to be applied:

Procedure

  1. Run system-view

    The system view is displayed.

  2. Run ip ipv6-prefix ipv6-prefix-name [ index index-number ] { permit | deny } ipv6-address prefix-length [ greater-equal greater-equal-value ] [ less-equal less-equal-value ]

    An IPv6 prefix list is configured.

    An IPv6 prefix list is identified by its list name, and each IPv6 prefix list contains multiple entries. Each entry can independently specify a matching range in the form of a network prefix. The matching range is identified by an index number that specifies the matching sequence. An example of an IPv6 prefix list named abcd is as follows:

    #
    ip ipv6-prefix abcd index 10 permit 1:: 64
    ip ipv6-prefix abcd index 20 permit 2:: 64

    During route matching, the system checks the entries identified by index numbers in ascending order. If a route matches an entry, the route does not continue to match against the next entry.

    On the ME60, the routes that fail to match an IPv6 prefix list are denied by default. If all entries are set to deny mode, all routes are denied by the IPv6 prefix list. Therefore, you need to define an entry permit :: 0 less-equal 128 following the entries in deny mode so that other IPv6 routes will not be filtered out by the IPv6 prefix list.

    NOTE:

    If more than one IPv6 prefix entry is defined, at least one entry needs to be set in permit mode.

  3. Run commit

    The configuration is committed.

Checking the Configuration

After configuring an IP prefix list, check information about the IP prefix list.

Prerequisites

The IP prefix list has been configured.

Procedure

  • Run the display ip ip-prefix [ ip-prefix-name ] command to check information about the IPv4 prefix list.
  • Run the display ip ipv6-prefix [ ipv6-prefix-name ] command to check information about the IPv6 prefix list.

Example

Run the display ip ip-prefix p1 command to view information about the IP prefix list named p1.

<HUAWEI> display ip ip-prefix p1
Prefix-list a
Permitted 0                             
Denied 0                                
    index: 10            permit     1.1.1.1/32            
Prefix-list b
Permitted 0                             
Denied 0                                
    index: 10            permit     2.2.2.0/24            ge 24   le 32
Translation
Download
Updated: 2019-01-04

Document ID: EDOC1100059437

Views: 22507

Downloads: 15

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