This document explains MAC filtering. It includes the following sections:
About MAC Filtering
Using MAC Filtering Parameters
Using MAC Filtering Tags
Accessing the MAC Filtering Prompts
MAC Filtering Commands
MAC Filtering Update Commands
About MAC Filtering
MAC filtering lets you set up packet filters. Filters are a set of rules applied to a packet to determine how it is handled.Note:
MAC filtering is allowed on tunnel traffic.
Processed - Packets are permitted to pass through the bridge unaffected.
Filtered - Packets are not permitted to pass through the bridge.
Tagged - Packets are allowed to pass through the bridge but are marked with a number in the range of 1 to 64 based on a configurable parameter.
Filter-item - A single rule for the address field of a packet. The result is either TRUE (the match was successful) or FALSE (the match was not successful).
Filter-list - Contains a list of one or more filter-items.
Filter - Contains a set of filter-lists.
When you set up a filter for the Bridge Net, for example, the router does not drop frames that match exclusive filters. Instead, it forwards those frames to the bridge.Config>list devices
Ifc 0 slot 0 port 0 Ethernet
Ifc 1 slot 1 port 0 Token Ring
Ifc 2 slot 1 port 1 Token Ring
Ifc 3 slot 2 port 0 Quad/Twin Serial Line
Ifc 4 slot 2 port 1 Quad/Twin Serial Line
Source MAC address or destination MAC address
Mask to be applied to the packet's fields to be filtered
Interface number
Input/output designation
Include/exclude/tag designation
Tag value (if you designated a tag)
Address Type: source or destination
Tag: Tag-value
Address Mask: Hex-Mask
Name: ASCII-string
Filter-Item List: filter-item1, ..., filter-item
Action: INCLUDE, EXCLUDE, TAG(n)
Filter list Names: ASCII-string, ..., ASCII-string
Interface Number: IFC-number
Port Direction: input or output
Default Action: include, exclude, or tag
Default Tag: tag value
MAC Address filtering is handled by a joint effort between Bandwidth Reservation and the MAC Filtering feature (MCF) using tags. A user with bandwidth reservation is able to categorize bridge traffic, for example, by assigning a tag to it.
Tagging is done by creating a filter item at the MAC filtering configuration prompt and assigning a tag to it. This tag is used to set up a bandwidth class for all packets associated with this tag. Tag values must be in the range of 1 to 64.
OpenROUTE supports applying tags only to bridged packets and allows only the MAC address fields of the packet to be used in applying the tag.
Up to five tagged MAC addresses can be set from 1 to 5. TAG1 is searched for first, then TAG2, and so on.
Once a tagged filter is created, it is assigned a class and priority in the Bandwidth Reservation configuration process. Use tag at the Bandwidth Reservation to reference the tag.
Accessing the MAC Filtering Prompts
To display the MAC filtering configuration prompt, at the Config> prompt enter feature mcf.
To display the MAC filtering monitoring prompt, at the + prompt enter feature mcf.Config> feature mcf
MAC Filtering user configuration
Filter config>
+ feature mcf
MAC Filtering user console
Filter>
Not all parameters apply to all router platforms. Press Space twice after you type a command to display the available parameters for each command for your router. Enter help for information about using the command line interface. [C] means the command is available at the Filter config> prompt. [M] means the command is available at the Filter> prompt.
Attach [C]
Adds a filter list to a filter. A filter is constructed by associating a group of filter lists with an interface number. A filter list is built from one or more filter items.
Syntax: attach filter-list-name filter-number
attach
Enter a filter-list name []? atm_list
Enter a filter number [1]? 3
clear all
clear filter 6
create list newyork
create filter input 2
default exclude 3
default include 3
default tag 3 15
delete list newyork
delete 3
detach list newyork
disable all
disable filter
Enter a filter number [1]? 3
enable all
enable filter
Enter a filter number [1]? 3
exit
Whether or not filtering is enabled or disabled
A list containing the state of the filtering system (enable,disable)
The set of configured filter-list records
Each of the configured filter records
Filter number
Interface number
Filter direction (input,output)
Filter state (enable, disable)
Filter default action (tag, include, exclude)
list all
Filtering: enabled
Filter List Action
----------- ------
test INCLUDE
Filters
-------
Id Default State Ifc Dir Cache
-- ------- ----- --- --- ------
1 INCLUDE DISABLE 0 OUTPUT 16
list filter
Enter a filter number [1]?
Id Default State Ifc Dir Cache
-- ------- ----- --- --- ------
1 INCLUDE DISABLE 0 OUTPUT 16
Filter List Action
----------- ------
test INCLUDE
move newyork boston 13
reinit
set-cache
Enter a filter number [1]?
Enter the new cache size [16]?
update newyork
Add [C]
Adds filter-items to a filter-list. This command specifically lets you add a hexadecimal number to compare against the source or destination MAC address.
The order in which you add filter-items to a filter-list is important as it determines the order in which the filter-items are applied to a packet.
Each use of the add subcommand creates a filter-item within the filter-list. The first filter-item is assigned filter-item-number 1, the next one is assigned number 2, and so forth. After an add, the router displays the number of the filter-item just added.
The first match that occurs stops the application of filter-items, and the filter-list evaluates to either include, exclude or tag, depending on the designated action of the filter-list. If none of the filter-items of a filter-list produce a match, then the default action (include, exclude or tag) of the filter is returned.
Syntax: add
add source
Enter MAC Address []? 00-00-03-00-12-34
Enter MAC Mask [ffffffffffff]?
add destination
Enter MAC Address []? 00-00-03-00-12-34
Enter MAC Mask [ffffffffffff]?
delete 3
exit
MAC address and address mask in canonical or non-canonical form
filter-item numbers
address type (source or destination)
filter-list action
list canonical
list non-canonical
move 2 4
set-action exclude