< Home

Configuring an IP Prefix List

Context

Configuring an IP prefix list controls the advertising and receiving of routes based on the destination address.

If an IP prefix list is not used together with the if-match clauses in a routing policy, you must set at least one node to the permit mode in the IP prefix list. If no node is set to the permit mode, all routes are filtered out.

Procedure

  1. Configure an IPv4 prefix list.
    1. Run system-view

      The system view is displayed.

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

      An IPv4 prefix list is configured.

  2. Configure an IPv6 prefix list.
    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 [ match-network ] [ greater-equal greater-equal-value ] [ less-equal less-equal-value ]

      An IPv6 prefix list is configured.

Verifying the Configuration

  • 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.

Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
Next topic >