clear maclock
17-56 Security Configuration
Mode
Switchcommand,read‐write.
Usage
ConfiguringaportforMAClockingrequiresgloballyenablingitontheswitchfirstusingtheset
maclockenablecommandasdescribedin“setmaclockenable”onpage 17‐54.
StaticMAClockingauseronmultipleportsisnotsupported.
StaticallyMAClockedaddresseswilldisplayintheshowmac
output(asdescribedonpage14‐19)
asaddresstype“other”andwillnotremovethemonlinkdown.
Example
ThisexampleshowshowtocreateaMAClockingassociationbetweenMACaddress0e‐03‐ef‐d8‐
44‐55andport
ge.3.2:
D2(rw)->set maclock 0e-03-ef-d8-44-55 ge.3.2 create
clear maclock
UsethiscommandtoremoveastaticMACaddresstoportlockingentry.
Syntax
clear maclock mac-address port-string
Parameters
Defaults
None.
Mode
Switchcommand,read‐write.
Usage
TheMACaddressthatisclearedwillnolongerbeabletocommunicate ontheportunlessthefirst
arrivallimithasbeensettoavaluegreaterthan0andthislimithasnotyetbeenmet.
Forexample,ifuserB’sMACisremovedfromthestaticMACaddress
listandthefirstarrival
limithasbeensetto0,thenuserBwillnotbeabletocommunicateontheport.IfuserA’ sMACis
removedfromthestaticMACaddresslistandthefirstarrivallimithasbeensetto10,butonlyhas
7entries,user
Awillbecomethe8thentryandallowedtocommunicateontheport.
mac‐address SpecifiestheMACaddressthatwillberemovedfromthelistofstatic
MACsallowedtocommunicateontheport.
port‐string SpecifiestheportonwhichtocleartheMACaddress.Foradetailed
descriptionof
possibleport‐stringvalues,referto“PortStringSyntaxUsed
intheCLI”onpage 6‐1.