Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 6 Nov 2003 08:03:39 +1030
From:      "Rob" <listone@deathbeforedecaf.net>
To:        "Your Name" <yusca@yus.ca>
Cc:        questions@FreeBSD.org
Subject:   Re: dhcp question
Message-ID:  <002401c3a3e4$7a8c9390$a4b826cb@goo>
References:  <E1AHQ53-0003Kn-MR@rslrs2-server.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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" <yusca@yus.ca>
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
>
>
>
>
>
>
>
>
>
> _______________________________________________
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to
"freebsd-questions-unsubscribe@freebsd.org"
>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?002401c3a3e4$7a8c9390$a4b826cb>