
(1)
1 0001.42e3.6501 DYNAMIC Fa0/2
1 0002.1769.9401 DYNAMIC Fa0/1
S1(config)#mac- s 0001.42e3.6501 vlan 1 int fa0/1
---------(2)
S1(config)#int fa0/1
S1(config-if)#shut
S1(config-if)#switch mode access
S1(config-if)#switch port-sec
S1(config-if)#switch port-sec maximum 1
S1(config-if)#switch port-sec violation shutdown
S1(config-if)#switch port-sec mac-address 0001.42e3.6501(switchport port-sec mac-address 0001.42e3.6501)
S1(config-if)#no shut
S1#show mac-address-table
Mac Address Table
-------------------------------------------
Vlan Mac Address Type Ports
---- ----------- -------- -----
1 0001.64a9.9d69 DYNAMIC Fa0/2
------------------------
1 0001.42e3.6501 DYNAMIC Fa0/2
1 0002.1769.9401 DYNAMIC Fa0/1
S1(config)#mac- s 0001.42e3.6501 vlan 1 int fa0/1
---------(2)
S1(config)#int fa0/1
S1(config-if)#shut
S1(config-if)#switch mode access
S1(config-if)#switch port-sec
S1(config-if)#switch port-sec maximum 1
S1(config-if)#switch port-sec violation shutdown
S1(config-if)#switch port-sec mac-address 0001.42e3.6501(switchport port-sec mac-address 0001.42e3.6501)
S1(config-if)#no shut
S1#show mac-address-table
Mac Address Table
-------------------------------------------
Vlan Mac Address Type Ports
---- ----------- -------- -----
1 0001.64a9.9d69 DYNAMIC Fa0/2
------------------------