User's Manual

Table Of Contents
166
Users Manual of GPL-8000
out of effect (see the following example). The same item can only be configured once in the same MAC
address.
Perform the following operations in MAC list configuration mode to configure the items of the MAC list:
Run… To
[no] {deny | permit} {any | host
src-mac-addr} {any | host
dst-mac-addr}[ethertype]
Add/Delete an item of the MAC list. You can
rerun the command to add or delete multiple
items of the MAC list.
any means any MAC address can be
compatible;
src-mac-addr means the source MAC
address;
dst-mac-addr means the destination MAC
address.
ethertype means the type of matched
Ethernet packet.
exit
Log out from the MAC list configuration mode
and enter the global configuration mode
again.
exit
Enter the management mode again.
write
Save configuration.
MAC list configuration example
Switch_config#mac acce 1
Switch-config-macl#permit host 1.1.1 any
Switch-config-macl#permit host 2.2.2 any
The above configuration is to compare the source MAC address, so the mask is the same. The configuration
is successful.
Switch_config#mac acce 1
Switch-config-macl#permit host 1.1.1 any
Switch-config-macl#permit any host 1.1.2
Switch-config-macl#2003-11-19 18: 54: 25 rule conflict,all the rule in the acl should match!
The first line on the above configuration is to compare source MAC addresses, while the second line is to
compare destination MAC addresses. Therefore, the mask is different. The configuration fails.
14.1.3 Applying MAC List
The created MAC list can be applied on any physical port. Only one MAC list can be applied to a port. The
same MAC list can be applied to multiple ports.
Enter the privilege mode and perform the following operation to configure the MAC list.
Run… To