The set routing prefix-list ip4 command creates an IPv4 prefix list or an entry in an IPv4 prefix list.
The delete routing prefix-list ip4 command deletes an IPv4 prefix list or an entry from an IPv4 prefix list.
Command Syntax
set routing prefix-list ip4 <ip-prefix-name> {deny|permit} {<ipv4/prefixlen> | any} [ge <greater-equal-value>] [le <less-equal-value>]
delete routing prefix-list ip4 <ip-prefix-name>[seq <sequence-number>] <ipv4/prefixlen> [ge <greater-equal-value>] [le <less-equal-value>]
Parameter
Parameter | Description |
<ip-prefix-name> | Specifies the name of an IPv4 prefix list. |
seq <sequence-number> | Optional. Specifies the sequence number of an entry in the IPv4 prefix list. The value is an integer that ranges from 1 to 4294967295. |
{<ipv4/prefixlen> | any} | Specifies an IP address/prefix length or all addresses. The value of prefix length is an integer that ranges from 0 to 32. When any is specified, it creates a prefix-list that matches all addresses. |
ge <greater-equal-value> | Optional. Specifies the lower threshold of the mask length. If ge greater-equal-value and le less-equal-value are not specified, the value of mask-length is the mask length. greater-equal-value must meet the following requirement: prefixlen ≤ greater-equal-value ≤ less-equal-value ≤ 32. If only ge is configured, the mask ranges from greater-equal-value to 32. |
le <less-equal-value> | Optional. Specifies the upper threshold of the mask length. If ge greater-equal-value and le less-equal-value are not specified, the value of mask-length is the mask length. less-equal-value must meet the following requirement: prefixlen ≤ greater-equal-value ≤ less-equal-value ≤ 32. If only le is configured, the mask ranges from prefixlen to less-equal-value. |
Example
Configure the IP prefix list named p1 to permit only the routes with the mask length ranging from 8 to 16 on the network segment 35.0.0.0/8.
admin@Xorplus# set routing prefix-list ip4 p1 permit prefix 35.0.0.0/8 ge 16 admin@Xorplus# commit