Jump to content

Dhcp Request Of Another Ip Range


Recommended Posts

I often see clients make a DHCP request to the IP they had on their own accesspoint often in the 192.168.x.x range.

When they are catched by the Jasager it sends a DHCPNAK back telling the client it has a wrong network because Jasager lives in the 172.42.x.x range by default ( i like that range - it fits my networks also ) but that DHCPNAK rejection oftens results in the client leaving (out of range) for good.

Does any one here know how one could add an alias to the Jasager dhcp server (dnsmasq) and have it also respond with a DHCPACK on an ip in that range ( eg 192.168.0.0/16 ) if the IP is free.

Jul 4 13:48:10 gateway daemon.info dnsmasq-dhcp[1759]: DHCPREQUEST(br-lan) 192.168.1.109 00:xx:xx:xx:xx:xx

Jul 4 13:48:10 gateway daemon.info dnsmasq-dhcp[1759]: DHCPNAK(br-lan) 192.168.1.109 00:xx:xx:xx:xx:xx wrong network

Regards Thermo

Link to comment
Share on other sites

uci add network alias

uci set network.@alias[-1].interface=lan

uci set network.@alias[-1].proto=static

uci set network.@alias[-1].ipaddr=192.168.0.1

uci set network.@alias[-1].netmask=255.255.0.0

uci commit network

reboot

So far so good.. hm how do i get the dnsmasq-dhcp process to serv ip's via that alias.. :o/

I guess there should be routing from 192.168.x.x to the 172.16.42.42 gw also..

<_<

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...