DHCP - locking IP to MAC doesn't seem to work

Report wireless and/or network connectivity problems in this forum.

Moderator: Moderators

igorgel
Posts: 7
Joined: Sun Jan 04, 2015 3:58 am

DHCP - locking IP to MAC doesn't seem to work

Post by igorgel »

Hi

I seem to have some issue with DHCP config. I tried to search thru the forum but cannot find solution for my issue.

I have just installed Gargoyle 1.6.2 on my NetGear WNDR3800 device. It helped me to solve the long lasting issue of stock netgear firmware with dropping WLAN clients, thanks :)

However the problem that I have at the moment is related with DHCP configuration - I wan't DHCP to assign specific IPs to the specific devices by MAC. I have added few MACs to the Gargoyle setup like this (last digits of MAC are masked, just in case):

Code: Select all

[x] LAN DHCP Server Enabled
DHCP range:
	Start:	192.168.1.100
	End:	192.168.1.249
	Lease Time: 12 (hours)
			

Assigned Static IP Addresses:
Hostname	MAC	IP		
GEL-PC-WIFI  1C:4B:D6:55:12:34    192.168.1.54		
GEL-PC-WIRED 48:5B:39:29:12:34 	192.168.1.232		
BROTHER		00:80:92:C4:12:34 	192.168.1.161		
TP-LINK		00:23:CD:12:12:34 	192.168.1.60	
However whenever I'm connecting from any WiFi device, DHCP seems to be assigning IP starting from 192.168.1.50, which is even outside the allowed DHCP range. Also the host names that I have assigned on DHCP setup page seem to be mixed up - see MAC 00:23xxx assigned to wrong IP and hostname below:

Code: Select all


Hostname	Host IP	Host MAC	Bitrate	Signal
(unknown)	192.168.1.50		1C:4B:D6:55:12:34	108.0 Mbit/s	-63 dBm
(unknown)	192.168.1.51		20:68:9D:EE:12:34	121.5 Mbit/s	-74 dBm
GEL-PC-WIFI 192.168.1.54		00:23:CD:12:12:34	1.0 Mbit/s	-69 dBm
(unknown)	192.168.1.56		00:E0:91:D0:12:34	54.0 Mbit/s	-79 dBm

I've checked twice that my devices are relying on DHCP to obtain the IP. What could be the problem? Thanks in advance!

P.S. HNY to all BTW :)
Last edited by igorgel on Sun Jan 04, 2015 6:33 am, edited 1 time in total.

ispyisail
Moderator
Posts: 5212
Joined: Mon Apr 06, 2009 3:15 am
Location: New Zealand

Re: DHCP - locking IP to MAC doesn't seem to work

Post by ispyisail »

can you show us screen shots of your related config pages

also sometimes a failsafe reset can fix many problems (depending....)

igorgel
Posts: 7
Joined: Sun Jan 04, 2015 3:58 am

Re: DHCP - locking IP to MAC doesn't seem to work

Post by igorgel »

Here are the screenshots. I can't reboot router right now as it's heavily used, but will try to do it later.

What looks very suspicious to me is that IP ...1.54 and hostname "GEL-PC-WIFI" that are assigned to the wrong MAC...
Attachments
Connection - DHCP setup
Connection - DHCP setup
Conn DHCP.png (216.93 KiB) Viewed 7395 times
Connection - basic setup
Connection - basic setup
Conn basic.png (222.72 KiB) Viewed 7395 times
Status - Connected hosts
Status - Connected hosts
Connected hosts.png (221.54 KiB) Viewed 7395 times

igorgel
Posts: 7
Joined: Sun Jan 04, 2015 3:58 am

Re: DHCP - locking IP to MAC doesn't seem to work

Post by igorgel »

Reboot didn't help. All the new clients are being assigned with IP in range 192.168.1.5x. Weird...

tapper
Moderator
Posts: 1076
Joined: Sun Oct 13, 2013 5:49 pm
Location: Stoke-on-trent UK

Re: DHCP - locking IP to MAC doesn't seem to work

Post by tapper »

Hi mate what is ment by firstboot is not a reboot it is a command what you type in over telnet. You can read more here:
http://wiki.openwrt.org/doc/howto/generic.failsafe
Thinking about it now i dont no if you have to be in Failsafe to run firstboot. It mite work from a standard command line. It's like doing a factory reset.
Linksys WRT3200ACM
NETGEAR Nighthawk R7800
NETGEAR R6260

igorgel
Posts: 7
Joined: Sun Jan 04, 2015 3:58 am

Re: DHCP - locking IP to MAC doesn't seem to work

Post by igorgel »

Oh, good to know, thanks! I'm still new to Gargoyle and OpenWRT :)

I will try it later when not much traffic.

Andy
Posts: 21
Joined: Wed Oct 01, 2014 10:51 pm

Re: DHCP - locking IP to MAC doesn't seem to work

Post by Andy »

I had the same problem on 1.6.2 with a WDR3600, except it also happened even without using static IPs. Plus the clients that received a wrong IP address couldn't connect to the internet.

Can you let me know if a firstboot fixes it for you?

ispyisail
Moderator
Posts: 5212
Joined: Mon Apr 06, 2009 3:15 am
Location: New Zealand

Re: DHCP - locking IP to MAC doesn't seem to work

Post by ispyisail »

from memory there was a bug that was patched after 1.6.2

try

http://www.gargoyle-router.com/phpbb/vi ... =14&t=6356

igorgel
Posts: 7
Joined: Sun Jan 04, 2015 3:58 am

Re: DHCP - locking IP to MAC doesn't seem to work

Post by igorgel »

Thanks to all for responses! Unfortunately can't run failsafe reboot due to heavy traffic, probably will delay it until weekend. Will update you then.

ispyisail
Moderator
Posts: 5212
Joined: Mon Apr 06, 2009 3:15 am
Location: New Zealand

Re: DHCP - locking IP to MAC doesn't seem to work

Post by ispyisail »

I've had a closer look at your screen shots

I can't see a problem

it appears that you have manually assigned static IP address, which can be any address you like?

Post Reply