SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
If I have a dnsmasq server and it dished out a IP address that I don't want it to and it still gives it to my machine no matter how many times I restart windows and issue ipconfig /renew|release or enable/disable the adapter, how do I force it to give my windows machine an IP I want it to have?
I hope that made sense... The only way I've accomplished this in the past is by rebooting my slackware system.
If I have a dnsmasq server and it dished out a IP address that I don't want it to and it still gives it to my machine no matter how many times I restart windows and issue ipconfig /renew|release or enable/disable the adapter, how do I force it to give my windows machine an IP I want it to have?
I hope that made sense... The only way I've accomplished this in the past is by rebooting my slackware system.
You can bind your system's physical address to a specific ip address, so that whenever the DHCP server is requested to provide ip, it will give the same ip to that machine.
You can configure it in your dhcp server.
I use dhcp-host option in dnsmasq.conf and it normally works. But sometimes Windows screws up and messes up the cache or something and locks out the IP address somehow.
OK, It says this in syslog:
Code:
not giving name <windows host name> to the DHCP lease of 192.168.1.100 because the name exists in /etc/hosts with address 192.168.1.1
I use dhcp-host option in dnsmasq.conf and it normally works. But sometimes Windows screws up and messes up the cache or something and locks out the IP address somehow.
OK, It says this in syslog:
Code:
not giving name <windows host name> to the DHCP lease of 192.168.1.100 because the name exists in /etc/hosts with address 192.168.1.1
Oh... so like, then I should remove all the entries from my hosts file?
Wait... I never told it to give my Windows machine that address, it's just randomly giving it.
Ok, now it gave me a different IP after I disabled the network device and added the gateway IP to the network properties in Windows. But it's not the IP in dnsmasq.conf or /etc/hosts.
what is the hostname assigned to the windows machine? if it is luskan then the problem is that hostname is already mapped to an ip in /etc/hosts. you can't have two machines in a lan with the same hostname. i mean you could but what's the point?
My slackware box is luskan and my windows machine is neverwinter. I didn't assign it the same IP address. It's like dnsmasq still thinks that someone has my windows machines IP address, so it gives it a different one. I have set the IP manually in Windows because my windows box needs a specific IP address for certain apps I use, but I'd rather have dnsmasq give me the correct one. I know I could just restart linux and everything will go back to normal, but I don't want to close this app I have running on it.
So are you configuring staic dhcp addresses with dnsmasq? What I mean by that is do you have a mapping from mac address to ip address somewhere configured with dnsmasq so it knows to give a particular ip to particular device with that mac?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.