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

Context

Perform the following steps on the device 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 [ match-network ] [ greater-equal greater-equal-value ] [ less-equal less-equal-value ]

    An IPv6 prefix list is configured.

    An IPv6 prefix list is identified by its name, and each IPv6 prefix list contains one or multiple entries. Each entry is identified by an index and specifies a matching range in the form of a network prefix. An IPv6 prefix list named abcd is used as an example.

    
    
    
    
    
    

    During route matching, the system checks the entries identified by indexes in ascending order. If a route matches an entry, the route is no longer matched against the next entry.

    On the NetEngine 8000 F, 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.

    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.

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