Robert Fargher <[EMAIL PROTECTED]> wrote:

>  Does anyone know if one Linux box can be a DHCP server for 3 physical
>private networks, each with their own nic?  By this I mean, serve 192.168.1.x
>addresess to clients on eth1, 192.168.2.x addresses to clients on eth2 and
>192.168.3.x addresses to clients on eth3?
>
>   The idea is that the Linux box will have ADSL attached to eth0 and be doing
>IP masquerading for the three 192.168.x.x LANs.
>
>   I've gone through the man pages and didn't see anything on this

Yes, provided there's a network declaration for each subnet.  You'll want 
to modify dhcpd's startup script a bit so it only listens on eth1, 2 & 
3.  Modifying /etc/rc.d/init.d/dhcpd like so should do the trick:

# See how we were called.
case "$1" in
   start)
         # Start daemons.
         echo -n "Starting dhcpd: "
         daemon /usr/sbin/dhcpd eth1 eth2 eth3
         echo
         touch /var/lock/subsys/dhcpd
         ;;

-Eric


Eric Sisler
Library Computer Technician
Westminster Public Library
Westminster, CO, USA
[EMAIL PROTECTED]

Linux - don't fear the Penguin.
Want to know what we use Linux for?
Visit http://gromit.westminster.lib.co.us/linux


-- 
To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe"
as the Subject.

Reply via email to