110
<Configuration Example 1>
Overview: Set the MAC address table aging time.
(1) Set the time until the dynamically learned entries in the MAC address table are
automatically deleted to 1,200 seconds.
Fig. 3-6-5 Example of setting the MAC address table aging time
<Configuration Example 2>
Overview: Disable communications with devices connected to Port 1 other than statically
entered ones (MAC address: 00:00:00:00:00:01).
(1) Statically enter MAC address 00:00:00:00:00:01 in Port 1 (VLAN 1).
(2) Move to the interface configuration mode for Port 1.
(3) Disable the MAC address auto-learning of Port 1.
Fig. 3-6-6 Example of static MAC address entry
<Configuration Example 3>
Overview: Set the limit of the number of auto-learned MAC addresses for Port 1 to
1.
(1) Set the limit of the number of auto-learned MAC addresses for Port 1 to 1.
Fig. 3-6-7 Example of setting the limit of the number of auto-learned MAC addresses
M24eG> enable
M24eG# configure
M24eG(config)# mac-address-table static 00:00:00:00:00:01 gi0/1 vlan 1
M24eG(config)# interface GigabitEthernet0/1
M24eG(config-if)# no mac-learning
M24eG(config-if)# exit
M24eG(config)# exit
M24eG#
(1)
(3)
(2)
M24eG> enable
M24eG# configure
M24eG(config)# mac-address-table aging-time 1200
M24eG(config)# exit
M24eG#
(1)
M24eG> enable
M24eG# configure
M24eG(config)# interface GigabitEthernet0/1
M24eG(config-if)# mac-learning limit 1
M24eG(config-if)# exit
M24eG(config)# exit
M24eG#
(1)