Michael Sullivan wrote:

On Wed, 2006-04-19 at 22:50 +0200, Maxime Robert-Schreyers wrote:
Michael Sullivan wrote:

The guy I'm helping to install Gentoo says that he can get to his Linux
installation and log in, but that he has no network unless he boots with
the LiveCD.  I've tried every trick I know.  At this point he's booted
with the LiveCD and entered his chroot install environment.  Out of
desperation for some way to find what the problem is, I asked him to
take a look at ifconfig.  According to what he told me, eth1 has an IP
address, but there's no mention of eth0.  In the past he's told me that
the PC he's installing Gentoo on has a wired NIC and a wireless NIC.  I
assume this is why his network card is assigned eth1, and that the
wireless card is eth0 and the LiveCD doesn't support it. The handbook
says that if multiple network interfaces exist, one can create symlinks
to /etc/init.d/net.eth0 for each successive network interface.  My
question is if I tell him to rc-update add net.eth1 default and then to
symlink /etc/init.d/net.eth1 to /etc/init.d/net.eth0, when he reboots,
won't Gentoo just try to start /etc/init.d/net.eth0, which won't work at
this point?  What should I do?  I've told him what the handbook says,
but I'm not sure that it will work.


Hi mike,

It should be the other way around: first the symlink, then rc-update
otherwise rc-update won't find the /etc/init.d/net.eth1script when it will
attempt to add it to the default runlevel.

Also, is the IP asignment properly set up ? (DHCP, static IP ?)

Good luck,
Maxime


We did it in the correct order.  He's rebooted into Linux (sans LiveCD)
and says he has network.  I'd still like to know how
if /etc/init.d/net.eth1 is pointing to /etc/init.d/net.eth0, how does
Linux know to start eth1 instead of eth0?

That's what rc-update does. It tells wich of the /etc/init.d/* to start and when (during boot or when reaching a certain runlevel).

e.g.: rc-update add net.eth1 default adds the net.eth1 script from /etc/init.d/ to the default runlevel, so the system will run that script when reaching that runlevel.

Could you give us more information ?
Outputs of lsmod and ifconfig both from the liveCD and 'sans' would be a good start.

How did you configure the network ? (I mean for the installation, not the live CD's wich are two different phases ;-) )
Also, the relevant parts from /etc/conf.d/net could help us help you :-)

Maxime

--
[email protected] mailing list

Reply via email to