Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 111972 - net-setup fails to configure network adapters
Summary: net-setup fails to configure network adapters
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Release Media
Classification: Unclassified
Component: Everything (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Release Team
URL:
Whiteboard:
Keywords: InVCS
Depends on:
Blocks:
 
Reported: 2005-11-09 07:49 UTC by prism
Modified: 2008-07-13 00:47 UTC (History)
2 users (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 prism 2005-11-09 07:49:24 UTC
I can't use net-setup to config my network adapters using the Gentoo 2005.1 
minimal live cd. I use static IP addresses, and while the boot process says 
"found eth0 eth1 requesting dhcp" net-setup fails to work on either adapter. It 
starts up, but as soon as I select either Wired or Wireless in the first dialog, 
the program simply exits to the command line. I tried typing alt-o instead of 
pressing enter on the OK box, but the result is the same.

The machine in question is a Compaq Deskpro EN SFF Pentium 2/350. Intel BX440 
chipset, Ati Rage Pro AGP video. The network adapters are an Intel Pro100 
(integrated) and a Realtek 8139C (PCI).

Both network adapters are listed in lspci's output. They work when configured in 
/etc/conf.d/net and a /etc/init.d/net.eth0(1) restart. The live cd kernel 
messages complained about a BIOS disabled APIC -- I tried to boot with "gentoo 
lapic" but net-setup still didn't work.

Reproducible: Always
Steps to Reproduce:
1.Use a Compaq Deskpro EN SFF with Intel BX440i chipset and Intel e100pro 
network card
2.Boot live cd 2005.1
3.run net-setup

Actual Results:  
net-setup exits to command line with no messages after the first dialog

Expected Results:  
net-setup should have gone on to ask if i use dhcp or not

The machine in question is a Compaq Deskpro EN SFF Pentium 2/350. Intel BX440 
chipset, Ati Rage Pro AGP video. The network adapters are an Intel Pro100 
(integrated) and a Realtek 8139C (PCI).
Comment 1 Chris Gianelloni (RETIRED) gentoo-dev 2005-11-09 08:03:18 UTC
What is the *exact* net-setup command you are using?

I just tested it here and it works perfectly.  As for the local APIC, you don't
have one.
Comment 2 prism 2005-11-09 09:05:28 UTC
(In reply to comment #1)
> What is the *exact* net-setup command you are using?
> 
> I just tested it here and it works perfectly.  As for the local APIC, you 
don't
> have one.

I tried both "net-setup eth0" and "net-setup eth1". Same thing both times.

I've got two other machines running Gentoo, a P200MMX with Intel Triton chipset 
and an integrated Intel e100pro and a PCI Realtek 8139c (ie. same network chips 
as the problem machine) and an Athlon XP w/ Nforce2 networking -- on both net-
setup works perfectly.
Comment 3 prism 2005-11-09 09:13:37 UTC
(In reply to comment #2)
> I've got two other machines running Gentoo, a P200MMX with Intel Triton 
chipset 
> and an integrated Intel e100pro and a PCI Realtek 8139c (ie. same network 
chips 
> as the problem machine) and an Athlon XP w/ Nforce2 networking -- on both net-
> setup works perfectly.

Correction: I believe I used 2005.0 on the P200MMX, not 2005.1. 

Comment 4 Chris Gianelloni (RETIRED) gentoo-dev 2006-03-15 07:00:46 UTC
This is very strange.  I've been playing with this quite a bit and simply cannot reproduce it.  Can you try a 2006.0 minimal CD on the machine and see if the problem has resolved itself?  I've made a few changes here and there to livecd-tools, so it is possible it has been resolved.  Since I cannot verify the problem, I cannot verify that it is fixed, either.
Comment 5 Chris Gianelloni (RETIRED) gentoo-dev 2006-07-19 05:49:25 UTC
This needs more testing by the user since I cannot reproduce it.  Because of this, I'm marking this as WORKSFORME.  Feel free to REOPEN it if you have the time to test it.
Comment 6 Heiko Baums 2007-09-06 20:52:25 UTC
Unfortunately I can't reopen this bug.

I'm having the same problem with the Gentoo 2007.0 Minimal CD / Install CD for x86 on a Fujitsu Siemens Notebook Amilo A7620 with a VIA Rhine II NIC.

ifconfig shows the NIC correctly as eth0 and if I start `net-setup eth0` then it shows the NIC also correctly on the details page but stops after choosing "wired network". If I start `net-setup` without a parameter then it shows also this card as eth0 but if I select this card then it shows on the details page as device only ***** instead of eth0.

But I found a workaround for this problem:

cp /etc/conf.d/net.example /etc/conf.d/net
nano /etc/conf.d/net (edit it to your needs)
/etc/init.d/net.eth0 restart

Then it works and ifconfig shows this NIC with its IP address and rp-pppoe can connect to the internet.
Comment 7 Chris Gianelloni (RETIRED) gentoo-dev 2007-09-07 20:32:37 UTC
OK.  I'm guessing that your system isn't grabbing an address, then?  Have you tried just giving an /etc/init.d/net.eth0 restart?  If you're just doing DHCP, you have no need to use net-setup itself.
Comment 8 Heiko Baums 2007-09-08 00:02:36 UTC
No, I haven't tried just running /etc/init.d/net.eth0 restart. I'm also not using DHCP because it's just a standalone Notebook of a friend of mine which is connected directly to a DSL modem. I've just commented out the lines "modules=( "ifconfig" )" and "config_eth0=( "192.168.0.2/24" )" in /etc/conf.d/net and changed the local IP address a bit. That's all I need.

Usually this is done by net-setup but after the question if the network is wired or wireless it just stops.

On my PC which is also a standalone PC which is connected directly to a DSL modem and also doesn't use DHCP it continues with the question if the IP address should be received by DHCP or entered manually.
Comment 9 Johnny 2007-10-12 19:46:06 UTC
Confirming this bug.
I just downloaded the minimum cd install-x86-minimal-2007.0-r1.iso burned a cd and booted into it on an old dell 500MHz pentium III with 386 M ram.
As others have reported: did net-setup and it shows the network card OK, in this case an an Intel Ethernet Pro 100, driver e100, bus type pci.
Agree Yes to this screen goes to next screen and when I choose choice 2 "My network is wired" and the cursor is flashing under the < OK > choice, hit enter and you are immediately returned to the command line livecd root #. Reproducible over and over.

I'm on a network where I can't use DHCP, i.e., I must specify the IP.

I've done several successful installs before on other boxes using this exact facility with no problem, but those have been from the other larger cd not the minimal.

I'm now up and running on this box by using nano to edit /etc/init.d/net and /etc/resolv.conf
but the bug reamins. I may try to get to the same place with the fuill cd if time permits and report back.

If you need me to do some kind of debugging of this just let me know.
Comment 10 Chris Gianelloni (RETIRED) gentoo-dev 2007-10-13 16:59:08 UTC
Thanks for the information.  I'll be sure to specifically test this on the new CD.  Can you give the file listing of /tmp/setup.opts ?  Also, the contents of *.WIRED_WIRELESS in that directory.
Comment 11 drew 2007-10-15 17:51:01 UTC
(In reply to comment #10)
> Thanks for the information.  I'll be sure to specifically test this on the new
> CD.  Can you give the file listing of /tmp/setup.opts ?  Also, the contents of
> *.WIRED_WIRELESS in that directory.

eth0.WIRED_WIRELESS
*** err [lib/liblow.c(329)]:
/dev/gpmctl: No such file or directory
2

thanks for any help!!
Comment 12 Chris Gianelloni (RETIRED) gentoo-dev 2007-10-15 21:50:45 UTC
That definitely helps.  What if you boot with "nogpm" as an option?  Does it still fail?
Comment 13 Andrew Gaffney (RETIRED) gentoo-dev 2007-10-15 21:56:18 UTC
The dialog/gpm thing is a problem we've struggled with for the dialog installer for a while. I'm not sure we ever found a good solution. However, we can work around this problem with something like the following:

-WIRED_WIRELESS=$(cat ${iface}.WIRED_WIRELESS)
+WIRED_WIRELESS=$(tail -n 1 ${iface}.WIRED_WIRELESS)
Comment 14 drew 2007-10-16 17:13:25 UTC
(In reply to comment #13)
> The dialog/gpm thing is a problem we've struggled with for the dialog installer
> for a while. I'm not sure we ever found a good solution. However, we can work
> around this problem with something like the following:
> -WIRED_WIRELESS=$(cat ${iface}.WIRED_WIRELESS)
> +WIRED_WIRELESS=$(tail -n 1 ${iface}.WIRED_WIRELESS)

Ok and where do we put that, on our USB key so that it works? :D
Comment 15 drew 2007-10-16 17:34:41 UTC
(In reply to comment #14)
> (In reply to comment #13)
> > The dialog/gpm thing is a problem we've struggled with for the dialog installer
> > for a while. I'm not sure we ever found a good solution. However, we can work
> > around this problem with something like the following:
> > -WIRED_WIRELESS=$(cat ${iface}.WIRED_WIRELESS)
> > +WIRED_WIRELESS=$(tail -n 1 ${iface}.WIRED_WIRELESS)
> Ok and where do we put that, on our USB key so that it works? :D

Sorry, nevermind I should have said how do we modify /usr/sbin/net-setup in the image.squashfs file so that it will work?

I've tried modifying the file after mounting it on loop but it tells me its write protected. any thoughts?

-Drew
Comment 16 Andrew Gaffney (RETIRED) gentoo-dev 2007-10-16 18:17:36 UTC
1) Mount the squashfs, copy the files, modify them, and create a new squashfs
2) You wait for us to release a new livecd-tools and then you
  a) build your own image with the new livecd-tools
  b) wait for the 2007.1 release
Comment 17 Chris Gianelloni (RETIRED) gentoo-dev 2007-10-30 21:01:53 UTC
OK.  I think I have this fixed in SVN.  I'll be sure once I get a CD built with it to test.
Comment 18 drew 2007-10-31 01:17:17 UTC
(In reply to comment #17)
> OK.  I think I have this fixed in SVN.  I'll be sure once I get a CD built with
> it to test.


Hi, thats good news. if you provide me with a link to download the ISO i'd be happy to test it as well!

thanks,
-Drew

Comment 19 Andrew Gaffney (RETIRED) gentoo-dev 2008-07-13 00:47:13 UTC
This was fixed in 2008.0