Configuring an IP prefix list
Configuring an IPv4 prefix list
If all the items are set to deny mode, no routes can pass the IPv4 prefix list. To allow unmatched IPv4 routes to pass, you must configure the permit 0.0.0.0 0 less-equal 32 item following multiple deny items.
To configure an IPv4 prefix list:
Step | Command | Remarks |
---|---|---|
1. Enter system view. | system-view | N/A |
2. Configure an IPv4 prefix list. | ip prefix-list prefix-list-name [ index index-number ] { deny | permit } ip-address mask-length [ greater-equal min-mask-length ] [ less-equal max-mask-length ] | By default, no IPv4 prefix list is configured. |
Configuring an IPv6 prefix list
If all items are set to deny mode, no routes can pass the IPv6 prefix list. To allow unmatched IPv6 routes to pass, you must configure the permit :: 0 less-equal 128 item following multiple deny items.
To configure an IPv6 prefix list:
Step | Command | Remarks |
---|---|---|
1. Enter system view. | system-view | N/A |
2. Configure an IPv6 prefix list. |
| By default, no IPv6 prefix list is configured. When the inverse keyword is specified, an IPv6 prefix is matched from the least significant bit to the most significant bit. |