[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: DHCP for 2 networks



On Mon, 04 Mar 2002 17:45:55 -0600, you wrote:

>I have a Debian firewall that connects my internet connection to my network.
>Internet is on eth0.  The network is subdivided into two sections, eth1 a
>DMZ for my servers witch is in the 10.10.0.0/24 range, and and eth2 my
>protected lab computers in the 10.0.0.0/24 range.
>
>I want to install a DHCP server on the firewall to give out addresses to the
>two networks, but I am having trouble with the dhcp.conf file.

I have a similar setup [using the ISC server].
Modify /etc/init.d/dhcp as below.

_part_ of mine says...

case "$1" in
        start)
                start-stop-daemon --start --quiet --pidfile $DHCPDPID 
                        --exec /usr/sbin/dhcpd eth2 eth1
                ;;
        stop)
                start-stop-daemon --stop --quiet --pidfile $DHCPDPID
                ;;
        restart)
                start-stop-daemon --stop --quiet --pidfile $DHCPDPID
                sleep 2
                start-stop-daemon --start --quiet --pidfile $DHCPDPID 
                        --exec /usr/sbin/dhcpd eth2 eth1
                ;;
        *)
                echo "Usage: /etc/init.d/dhcp {start|stop|restart}"
                exit 1
esac

and,just in case,  _part_ of /etc/dhcp.conf says...

subnet 192.168.1.0 netmask 255.255.255.0 {
range 192.168.1.10 192.168.1.254;
option broadcast-address 192.168.1.255;
option routers 192.168.1.1;
}

subnet 192.168.2.0 netmask 255.255.255.0 {
range 192.168.2.10 192.168.2.254;
option broadcast-address 192.168.2.255;
option routers 192.168.2.1;
}

[Hope this displays correctly....posting from a windows email client]

HTH, Simon.



Reply to: