Horror Vacui wrote:
> On Wed, 20 Oct 2004 14:54:01 -0500
> James wrote:
>
> > Horror Vacui wrote:
> >
> > > modprobe mii
> > >
> > > and "mii-tool" again after that. Post output.
> > >
> > modprobe mii returns nothing..
>
> The idea was to retry "mii-tool" after you have inserted the mii module
> with "modprobe mii". If modprobe mii returns nothing, that's good,
> because it isn't supposed to output anything (unless there is an error).
> So do "mii-tool" after you have done "modprobe mii", and post output.
>
> > > > dhcpcd returned:
> > > > sed: can't read /etc/resolv.conf: No such file or directory
> > > > cat: /etc/resolv.conf: no such file or directory
> > > > rm: cannot remove 'etc/resolv.conf': No such file or directory
> > >
> > > Hm, now we might be onto something... I don't find it likely that
> > > the whole address acquisition should fail only because of this, but
> > > who knows... It at least is one error that we can fix... Do this (as
> > > root):
> > >
> > > touch /etc/resolv.conf
> > >
> > > This will create an empty file with that name, so dhcpcd can write
> > > to it. Now try dhcpcd eth0 again. Do you get an IP now?
> > >
> > touch creates the file, but dhcpcd wipes it out....it disappears.
>
> Hm, that shouldn't happen... See what happens after you create it again
> and put some bogus lines in it, like these:
>
> search mydomain.bogus
> nameserver 10.0.0.1
> nameserver 10.0.0.2
>
> After that, check if there's already a dhcpcd process running:
>
> ps aux | grep dhcp
ok, the above command returns: root 3199 0.0 0.2 1692 628 tty1
S+ 11:09 0:00 grep dhcpcd
>
> If you get a line listing the dhcp process (don't mix that up with the
> "grep dhcp" process), kill it:
>
> killall -9 dhcpcd
didn't do the above killall
>
> and try obtaining the IP again, you know already:
>
> dhcpcd eth0
The above returned: Wrote 0 deleted hosts decls to leases file
Wrote 0 new dynamic host decls to
lease file
Wrote 0 leases to leases file.
No subnet declaration for eth0 (0.0.0.0).
** Ignoring requests on eth0. If this is not what you want, please
write a subnet declaration in your dhcpcd.conf file for the network
segment to which interface eth0 is attached.**.
>
> >
> > > If not, do this (as root again):
> > >
> > > grep -re dhcpcd\[[0-9]*\] /var/log/*
> > >
> > > and post the output here again (the lines will be dated, if you get
> > > too much lines post only those from the last couple of days). This
> > > should output all the messages that your dhcp client logged, they
> > > might prove useful.
> > >
> > the grep returns nothing not even a error message.
>
> The grep just searches looks through your log files and prints the lines
> containing something like "dhcpcd[3359]" - that is, the name of the
> logging program, and its process ID. Perhaps your log messages are in
> different format then mine, try grepping for "dhcp" only, like this:
>
> grep -r dhcp /var/log/*
>
> ...and of course, post any output.
The output:
var/log/boot.msg:done<notice>checkproc: /sbin/dhcpcd 1377
(there were 3 or 4 of the above.
/var/log/localmessages:Oct 22 11:15:01 linux dhcpcd: Wrote 0 new dynamic
host decls to leases file
/var/log/localmessages:Oct 22 linux dhcpcd: Wrote 0
leases to leases file
/var/log/messages:Oct 17 linux dhcpd[1971]:
broadcasting DHCP_DISCOVER
/var/log/messages:Oct 17 linux dhcpcd[1971]:
timed out waiting for a valid DHCP server response
/var/log/messages: Oct 19 linux dhcpcd[1486]:
terminating on signal 15
/var/log/message : Oct 19 linux dhcpcd-hook:
Skipping 'ifdown $INTERFACE-o dhcp' call
there was more of the same, but I think this should do it...besides my
eyes are getting bleary.
Jim
>
> > Question: the irq for the nic is 5 in Windows and 9 in
> > Linux...does
> > that make a difference?
>
> No, I don't think so.
>
> > Does the cd after dchp stand for client daemon?
>
> That would make sense. It is a client, but it also runs in the
> background like a demon process does.
>
> Cheers
>
> --
> Horror Vacui
>
> Registered Linux user #257714
>
------------------------ Yahoo! Groups Sponsor --------------------~-->
$9.95 domain names from Yahoo!. Register anything.
http://us.click.yahoo.com/J8kdrA/y20IAA/yQLSAA/0XFolB/TM
--------------------------------------------------------------------~->
To unsubscribe from this list, please email [EMAIL PROTECTED] & you will be removed.
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/LINUX_Newbies/
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/