clear maclock
D-Series CLI Reference 15-51
Defaults
None.
Mode
Switchcommand,read‐write.
Usage
ConfiguringaportforMAClockingrequiresgloballyenablingitontheswitchfirstusingtheset
maclockenablecommandasdescribedin“setmaclockenable”onpage 15‐49.
StaticMAClockingauseronmultipleportsisnotsupported.
StaticallyMAClockedaddresseswilldisplayintheshowmac
output(asdescribedonpage12‐18)
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.
port‐string Specifiestheportonwhichtocreate,enableordisableMAClockingfor
thespecifiedMAC.Foradetaileddescriptionofpossibleport‐string
values,referto“PortStringSyntaxUsedintheCLI”onpage 4‐1.
create EstablishesaMAClockingassociationbetweenthe
specifiedMAC
addressandport.CreateautomaticallyenablesMAClockingbetween the
specifiedMACaddressandport.
enable|disable EnablesordisablesMAClockingbetweenthespecifiedMACaddressand
port.
mac‐address SpecifiestheMACaddressthatwillberemovedfromthelistofstatic
MACsallowedtocommunicateontheport.
port‐string SpecifiestheportonwhichtocleartheMACaddress.Foradetailed
descriptionofpossibleport‐stringvalues,referto“PortStringSyntaxUsed
intheCLI
”onpage 4‐1.