Layer 2 filtering – Allied Telesis Rapier Switch User Manual

Page 49

Advertising
background image

Layer 2 Switching

49

Software Release 2.5.1
C613-02025-00 REV B

Layer 2 Filtering

The switch has a Forwarding Database, entries in which determine whether
frames are forwarded or discarded over each port. Entries in this Forwarding
Database are created dynamically by the Learning Process. A dynamic entry is
automatically deleted from the Forwarding Database when its ageing timer
expires. Filtering is specified in the IEEE 802.1D Standard “Media Access Control
(MAC) Bridges
”.

The user can configure static switch filter entries using the command line
interface. Static switch filter entries associate a MAC address with a VLAN and
a port in the VLAN. When the switch receives a frame with a destination
address and VLAN Identifier that match those of a static filter entry, the frame
can be either forwarded to the port specified in the static filter entry, or
discarded.

The Forwarding Database supports queries by the Forwarding Process as to
whether frames with given values of the destination MAC address field should
be forwarded to a given port.

To add or delete static switch filter entries, use the commands:

ADD SWITCH FILTER DESTADDRESS=macadd ACTION={FORWARD|DISCARD}

PORT[=port-list] [ENTRY=entry] [VLAN={vlanname|1..4094}]

DELETE SWITCH FILTER ENTRY=entry-list

The switch automatically deletes static filter entries for a port if the port is deleted from
the specified VLAN.

To display current static switch filter entries, use the command:

SHOW SWITCH FILTER [DESTADDRESS=macadd] [ENTRY=entry]

[PORT=port-list] [VLAN={vlanname|1..4094}]

Figure 2: Example output from the SHOW SWITCH FILTER command.

Switch Filters

---------------------------------------------------------------------------

Entry VLAN Destination Address Port Action Source

---------------------------------------------------------------------------

0 default (1) aa-ab-cd-00-00-01 1 Forward static

1 default (1) aa-ab-cd-00-00-02 1 Forward static

0 marketing (2) aa-ab-cd-00-00-01 2 Discard static

1 marketing (2) aa-ab-cd-00-00-02 2 Discard learn

---------------------------------------------------------------------------

Table 12: Parameters in the output of the SHOW SWITCH FILTER command

Parameter

Meaning

Entry

The number identifying the filter entry.

Destination Address

The destination MAC address for the entry.

VLAN

The VLAN name and identifier for the entry.

Port

The outbound port to match for the filter entry to be applied.

Action

The action specified by the filter entry; one of “Forward” or
“Discard”.

Advertising