User's Manual

Table Of Contents
194
Users Manual of CS-6306R
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
configure
Enter the global configuration mode.
interface f0/1
Log in to the port that is to be
configured.
[no] mac access-group name
Apply the created MAC list to the port
or delete the applied MAC list from the
port.
name means the name of the MAC
list.
exit
Enter the global configuration mode
again.
exit
Enter the management mode again.
write
Save configuration.