[previous] Clear Spacer [next]

Administering Packet Filters

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.


Menu Structure

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

For CoreBuilder 9000: Applies to Layer 3 switching modules only.

Lists the currently defined packet filters.

Valid Minimum Abbreviation

b pa li

Bridge Packet Filter List Example (3500)

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

For CoreBuilder 9000: Applies to Layer 3 switching modules only.

Displays the contents of the specified packet filter.

Valid Minimum Abbreviation

b pa di

Important Considerations

Options

Prompt

Description

Possible Values

[Default]

Filter

Identifier (id number) of the filter that you want to display

Current filter id

Sample Bridge Packet Filter Display (3500)

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

For CoreBuilder 9000: Applies to Layer 3 switching modules only.

Creates a port group filter or a custom packet filter.

Valid Minimum Abbreviation

b pa c

Important Considerations

Options

Prompt

Description

Possible Values

[Default]

Menu option

Whether to create a standard port group filter or a custom filter

-

Bridge Packet Filter Create Example (3500)

The system presents menu options for portGroup and custom:

Create Custom Bridge Packet Filter Example (3500)

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

For CoreBuilder 9000: Applies to Layer 3 switching modules only.

Deletes the selected packet filter.

Valid Minimum Abbreviation

b pa de

Important Considerations

Options

Prompt

Description

Possible Values

[Default]

Filter

Identifier (id number) of the filter that you want to delete

Highest filter number

Delete packet filter?

Whether you want to delete the selected packet filter

y

Bridge Packet Filter Delete Examples (3500)

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.

Valid Minimum Abbreviation

b pa e

Important Consideration

Options

Prompt

Description

Possible Values

[Default]

Filter

Identifier (id) number of the filter that you want to edit

Most recent filter edited

Replace existing filter?

Whether to replace the selected filter

y

Store as new filter?

Whether to create a new filter

y

Bridge Packet Filter Edit Examples

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.

Replace Existing Filter Example

Store as New Filter Example

bridge packetFilter load

For CoreBuilder 9000: Applies to Layer 3 switching modules only.

Transfers a packet filter file from another host machine to the switch to which you are currently connected.

Valid Minimum Abbreviation

b pa lo

Important Considerations

Options

Prompt

Description

Possible Values

[Default]

Host IP address

IP address of the machine from which you want to transfer the filter

Any valid IP address

-

File pathname

Path and file name of the filter to transfer

-

Bridge Packet Filter Load Example (3500)

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

For CoreBuilder 9000: Applies to Layer 3 switching modules only.

Assigns a selected packet filter to a port or set of ports (port group).

Valid Minimum Abbreviation

b pa a

Important Considerations

Options

Prompt

Description

Possible Values

[Default]

Filter

Identifier (id number) of the filter that you want to assign

Current valid selected filter

Bridge ports

Number of the bridge port to which you want to assign the selected filter

Current valid selected bridge port

Paths

Identifier of the path to which you want to assign the selected filter

Current valid selected path

Bridge Packet Filter Assign Examples (3500)

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

For CoreBuilder 9000: Applies to Layer 3 switching modules only.

Unassigns selected packet filter from one or more ports.

Valid Minimum Abbreviation

b pa u

Important Considerations

Options

Prompt

Description

Possible Values

[Default]

Filter

Identifier (id number) of the filter that you want to unassign

Current valid selected filter

Bridge ports

Numbers of one or more bridge ports from which you want to unassign the selected filter

Current valid selected bridge port

Paths

Identifiers of one or more paths from which you want to unassign the selected filter

Assigned paths

Bridge Packet Filter Unassign Examples (3500)

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

For CoreBuilder 9000: Applies to Layer 3 switching modules only.

Displays a list of currently defined port groups.

Valid Minimum Abbreviation

b pa p l

Bridge Packet Filter Port Group List Example

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

For CoreBuilder 9000: Applies to Layer 3 switching modules only.

Displays a port group.

Valid Minimum Abbreviation

b pa p di

Important Consideration

Options

Prompt

Description

Possible Values

[Default]

Port group

Number of the port group to display

Current port group

Sample Bridge Packet Filter Port Group Display (3500)

bridge packetFilter portGroup create

For CoreBuilder 9000: Applies to Layer 3 switching modules only.

Creates a port group.

Valid Minimum Abbreviation

b pa p c

Important Considerations

Options

Prompt

Description

Possible Values

[Default]

Port group mask

Mask that you want to assign to the port group

-

Port group name

Name of the port group that you want to create

Up to 32 characters

-

Bridge port

Number of the bridge port that you want to add to the new group

-

Bridge Packet Filter Port Group Create Example (3500)

bridge packetFilter portGroup delete

For CoreBuilder 9000: Applies to Layer 3 switching modules only.

Deletes a selected port group.

Valid Minimum Abbreviation

b pa p de

Important Considerations

Options

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

Bridge Packet Filter Port Group Delete Example

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

For CoreBuilder 9000: Applies to Layer 3 switching modules only.

Adds ports to an existing port group.

Valid Minimum Abbreviation

b pa p a

Important Considerations

Options

Prompt

Description

Possible Values

[Default]

Port group

Number of the port group to which you want to add a bridge port

Current port group

Bridge port

Number of the bridge port that you want to add to the selected port group

-

Bridge Packet Filter Port Group Add Port Examples

When you display port group 2, the display shows that port 2 is added:

bridge packetFilter portGroup removePort

For CoreBuilder 9000: Applies to Layer 3 switching modules only.

Removes ports from a port group.

Valid Minimum Abbreviation

b pa p r

Important Considerations

Options

Prompt

Description

Possible Values

[Default]

Port group

Number of the port group from which you want to remove a bridge port

Current port group

Bridge port

Number of the bridge port that you want to remove from the selected port group

-

Bridge Packet Filter Port Group Remove Port Examples

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:

[previous] Clear Spacer [next]