XG Series User's Guide Chapter 5 Command Reference
Port Information Settings
132
5.1.5 Filter Information
This section explains about the commands related to filter information.

5.1.5.1 ether macfilter

Function Set the MAC filter.
Available Model XG0224 / XG0448 / XG2600
Syntax ether <number> macfilter <count> <action> <acl>
Options
<number>
ether port number
Set a port number to use with a decimal value.
When setting multiple port numbers, separate them with commas (,).
When setting sequential numbers, separate them with hyphens (-). (Example: "1-8")
<count>
Priority
Set the filtering priority to be set with a decimal value.
A smaller value has a higher priority.
The specified value is sorted and renumbered in sequence. If a filtering definition with
the same value already exists, the existing one will be changed.
<action>
pass
Transmit the packets that match the "acl mac", "acl vlan", "acl ip", "acl icmp", "acl tcp"
or "acl udp" definition of access control list.
reject
Discard the packets that match the "acl mac", "acl vlan", "acl ip", "acl icmp", "acl tcp", or
"acl udp" definition of access control list.
<acl>
ACL definition number
Specify the ACL definition number of the access control list where the packet pattern to
be filtered has been defined.
Use Mode Configuration mode (admin class)
Explanation Set the MAC filtering for each Ethernet port.
For the ingress packets that match the "acl mac", "acl vlan", "acl ip", "acl icmp", "acl tcp",
or "acl udp" definitions of the access control list which has been specified by <acl>, the
filter processing is executed in the way as specified by <action>.
Caution
Note 1.
If none of "acl mac", "acl vlan" and "acl ip" definitions exist on the access control list
which has been specified by <acl> or if the access control list specified by <acl> does not
exist, the packets are not filtered.
Note 2.
The packet filtering default value is "pass".
No packets are filtered if only "pass" is set in <action>.
Range Model
0 to 511 XG0224 / XG0448
0 to 63 XG2600