I have eth0 192.168.0.1 and eth2 192.168.98.1 and here is my simplified dhcpd.conf:
# dhcpd.conf
#
# Configuration file for ISC dhcpd (see 'man dhcpd.conf')
#
default-lease-time 2400;
max-lease-time 7200;
option domain-name "mydomain.com";
ddns-update-style none;
subnet 192.168.0.0 netmask 255.255.255.0 {
option subnet-mask 255.255.255.0;
option broadcast-address 192.168.0.255;
option routers 192.168.0.1;
range 192.168.0.51 192.168.0.249;
}
subnet 192.168.98.0 netmask 255.255.255.0 {
option subnet-mask 255.255.255.0;
option broadcast-address 192.168.98.255;
option routers 192.168.98.1;
range 192.168.98.51 192.168.98.249;
}
and DHCP starts in my startup script (rc.inet2 in slackware):
Code:
/usr/sbin/dhcpd eth0 eth2