Subject: DHCP - How to
From: Olivier <oza-4h07@myamail.com>
Date: Tue, 13 May 2008 21:20:40 +0200
Tue, 13 May 2008 21:20:40 +0200
Hi,

Where can I find detailed and recent documentation helping to set up a
VServer guest as a DHCP server ?

I read this http://lena.franken.de/linux/debian_and_vserver/dhcpd.html(highest
Google ranking with "vserver dhcp"), searched this list archives
and tried man command but I'm still blocked.

Regards

PS:
1. Is /etc/vservers/dhcp.conf still used in etch (host and guest) ?
2. Any hint on this :

# cat /etc/vservers/dhcp.conf
IPROOT=192.168.100.254
IPROOTMASK=255.255.255.0
IPROOTBCAST=255.255.255.255
IPROOTDEV=eth1
S_HOSTNAME=ipbx
S_FLAGS="lock nproc"
ULIMIT="-H -u 1000"
S_CAPS="CAP_NET_RAW CAP_NET_BIND_SERVICE"
ONBOOT=yes

# vserver ipbx restart
....
Starting DHCP server: dhcpd3 failed to start - check syslog for diagnostics.
...
ipbx# tail /var/log/syslog
...
May 13 21:15:38 ipbx dhcpd: No subnet declaration for eth1 (0.0.0.0).
May 13 21:15:38 ipbx dhcpd: ** Ignoring requests on eth1.  If this is not
what
May 13 21:15:38 ipbx dhcpd:    you want, please write a subnet declaration
May 13 21:15:38 ipbx dhcpd:    in your dhcpd.conf file for the network
segment
May 13 21:15:38 ipbx dhcpd:    to which interface eth1 is attached. **
May 13 21:15:38 ipbx dhcpd:

ipbx# cat /etc/dhcp3/dhcpd.conf
subnet 192.168.100.0 netmask 255.255.255.0 {
        range 192.168.100.100 192.168.100.199;
}


Hi,

Where can I find detailed and recent documentation helping to set up a VServer guest as a DHCP server ?

I read this http://lena.franken.de/linux/debian_and_vserver/dhcpd.html (highest Google ranking with "vserver dhcp"), searched this list archives and tried man command but I'm still blocked.

Regards

PS:
1. Is /etc/vservers/dhcp.conf still used in etch (host and guest) ?
2. Any hint on this :

# cat /etc/vservers/dhcp.conf
IPROOT=192.168.100.254
IPROOTMASK=255.255.255.0
IPROOTBCAST=255.255.255.255
IPROOTDEV=eth1
S_HOSTNAME=ipbx
S_FLAGS="lock nproc"
ULIMIT="-H -u 1000"
S_CAPS="CAP_NET_RAW CAP_NET_BIND_SERVICE"
ONBOOT=yes

# vserver ipbx restart
....
Starting DHCP server: dhcpd3 failed to start - check syslog for diagnostics.
...
ipbx# tail /var/log/syslog
...
May 13 21:15:38 ipbx dhcpd: No subnet declaration for eth1 (0.0.0.0).
May 13 21:15:38 ipbx dhcpd: ** Ignoring requests on eth1.  If this is not what
May 13 21:15:38 ipbx dhcpd:    you want, please write a subnet declaration
May 13 21:15:38 ipbx dhcpd:    in your dhcpd.conf file for the network segment
May 13 21:15:38 ipbx dhcpd:    to which interface eth1 is attached. **
May 13 21:15:38 ipbx dhcpd:

ipbx# cat /etc/dhcp3/dhcpd.conf
subnet 192.168.100.0 netmask 255.255.255.0 {
        range 192.168.100.100 192.168.100.199;
}