This chapter provides guidelines and other key information about how to administer bridge packet filters in your system, including the following tasks:
Independently configurable packet filtering is provided for the packet processing paths on each bridge port of the system. After you create a packet filter, you can assign the filter to the transmit or the receive paths of any bridge port or group of bridge ports.
The filter executes a series of test operations on the packet's contents and, if the result is positive it stops (filters) the packet. If the end result is negative, the filter lets the packet pass.
For more information about implementing packet filters on your network, see the Implementation Guide for your system.
For the CoreBuilder 9000 platform, the commands in this chapter apply to Layer 3 switching modules only.
The commands that you can use depend on the system that you have, your level of access, and the types of modules and other hardware options that are configured for your system. The following diagram shows the complete list of commands for all systems. See the checklist at the beginning of each command description in this chapter for whether your system supports the command.
bridge packetFilter list
Lists the currently defined packet filters.
b pa li
Select menu option (bridge/packetFilter): list
Packet Filter 1 - rejdiffportgrp
Port 11, txA, rxA
In the example, the system has one packet filter, with a filter id of 1 and a defined name of rejdiffportgrp. This filter is loaded onto port 11. The filter is assigned to both the transmit all (txA) and the receive all (rxA) paths.
bridge packetFilter display
Displays the contents of the specified packet filter.
b pa di
|
Prompt |
Description |
Possible Values |
[Default] |
|---|---|---|---|
|
Filter |
Identifier (id number) of the filter that you want to display |
Current filter id |
Select menu option (bridge/packetFilter): display
Select filter {1|?} [1]:
Packet Filter 1 - rejdiffportgrp
name "rejdiffportgrp"
pushDPGM
pushSPGM
and
pushLiteral.l 0x00000000
ne
bridge packetFilter create
Creates a port group filter or a custom packet filter.
b pa c
|
Prompt |
Description |
Possible Values |
[Default] |
|---|---|---|---|
|
Menu option |
Whether to create a standard port group filter or a custom filter |
- |
The system presents menu options for portGroup and custom:
The system displays the editor commands that create the custom packet filters, as shown here.
You now enter packet filter language statements that define the packet filter algorithm. See the Implementation Guide for your system for information about developing the packet filters.
bridge packetFilter delete
Deletes the selected packet filter.
b pa de
Select menu option (bridge/packetFilter): delete
Select filter {1|?} [1]: 1
Delete packet filter (n,y) [y]: y
Packet filter 1 has been deleted.
If the filter is assigned, it cannot be deleted. The system responds as follows to the delete command:
Select menu option (bridge/packetFilter): delete
Select filter {1|?} [1]: 1
The selected filter is assigned
This problem prevents the deletion of this filter.
bridge packetFilter edit
Modifies the selected packet filter.
b pa e
The system displays the editor commands that you use to edit the packet filters. You can edit packet filter language statements that define the packet filter algorithm. See the Implementation Guide for your system for information about developing the packet filters. After you modify the packet filter, you can save the filter file using the editor command Ctrl+w.
To complete the editing process, press the Esc key. The system replaces the filter or creates a new filter, depending on your response to the prompts.
Two examples of the editing process follow.
bridge packetFilter load
Transfers a packet filter file from another host machine to the switch to which you are currently connected.
b pa lo
The system transfers the specified filter and displays a confirmation message:
Select menu option (bridge/packetFilter): load
Host IP address: 158.101.112.191
File pathname {?}: /tftpboot/srackley/joe.fil
Packet filter 2 stored.
bridge packetFilter assign
Assigns a selected packet filter to a port or set of ports (port group).
b pa a
Select menu option (bridge/packetFilter): assign
Select filter {1|?} [1]:
Select bridge port(s) (1-12|all|?) [4-6]: all
Select path(s) (txA,txM,rxA,rxM|all|?): txA
To specify multiple ports and paths at the same time that you assign packet filters, enter all when you specify the ports or paths.
Select menu option (bridge/packetFilter): assign
Select filter {1|?} [1]:
Select bridge port(s) (1-6|all|?): 1-3
Select path(s) (txA,txM,rxA,rxM|all|?): all
bridge packetFilter unassign
Unassigns selected packet filter from one or more ports.
b pa u
The unassignment is from the transmit all (txA) paths on port 1.
Select menu option (bridge/packetFilter): unassign
Select filter {1|?} [1]: 1
Select bridge port [1]: 1
Select path(s) (txA,rxA|all|?) [txA,rxA]: txA
To specify multiple ports and paths at the same time when you assign (or unassign) packet filters, specify all when you specify the ports or paths.
Select menu option (bridge/packetFilter): unassign
Select filter {1|?} [1]:
Select bridge port(s) (1-3|all|?) [1-3]:
Select path(s) (txA,rxA|all|?) [txA,rxA]: all
If the filter that you attempt to unassign is not assigned, one or more of the unassignments may fail.
bridge packetFilter portGroup list
Displays a list of currently defined port groups.
b pa p l
In the example, the system has two port groups defined: Marketing and Sales. The display shows the group id, group name (if any), and group mask.
bridge packetFilter portGroup display
Displays a port group.
b pa p di
|
Prompt |
Description |
Possible Values |
[Default] |
|---|---|---|---|
|
Port group |
Number of the port group to display |
Current port group |
bridge packetFilter portGroup create
Creates a port group.
b pa p c
bridge packetFilter portGroup delete
Deletes a selected port group.
b pa p de
|
Prompt |
Description |
Possible Values |
[Default] |
|---|---|---|---|
|
Port group |
Number of the port group to delete |
Current port group | |
|
Delete port group? |
Whether to delete the selected port group |
y |
Select menu option (bridge/packetFilter/portGroup): delete
Select port group {1-2|?} [2]: 1
Delete port group (n,y) [y]: y
Port Group 1 - Marketing - has been deleted.
bridge packetFilter portGroup addPort
Adds ports to an existing port group.
b pa p a
When you display port group 2, the display shows that port 2 is added:
bridge packetFilter portGroup removePort
Removes ports from a port group.
b pa p r
Select menu option (bridge/packetFilter/portGroup): remove
Select port group {1-2|?} [2]: 2
Select bridge port(s) (1-6|all|?): 6
Displaying port group 2 shows that port 6 is removed: