DHCP:
setup: dhcp-2.0p15*
cp /usr/share/doc/dhcp-2.0p15/dhcp.conf.sample /etc/dhcpd.conf
make /etc/dhcpd.conf look like this:
subnet 192.168.1.0 netmask 255.255.255.0 {
range 192.168.1.128 192.168.1.250;
option routers 192.168.1.15;
option subnet-mask 255.255.255.0;
option nis-domain "domain.org";
option domain-name "200.mytree";
option domain-name-servers 194.90.1.5, 199.203.1.20;
option time-offset -5;
range dynamic-bootp 192.168.1.128 192.168.1.255;
default-lease-time 21600;
max-lease-time 43200;
# we want the nameserver to appear at a fixed address
host ns
{
hardware ethernet 12:34:56:78:AB:CD;
fixed-address 192.168.1.3;
}
}
touch /var/lib/dhcp/dhcpd.leases
/etc/rc.d/init.d/dhcpd start
2 ethernet cards with a dhcp:
at /etc/init.d/dhcpd in the start() section make
the line like that:
daemon /usr/sbin/dhcpd eth0
info:
dhcp request is beeing asked every 3 hours
can b seen at /var/lib/dhcp/dhcpd.leases
|