Specifications

Switching 8-59
Software Release 2.7.3
C613-03098-00 REV A
Create a classifier to match WWW traffic from the 192.168.20.0 subnet to
the 192.168.10.0 subnet.
create classifier=2 ipdaddr=192.168.10.0/24
ipsaddr=192.168.20.0/24 tcpdport=80
4. Create a hardware packet filter to allow this traffic
This filter must be created last so that it is the first filter that the switch
processes.
add switch hwfilter classifier=2 action=nodrop
The nomatchaction parameter can create a hardware filter that acts upon
traffic that does not match the classifier or any other hardware filters. For
example, to allow traffic destined for TCP ports 25 and 80 and UDP port
5151, and block all other traffic, create the following set of classifiers and
filters:
create classifier=1 tcpdport=80
add switch hwfilter classifier=1 action=forward
nomatchaction=deny
create classifier=2 tcpdport=25
add switch hwfilter classifier=2 action=forward
nomatchaction=deny
create classifier=3 udpdport=5151
add switch hwfilter classifier=3 action=forward
nomatchaction=deny
If the nomatchaction is not specified in these filters, all traffic is forwarded,
including traffic that matched the classifiers.
Triggers
The Trigger facility can be used to automatically run specified command
scripts when particular triggers are activated. When a trigger is activated by an
event, global parameters and parameters specific to the event are passed to the
script that runs. For a full description of the Trigger facility, see Chapter 54,
Trigger Facility.
The switch can generate triggers to activate scripts when a switch port goes up
or down.
The following section lists the events that may be specified for the Switching
module for the event parameter, the parameters that may be specified as
module-specific-parameters for the Switching module, and the arguments passed
to the script activated by the trigger.
Module Layer 3 Switching module: module=swi
Event linkdown
Description The port link specified by the port parameter has just gone down.
Parameters The following command parameter(s) must be specified in the create/set trig-
ger commands:
Parameter Description
port=port The port where the event activates the trigger.