Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
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.
Distribution: Just about anything... so long as it is Debain based.
Posts: 297
Rep:
dhcpd - new lease every second on M$ box
I am setting up a Squid Proxy/DHCP/FTP/DNS box for a project at work. Everything works fine when I connect to the network with a Linux box, but when I connect with a M$ box I am unable to obtain and hold a DHCP lease.
What I want to happen is for boxes to be plugged into my network, get a 192.168.10 address, and use this box to route to the 192.168.3 network which is the gateway to the internet.
To make a long story short, I've got 192.168.10.0 and 192.168.3.0 running on the same switch (no VLANS for you Cisco people), and I've got two NIC's in my server.
When I watch /var/log/daemon.log I saw that what was happening is that the M$ box was getting a lease then attempting to get a new lease one second later. Mixxed in with these lease messages was a line stating "no free leases on subnet 192.168.3.0."
When I disconnect the 192.168.3 interface on my server the M$ boxes get an IP and hold it, so it looks to me like the M$ box is re-trying to get a lease on the 192.168.3 network even though I'm not handing out IP's on that network.
Well, it's pretty obvious that the problem is the 192.168.3.0 subnet entry. If anything tried to get an IP from that subnet, it would of course fail since there is no range information.
What happens when you remove that? What sort of problem does it cause dhcpd?
Distribution: Just about anything... so long as it is Debain based.
Posts: 297
Original Poster
Rep:
WOW, that was quick...
I too thought it was stupid to even mention the 192.168.3.0 network in my DHCP config, but I had to or DHCPD would bomb. It needs each subnet mentioned in the config or it won't run properly; though, I have been told by others in another forum that theirs works without mention of the 2nd subnet. If you read the man pages though it says to mention all the subnets for the daemon to work.
The reason for the strange setup is that I have these two networks sharing the same media. I have a 192.168.10.0 system plugged into the same switch/hub as a 192.168.3.0 system. The odd part is that my Linux boxes get a DHCP address on the .10 and they don't care that the .3 failed. They're just happy they got an address. It was only the M$ boxes that weren't satisfied with one address, they wanted an address from both interfaces. Odd, but not surprising given M$'s other quirks.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.