Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 21 Feb 2001 09:15:06 -0000
From:      "Richard Morte" <richard@sparky.uk.net>
To:        <freebsd-questions@FreeBSD.ORG>
Cc:        "David Kelly" <dkelly@hiwaay.net>
Subject:   RE: DHCP [ WAS: Problem Adding 2nd NIC]
Message-ID:  <NDBBJAMCELCBDMINDKAAKEEJCEAA.richard@sparky.uk.net>
In-Reply-To: <200102210051.f1L0pHm04406@grumpy.dyndns.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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 <mailto: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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?NDBBJAMCELCBDMINDKAAKEEJCEAA.richard>