From owner-freebsd-questions@FreeBSD.ORG Wed Nov 5 13:33:46 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 76CBF16A4CF for ; Wed, 5 Nov 2003 13:33:46 -0800 (PST) Received: from zim.0x7e.net (zim.0x7e.net [203.38.184.132]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7550A43FFB for ; Wed, 5 Nov 2003 13:33:45 -0800 (PST) (envelope-from listone@deathbeforedecaf.net) Received: from goo.0x7e.net ([203.38.184.164] helo=goo) by zim.0x7e.net with smtp (Exim 3.36 #1) id 1AHVHY-000GR3-00; Thu, 06 Nov 2003 08:03:40 +1030 Message-ID: <002401c3a3e4$7a8c9390$a4b826cb@goo> From: "Rob" To: "Your Name" References: Date: Thu, 6 Nov 2003 08:03:39 +1030 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4927.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4927.1200 cc: questions@FreeBSD.org Subject: Re: dhcp question X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 05 Nov 2003 21:33:46 -0000 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" 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" >