Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 129895 - problems with udhcpc in baselayout-1.12.0_pre17-r1
Summary: problems with udhcpc in baselayout-1.12.0_pre17-r1
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] baselayout (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Roy Marples (RETIRED)
URL:
Whiteboard:
Keywords:
: 130501 (view as bug list)
Depends on:
Blocks:
 
Reported: 2006-04-13 20:24 UTC by matthew.cline
Modified: 2006-04-19 12:57 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description matthew.cline 2006-04-13 20:24:04 UTC
I apologize for the non-descript summary, but I really don't know what the problem is.

When I attempt to bring up my network using /etc/init.d/net.eth0, the script exits  with the "OK!!" text. However, my network is not fully configured:

# ifconfig eth0
eth0      Link encap:Ethernet  HWaddr 00:0A:E6:EE:16:A2  
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:1847444 errors:0 dropped:0 overruns:0 frame:0
          TX packets:155672 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:2630280660 (2508.4 Mb)  TX bytes:29598933 (28.2 Mb)
          Interrupt:11 Base address:0x8000 

At first glance, it looks like the line that usually begins with "inet addr:" etc. is missing. So I cannot get access either the internet or the local network. I confirmed that my router does not have this computer in its DHCP table after running the net.eth0 script.

Looking in /var/log/messages for hints, I see this:

# tail /var/log/messages
Apr 14 00:14:34 brisco udhcpc[32571]: udhcpc (v0.9.9-pre) started
Apr 14 00:14:34 brisco udhcpc[32572]: script /lib/rcscripts/sh/udhcpc.sh failed: No such file or directory
Apr 14 00:14:34 brisco udhcpc[32571]: Sending discover...
Apr 14 00:14:35 brisco udhcpc[32571]: Sending select for 192.168.1.101...
Apr 14 00:14:35 brisco udhcpc[32571]: Lease of 192.168.1.101 obtained, lease time 86400
Apr 14 00:14:35 brisco udhcpc[32574]: script /lib/rcscripts/sh/udhcpc.sh failed: No such file or directory


And, indeed, there is no file called udhcpc.sh in /lib/rcscripts/sh/

I've also made sure that my etc files are up-to-date, and etc-update shows no updates pending.

I was able to bring the network up manually using /sbin/udhcpc after fiddling with the sample scripts provided in /usr/share/udhcpc/:

# /sbin/udhcpc --interface=eth0
udhcpc (v0.9.9-pre) started
Sending discover...
Sending select for 192.168.1.101...
Lease of 192.168.1.101 obtained, lease time 86400
deleting routers
SIOCDELRT: No such process
adding dns 68.100.16.25
adding dns 68.100.16.30
adding dns 68.9.16.30

Is there any additional information that I can provide to help solve this?

Thank you.
Comment 1 Roy Marples (RETIRED) gentoo-dev 2006-04-15 10:32:36 UTC
Please install net-misc/udhcp-0.9.9_pre20041216-r2 as that contains the script.
Comment 2 matthew.cline 2006-04-15 12:17:30 UTC
Thank you, that took care of it.
Comment 3 Roy Marples (RETIRED) gentoo-dev 2006-04-19 11:33:53 UTC
*** Bug 130501 has been marked as a duplicate of this bug. ***
Comment 4 Mathias Weigt 2006-04-19 12:57:20 UTC
(In reply to comment #1)
> Please install net-misc/udhcp-0.9.9_pre20041216-r2 as that contains the script.

Ok, but there should be at least a warning in the baselayout ebuild because  net-misc/udhcp-0.9.9_pre20041216-r2 is still masked ~x86. At least for a non-developer like me it is not obvious that I have to update additional non stable packages.