From owner-freebsd-questions Tue Feb 20 16:51:55 2001 Delivered-To: freebsd-questions@freebsd.org Received: from grumpy.dyndns.org (user-24-214-56-129.knology.net [24.214.56.129]) by hub.freebsd.org (Postfix) with ESMTP id 27A7637B4EC for ; Tue, 20 Feb 2001 16:51:51 -0800 (PST) (envelope-from dkelly@grumpy.dyndns.org) Received: from localhost (localhost [127.0.0.1]) by grumpy.dyndns.org (8.11.2/8.11.2) with ESMTP id f1L0pHm04406; Tue, 20 Feb 2001 18:51:17 -0600 (CST) (envelope-from dkelly@grumpy.dyndns.org) Message-Id: <200102210051.f1L0pHm04406@grumpy.dyndns.org> X-Mailer: exmh version 2.3.1 01/18/2001 with nmh-1.0.4 To: "Richard Morte" Cc: freebsd-questions@FreeBSD.ORG From: David Kelly Subject: Re: DHCP [ WAS: Problem Adding 2nd NIC] In-reply-to: Message from "Richard Morte" of "Tue, 20 Feb 2001 23:28:43 GMT." Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Tue, 20 Feb 2001 18:51:17 -0600 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG "Richard Morte" writes: > OK everyone, > > Resolved the problem with the NIC - just wasn't compatible, so I swapped it > for a spare FA310 and all is well - I now have pn0 and pn1. The FA311 has > now gone into a windows machine! > > Now I have a new problem: I've added the line: > ifconfig_pn1="DHCP" > into rc.conf > > On reboot I get the message: > ifconfig: DHCP: Bad value > and, of course, no IP address is set for the NIC. > > However if I run : > dhclient pn1 > from the command prompt, I am provided with an IP address by the remote host > and I can ping the world. I'm running 3.2 - any idea what should be put in > rc.conf to start DHCP client at each re-boot? First I would try "ifconfig -l" to see if it lists your NICs. Then I'd look into /etc/rc.network and discover when dhclient is run it is started once only for all DHCP interfaces at the same time. Possibly like this for you: dhclient pn0 pn1 I'd try that in my keyboard single-stepping to see where the problem is happening. I wonder if its asking the DHCP server on pn0 for an address to use on pn1, and is being refused. That is, if you use DHCP on both. -- David Kelly N4HHE, dkelly@hiwaay.net ===================================================================== The human mind ordinarily operates at only ten percent of its capacity -- the rest is overhead for the operating system. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message