This is Bavaria, Germany!
Consider this for your /etc/vservers/dhcp.conf
IPROOT=10.1.1.63 IPROOTMASK=255.255.255.0 IPROOTBCAST=255.255.255.255 IPROOTDEV=eth0 S_HOSTNAME=netser S_FLAGS="lock nproc" ULIMIT="-H -u 1000" S_CAPS="CAP_NET_RAW CAP_NET_BIND_SERVICE" ONBOOT=yes |
This strange IPROOTBCAST seems to be needed by dhcpd running in vserver. It's a good idea not to have a samba server on the samba vserver.
netser:/# apt-get install dhcp
This is an example for dhcpd.conf:
# dhcpd.conf
subnet 10.1.1.0 netmask 255.255.255.0 {
# this is for the whole section:
# default-lease-time 600;
# max-lease-time 7200;
# more than one DNS -> seperate with comma
option domain-name-servers 10.1.1.63;
option domain-name "rosi13.de";
# foreigners geht ip-addresses from this range:
range 10.1.1.100 10.1.1.110;
# 10.1.1.1 is gatekeeper
# 10.1.1.2 is lisa
# Computer of Matthias
host emma {
hardware ethernet 00:e0:7d:b2:7d:c9;
fixed-address 10.1.1.5;
}
# Sony-Notebook Horshack
host flatworldlan {
hardware ethernet 00:01:03:9C:7A:F2;
fixed-address 10.1.1.6;
# gets a default gateway
option routers 10.1.1.11;
}
# Printer Horshack
host hp2200 {
hardware ethernet 00:01:e6:83:e1:8a;
fixed-address 10.1.1.7;
}
}
|
Stop/Start it
# /etc/init.d/dhcp stop # /etc/init.d/dhcp start