Community discussions

MikroTik App
 
tncweb
just joined
Topic Author
Posts: 16
Joined: Thu Apr 20, 2006 12:21 am
Location: Nova Scotia, Canada
Contact:

Looking For an answer too zero mac addresses...

Wed May 21, 2008 4:00 am

So I have read all the posts etc. And it seems as though zero mac addreses on DHCP is just an annoyance I will have to put up with. I am running 2.9.51 on all my routers and they work fine however any given day the dhcp server can get flooded with zeroed mac addresses from other routers or vista machines. Has anyone had any luck solving this issue as of yet I know it also exsists in Version 3 as well.

Any help would be greagt!!

Cheers!!!
 
User avatar
sergejs
MikroTik Support
MikroTik Support
Posts: 6697
Joined: Thu Mar 31, 2005 3:33 pm
Location: Riga, Latvia
Contact:

Re: Looking For an answer too zero mac addresses...

Wed May 21, 2008 3:31 pm

I think it is better to find the reason, why you have 00:00:00:00:00:00 present on your network. It could be that some user has broken card or incorrect driver. Try to find that user and solve that problem, instead of thinking about workaround scripts.
 
bokad
Member Candidate
Member Candidate
Posts: 152
Joined: Tue Oct 18, 2005 7:34 pm

Re: Looking For an answer too zero mac addresses...

Mon Jun 09, 2008 11:54 pm

/ip dhcp-server lease remove [find mac-address=00:00:00:00:00:00 dynamic=yes]

I run that script every ten minutes.
 
lexo9
just joined
Posts: 3
Joined: Fri Mar 31, 2017 4:50 pm

Re: Looking For an answer too zero mac addresses...

Thu Apr 26, 2018 9:29 am

/ip dhcp-server lease remove [find mac-address=00:00:00:00:00:00 dynamic=yes]

I run that script every ten minutes.
.
that script does not delete zero mac addresses. maybe some syntax changed in later updates or I am doing something wrong. the problem still persists in 6.43 version, maybe it's not Microtik related, but layer 2 related issue though. any help with either script or preventing zero addresses from adding in DHCP?
 
User avatar
Anumrak
Forum Guru
Forum Guru
Posts: 1174
Joined: Fri Jul 28, 2017 2:53 pm

Re: Looking For an answer too zero mac addresses...

Thu Apr 26, 2018 3:42 pm

Maybe you should make static dhcp leases with arp records? With arp reply only function on physical port. Your situation reminds me dhcp starvation attack, if you have a lot of macs with zeros.
Last edited by Anumrak on Thu Apr 26, 2018 4:14 pm, edited 1 time in total.
 
User avatar
BartoszP
Forum Guru
Forum Guru
Posts: 2975
Joined: Mon Jun 16, 2014 1:13 pm
Location: Poland

Re: Looking For an answer too zero mac addresses...

Thu Apr 26, 2018 3:51 pm

10 years old thread reincarnation? ROS 2.xx? Get a life .... :-)
 
fsurmain
just joined
Posts: 1
Joined: Thu Apr 26, 2018 5:23 pm

Re: Looking For an answer too zero mac addresses...

Thu Jan 23, 2020 3:52 pm

I know it's a bit late but here it goes. I have RB1100AHx2 that serves as a hotspot in a hotel and one day found dreadful log message "failed to give out IP address: pool is empty". So as a workaround I managed to write a working script that removes all the leases with 00:00:00:00:00:00 as mac address.

:foreach a in=[/ip dhcp-server lease find where dynamic=yes server~"CLIENTES" status=busy] do={:if ([/ip dhcp-server lease get number=$a mac-address ] = []) do={/ip dhcp-server lease remove numbers=$a}};

I am sure it can be adapted to fit any case.
 
kikigak
just joined
Posts: 6
Joined: Sat Apr 29, 2017 4:24 pm

Re: Looking For an answer too zero mac addresses...

Tue Sep 01, 2020 5:13 am

I'm also having this issue. Does anyone knows the solution?
here's my post, viewtopic.php?f=7&t=165646
 
AgustinScazzino
just joined
Posts: 1
Joined: Wed Sep 09, 2020 4:10 am

Re: Looking For an answer too zero mac addresses...

Wed Sep 09, 2020 4:17 am

i have same problem with RouterOS 6.47. When i turn on DHCP server, this service begin to create Mac 00:00:00:00:00 all the time. We tried to eliminated with script but don't work.

my question is how can stop this because DHCP server is full

Thanks
 
scracha
newbie
Posts: 25
Joined: Fri Dec 27, 2013 3:28 am

Re: Looking For an answer too zero mac addresses...

Mon Nov 29, 2021 4:54 am

Seems to be a workaround...
/system scheduler add interval=5m name=dhcp-workaround on-event="/ip dhcp-server lease remove [find where active-mac-address<0 and dynamic=yes]" start-time=startup
 
rkmik
just joined
Posts: 2
Joined: Thu Aug 17, 2017 4:11 pm

Re: Looking For an answer too zero mac addresses...

Tue Mar 15, 2022 9:56 am

Disabling "Conflict detection" in DHCP server > Generic settings helps us get rid of the 00 MAC issues. We have enabled 'Add ARP for Leases' so only IP assigned by DHCP get internet access
 
TomSF
Member Candidate
Member Candidate
Posts: 104
Joined: Tue Jun 27, 2017 2:12 am

Re: Looking For an answer too zero mac addresses...

Thu May 26, 2022 6:16 pm

Same zero mac address problem but with IPv6. My neighbor list has 177 items, 48 of which have zero mac addresses. None of these IPv6 addresses w/ zero mac addresses match IPv6 address w/ valid mac addresses. I am running ROS v7.2.3. Things seem to be working OK, but I wish I understood the zero mac addresses.

Who is online

Users browsing this forum: No registered users and 8 guests