Nicolas Beaulieu wrote:
Hello,
Did anyone ever set up a DHCP server on a virtual interface (e.g. eth0:0)? I've searched the archives on the web but nothing came out of this.
I've succeeded may times to set DHCPD on boxes with 2 NIC's, but this one's too hard for me. When invoking dhcpd on net device eth0:0, it complains about not being configured to listen on any interface, among other things:
Jan 20 17:30:14 patagonia dhcpd: Wrote 0 leases to leases file. Jan 20 17:30:14 patagonia dhcpd: Jan 20 17:30:14 patagonia dhcpd: No subnet declaration for eth0:0 (0.0.0.0). Jan 20 17:30:14 patagonia dhcpd: Ignoring requests on eth0:0. Jan 20 17:30:14 patagonia dhcpd: If this is not what you want, please write Jan 20 17:30:14 patagonia dhcpd: a subnet declaration in your dhcpd.conf file for Jan 20 17:30:14 patagonia dhcpd: the network segment to which interface eth0:0 is attached. Jan 20 17:30:14 patagonia dhcpd: Not configured to listen on any interfaces!
This is the case with SuSE's rpm, and with the latest DHCPD version from tarball found on ISC's ftp.
This box runs SuSE 6.2 with Kernel 2.4.0.
Somebody to help me? If so, what should I have in the network section of /etc/rc.config?
Have you checked your /etc/dhcpd.conf file to see if there is a subnet... section for the subnet that eth0:0 is on? That's pretty much what the error messages imply. The subnet part of my dhcpd.conf looks like: subnet 192.168.0.0 netmask 255.255.255.0 { range 192.168.0.64 192.168.0.127; option broadcast-address 192.168.0.255; } Here, eth0 is on the 192.168.0.0 network. Let me know if you still can't quite nail the problem, Chris -- __ _ -o)/ / (_)__ __ ____ __ Chris Reeves /\\ /__/ / _ \/ // /\ \/ / ICQ# 22219005 _\_v __/_/_//_/\_,_/ /_/\_\