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.
I am in the process of setting up a dhcp server. I can get the correct IP addresses allocated. The client will pick up an active lease. All appears on track. Except the Internet which does not appear at all.
eth0 is used only to connect to the router and has the 192.168.1.x range.
eth1 is used for the local network and has the 10.0.0.x range.
From a client the Internet does not appear (no browser, no skype) but also if I ping eth0 or the gateway from a client then I get the error unreachable. The server can be used to ping google.com without issue.
cat /etc/resolv.conf shows the two name server addresses.
This is the dhcpd.conf with the commented out blocks removed.
the gateway for 10.0.0.0/24 must be *IN* 10.0.0.0/24 otherwise it can't even reach that. this very server is acting as that gateway by all accounts, so should be that ip, not your internet router.
Thanks for your message but sorry, I do not understand it.
I set eth1 to 10.0.0.88. Are you telling me that this is wrong?
or are you telling me that the gateway address of 192.168.1.1 is not much good when used with eth1? But if that is the case how can the eth1 find the gateway off eth0.
also those "host" sections are totally wrong and mean nothing. what do you expect them to do for you? a host definition defines a known specific machine with a known mac address that you want special measures to be taken on.... you have no need for that at all as of yet. you certainly wouldn't server *yourself* DHCP....
Last edited by acid_kewpie; 12-31-2007 at 02:56 AM.
I think I made a mistake in using webmin to set this up. I did follow the notes and that is why I ended up with the host sections. So they are now gone. It still does not work which is annoying but no idea why not. Is the broadcast address correct for eth1?
The network card on the client and the corresponding card on the server are using different ranges so this must be the problem.
I have tried changing the network card settings on the client from the roaming default to DHCP to giving a fixed address but nothing seems to make any difference.
The dhcpd.conf now is this which is not exactly complex
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.