From owner-freebsd-questions Wed Feb 21 1:15:16 2001 Delivered-To: freebsd-questions@freebsd.org Received: from blueyonder.co.uk (pcow029o.blueyonder.co.uk [195.188.53.123]) by hub.freebsd.org (Postfix) with ESMTP id 890F537B491 for ; Wed, 21 Feb 2001 01:15:11 -0800 (PST) (envelope-from richard@sparky.uk.net) Received: from rics2 ([213.48.30.138]) by blueyonder.co.uk with Microsoft SMTPSVC(5.5.1877.197.19); Wed, 21 Feb 2001 09:16:46 +0000 From: "Richard Morte" To: Cc: "David Kelly" Subject: RE: DHCP [ WAS: Problem Adding 2nd NIC] Date: Wed, 21 Feb 2001 09:15:06 -0000 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0) In-Reply-To: <200102210051.f1L0pHm04406@grumpy.dyndns.org> Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V5.00.3018.1300 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG David, Thank you for your reply! ifconfig -l shows both pn0 and pn1 once only together with the usual lo0, lp0 etc. ifconfig -a shows pn0 with the IP Addresses set as per rc.conf, up and running ifconfig -a shows pn1 with no IP addresses set (because it fails at boot time) and not up and not running. pn0 works fine for the _internal_ network - all PC's can see each other. after issuing "dhclient pn1" at the command prompt, ifconfig -a now shows the IP address provided by the DHCP server: inet 62.31.2.... etc, with netmask correctly assigned, up and running. Just as expected. Now on to rc.network. I'm no shell programmer, but it's kind of followable. This file has never been modified since installation, so my guess is that it's correct. The only thing I don't understand is the different references to the various enable flags : = X"YES" for example , then later = "XYES", but the LHS seems to mirror the RHS, so I guess all is well. I cannot see any reference to the 'Bad Value' string, so some other script must be reporting this. I don't think there's a request for DHCP on pn0. I think the problem lies elsewhere... Ric Richard Morte e-mail : richard@sparky.uk.net phone : 0114 233 7993 fax : 0114 220 6075 mobile : 0779 091 8736 -----Original Message----- From: dkelly@grumpy.dyndns.org [mailto:dkelly@grumpy.dyndns.org]On Behalf Of David Kelly Sent: 21 February 2001 00:51 To: Richard Morte Cc: freebsd-questions@FreeBSD.ORG Subject: Re: DHCP [ WAS: Problem Adding 2nd NIC] "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