If you're running dhcpd(8) on two interfaces, the command should probably be
/usr/sbin/dhcpd -q rl1 rl2 Have you checked /var/log/messages for errors? ----- Original Message ----- From: "Your Name" <[EMAIL PROTECTED]> Subject: dhcp question > > -- > Hi all > > I would like to configure 2 network cards to have dhcp server function > but it doesnt'work > > NIC rl0 is WAN port > NIC rl1 is for 192.168.0.1 network > NIC rl2 is for 10.0.0.1 network > > I put dhcpd.sh in the /usr/local/etc/rc.d > > #!/bin/sh > /usr/sbin/dhcpd rl1 -q > /usr/sbin/dhcpd rl2 -q > > > Those rl1 and rl2 are using NAT to go to outside > > In the /etc/dhcpd.conf > > I configured the network > > authoritative; > subnet 192.168.0.0 netmask 255.255.255.0 { > range 192.168.0.100 192.168.0.150; > option domain-name "abc.com"; > option domain-name-servers 24.141.32.200; > > default-lease-time 600; > max-lease-time 7200; > option routers 192.168.0.1; > option broadcast-address 192.168.0.255; > default-lease-time 600; > max-lease-time 7200; > } > > subnet 10.0.0.0 netmask 255.0.0.0 { > range 10.0.0.100 10.0.0.150; > option domain-name "abc.com"; > option domain-name-servers 24.141.32.200; > > default-lease-time 600; > max-lease-time 7200; > option routers 10.0.0.1; > option broadcast-address 10.255.255.255; > default-lease-time 600; > max-lease-time 7200; > } > > Thank you > > > > > > > > > > _______________________________________________ > [EMAIL PROTECTED] mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "[EMAIL PROTECTED]" > _______________________________________________ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"