Date: Wed, 05 Nov 2003 11:00:25 -0500 From: "Your Name" <yusca@yus.ca> To: questions@FreeBSD.org Subject: dhcp question Message-ID: <E1AHQ53-0003Kn-MR@rslrs2-server.com>
next in thread | raw e-mail | index | archive | help
--
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?E1AHQ53-0003Kn-MR>
