cancel
Showing results for 
Search instead for 
Did you mean: 

MACLOCK preventing unauthorized mac address

MACLOCK preventing unauthorized mac address

Paulo_Silva
New Contributor
Hi.

I want to configure port's B5 (firmware 6.81) something like Cisco port security. I want statically provisioning a mac port lock. I configure this:

set maclock enable
set maclock trap ge.6.30 enable violation
set maclock syslog ge.6.30 enable violation
set maclock static ge.6.30 1
set maclock 00:1d:70:96:8c:1c ge.6.30 create

If an other device with a diferent mac address conect in this port, port go to down.

This way don't work, I tested.

Anyone can help me.

Thks.

10 REPLIES 10

Paulo_Silva
New Contributor
Thks again Ronald.

:)

Ronald_Dvorak
Honored Contributor
Great, glad that I was able to help.

-Ron

Paulo_Silva
New Contributor
Ronald now works.

Did you note my configuration "set maclock firstarrival ge.6.30 1 " ?

When I saw your configuration set maclock firstarrival ge.1.8 0

Then I changed and ok. Port locked when the different mac address showed up.

Thks Ronald.

Paulo_Silva
New Contributor
Hi Ronald.

I configured "set maclock disable-port", but don't work. I configured "set maclock firstarrival ge.6.30 1 " too, it works in case more than 2 mac address try to conect the port, a switch for example.

Screenshot of "show maclock":

ab749f46e3594555a358262435ea444e_RackMultipart20160115-17632-amnkqa-Sele__o_111_inline.png


Ronald_Dvorak
Honored Contributor
That works for me.....

G3(su)-> show config maclock
#maclock
set maclock enable
set maclock static ge.1.8 1
set maclock firstarrival ge.1.8 0
set maclock disable-port ge.1.8
set maclock enable ge.1.8
set maclock 00:1d:70:96:8c:1c ge.1.8 create
!

G3(su)->show maclock ge.1.8
MAC locking is globally enabled

Port Port Trap Syslog Aging Port Clr Max Max Last Violating
Number Stat Thr|Viol Thr|Viol Stat Dis|Viol OLC Stc FA MAC Address
-------- ---- -------- -------- ---- -------- --- --- ---- -----------------
ge.1.8 ena dis|dis dis|dis dis ena|ena ena 1 0 00:04:96:8b:d2:98

G3(su)->show port status ge.1.8
Alias Oper Admin Speed
Port (truncated) Status Status (bps) Duplex Type
--------- ------------ ------- ------- --------- ------- ------------
ge.1.8 XOS_X430 Down Up N/A N/A BaseT RJ45/PoE
G3(su)->

GTM-P2G8KFN