Hi,

I'm trying to set up a DHCP server working into a vserver. I know it can be a little difficult. I've followed the advises given in the FAQ. But my dhcp server still doesn't want to start...

Let's take a look at my configuration :

- I'm running Debian GNU/Linux for this vserver
- I've installed dhcp3-server
- The result of a "ifconfig" :

# ifconfig
eth0      Link encap:Ethernet  HWaddr 00:50:BA:BE:1E:F2
          inet6 addr: 2001:7a8:4b09:1:250:baff:febe:1ef2/64 Scope:Global
          inet6 addr: fe80::250:baff:febe:1ef2/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:110107 errors:0 dropped:0 overruns:0 frame:0
          TX packets:97171 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:100
          RX bytes:67840240 (64.6 MiB)  TX bytes:65085672 (62.0 MiB)
          Interrupt:11 Base address:0xe000

eth0:dhcp Link encap:Ethernet HWaddr 00:50:BA:BE:1E:F2
inet addr:192.168.0.204 Bcast:255.255.255.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
Interrupt:11 Base address:0xe000


lo        Link encap:Local Loopback
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:28289 errors:0 dropped:0 overruns:0 frame:0
          TX packets:28289 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:1693722 (1.6 MiB)  TX bytes:1693722 (1.6 MiB)

(a little of-topic question : I can see my global IPv6 addresses for eth0... can I hide it and block it for the vserver ?)

- When I'm trying to launch the DHCP server :

# /usr/sbin/dhcpd3 -d eth0:dhcp
Internet Software Consortium DHCP Server V3.0.1rc9
Copyright 1995-2001 Internet Software Consortium.
All rights reserved.
For info, please visit http://www.isc.org/products/DHCP
unable to create icmp socket: Operation not permitted
Wrote 0 leases to leases file.

No subnet declaration for eth0:dhcp (0.0.0.0).
** Ignoring requests on eth0:dhcp.  If this is not what
   you want, please write a subnet declaration
   in your dhcpd.conf file for the network segment
   to which interface eth0:dhcp is attached. **


Not configured to listen on any interfaces!


- My config file for the DHCP server :

# cat /etc/dhcp3/dhcpd.conf
ddns-update-style none;

default-lease-time 600;
max-lease-time 7200;
option subnet-mask 255.255.255.0;
option broadcast-address 192.168.0.255;
option routers 192.168.0.1;
option domain-name-servers 192.168.0.1;
option domain-name "mydomain.tld";
authoritative;

subnet 192.168.0.0 netmask 255.255.255.0
{
   range 192.168.0.240 192.168.0.254;
}

- the configuration of my vserver :

# cat /etc/vservers/dhcp.conf
IPROOT=192.168.0.204
IPROOTDEV=eth0
IPROOTBCAST=255.255.255.255
ONBOOT=no
S_HOSTNAME=dhcp


What do I have to do make this DHCP server working ? Why does ping disabled ? ... :c)


Thanks in advance,

--
Baptiste SIMON
Administrateur syst�me GNU/Linux & Unix
Societe Code Lutin
http://www.codelutin.com



Reply via email to