Install guide
Filtering IP Routes add ip prefixlist 2-45
Software Version 2.7.5
C613-10454-00 REV A
Examples To match only routes from the 192.168.0.0/16 network, use the command:
add ip prefixlist=sample1 entry=1 action=match
prefix=192.168.0.0 masklength=16
To match all routes in all 192.168.0.0 networks, except those in the 192.168.7.0
network, use the commands:
add ip prefixlist=sample2 entry=1 action=nomatch
prefix=192.168.7.0 masklength=24-32
add ip prefixlist=sample2 entry=2 action=match
prefix=192.168.0.0 masklength=16-32
To exclude the default route, use the command:
add ip prefixlist=sample3 entry=1 action=nomatch masklength=0
To include all routes, use the command:
add ip prefixlist=sample4 entry=1 action=match
masklength=0-32
Related Commands add ip routemap
delete ip prefixlist
set ip prefixlist
set ip routemap
show ip prefixlist
MASklength The range of prefix mask lengths matched by this entry in the prefix
list. The range is either a single CIDR mask from 0 to 32, or two masks
separated by a hyphen. These options are valid for setting the mask
length:
• as a mask length range (masklength=a-b).
For a route to match against this entry, its prefix mask length must
be between a and b inclusive. a must be less than b.
• as a single mask length (masklength=a).
For a route to match against this entry, its prefix mask length must
be exactly a.
• as an implicit mask length, by not specifying masklength (for
example, prefix=192.168.0.0).
For a route to match against this entry, its prefix mask length must
correspond exactly to the mask for the class of the given address;
in this example, 24.
Default: The natural mask for the prefix, based on whether it is a class
A, B, or C network
PREfix The network address matched by this entry in the prefix list, specified
in dotted decimal notation.
If you do not specify a prefix, the router or switch sets it to 0.0.0.0.
This is correct if you are matching all routes or the default route.
Default: 0.0.0.0
Parameter (cont.) Description (cont.)