
2-8 Release Note
Software Version 2.7.5
C613-10454-00 REV A
About IP Filters
Description An IP filter filters routes if it has a filter ID number in the range 300 to 399. It
matches on the source and mask of the route, and specifies whether matching
routes are included or excluded.
When to use
IP filters
Use an IP filter when you want to filter routes that the router or switch imports
from BGP into OSPF. “Applying Filters When Redistributing from the RIB” on
page 2-23 has more information.
You can also use an IP filter as a BGP prefix filter (either an infilter or an
outfilter), but we recommend you use a prefix list instead.
Creating Filters
This section describes the commands, options and procedures for creating each
of the different types of filter. It contains the following subsections:
■ Creating Prefix Lists
■ Creating AS Path Lists for BGP
■ Creating Route Maps for BGP
■ Creating Route Maps for OSPF
■ Creating IP Route Filters
■ Creating IP Filters
Creating Prefix Lists
To create a prefix list and add entries to it, use the command:
add ip prefixlist=name entry=1..65535
[action={match|nomatch}] [masklength=range] [prefix=ipadd]
The masklength parameter specifies 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.
Kommentare zu diesen Handbüchern