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'm connected to the internet using AT&T Broadband internet on ETH1 and my internal network (10.10.5.*/24) on ETH0. I want to setup DHCP for my intenral network, but when I setup /etc/dhcp.conf and start the dhcpd daemon I get a message stating I need to enter a subnet declaration for the AT&T network also. How can I get DHCP setup for my internal network and disregard AT&T, I don't want to inadvertantly server DHCP to AT&T, that would be BAD. Thanks for any help
Let's see.. Fist of all you run dhcpcd on eth1 which is the daemon client correct? And you are looking to run dhcpd which is the server daemon. They are two different programs with two different configuration files.
..:
dhcpd.conf
dhcpd.leases
The second one can be empty, but it has to be created using touch or emacs. I think they reside in /etc/ and /etc/dhcpd/ or something like that.
Distribution: Whatever I feel like at the time I install.
Posts: 284
Rep:
I currently use DHCPD from ISC. If you download it there are very well written documents inside of it. I was able to install fairly easily.
I would suggest getting version 2 from this site: ISC
dhcpd tries to start broadcasting on all eth devices by default unless you give it the argument of an eth device. Also, I'm pretty certain you have to ifconfig your card up to be on whatever subnet you're going to be broadcasting to before you start the daemon. For instance, a .conf file like:
subnet 192.168.0.0 netmask 255.255.255.0 {
option routers 192.168.0.1;
option subnet-mask 255.255.255.0;
option domain-name-servers 64.30.160.2;
option time-offset -5; # Eastern Standard Time
range dynamic-bootp 192.168.0.10 192.168.0.240;
default-lease-time 86400;
}
in /home/bob/
would be invoked on eth0 with:
dhcpd eth0 -cf /home/bob/dhcpd.conf
The default is to look in /etc so you probably don't need the -cf flag, I've just got a number of .conf files depending on the week and the house derangement, but having a couple is an easy way to test and debug.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.