Gentoo Archives: gentoo-user

From: Andrew Frink <andrew.frink@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] OT - Question about net.eth0 and the handbook [partially solved]
Date: Wed, 19 Apr 2006 21:26:07
Message-Id: 8146fc8a0604191415r1bde8945u9f7e3a940eb8a27c@mail.gmail.com
In Reply to: Re: [gentoo-user] OT - Question about net.eth0 and the handbook [partially solved] by Michael Sullivan
1 On 4/19/06, Michael Sullivan <michael@××××××××××××.com> wrote:
2 >
3 > On Wed, 2006-04-19 at 22:50 +0200, Maxime Robert-Schreyers wrote:
4 > > Michael Sullivan wrote:
5 > >
6 > > >The guy I'm helping to install Gentoo says that he can get to his Linux
7 > > >installation and log in, but that he has no network unless he boots
8 > with
9 > > >the LiveCD. I've tried every trick I know. At this point he's booted
10 > > >with the LiveCD and entered his chroot install environment. Out of
11 > > >desperation for some way to find what the problem is, I asked him to
12 > > >take a look at ifconfig. According to what he told me, eth1 has an IP
13 > > >address, but there's no mention of eth0. In the past he's told me that
14 > > >the PC he's installing Gentoo on has a wired NIC and a wireless NIC. I
15 > > >assume this is why his network card is assigned eth1, and that the
16 > > >wireless card is eth0 and the LiveCD doesn't support it. The handbook
17 > > >says that if multiple network interfaces exist, one can create symlinks
18 > > >to /etc/init.d/net.eth0 for each successive network interface. My
19 > > >question is if I tell him to rc-update add net.eth1 default and then to
20 > > >symlink /etc/init.d/net.eth1 to /etc/init.d/net.eth0, when he reboots,
21 > > >won't Gentoo just try to start /etc/init.d/net.eth0, which won't work
22 > at
23 > > >this point? What should I do? I've told him what the handbook says,
24 > > >but I'm not sure that it will work.
25 > > >
26 > > >
27 > > >
28 > > Hi mike,
29 > >
30 > > It should be the other way around: first the symlink, then rc-update
31 > > otherwise rc-update won't find the /etc/init.d/net.eth1script when it
32 > will
33 > > attempt to add it to the default runlevel.
34 > >
35 > > Also, is the IP asignment properly set up ? (DHCP, static IP ?)
36 > >
37 > > Good luck,
38 > > Maxime
39 > >
40 >
41 > We did it in the correct order. He's rebooted into Linux (sans LiveCD)
42 > and says he has network. I'd still like to know how
43 > if /etc/init.d/net.eth1 is pointing to /etc/init.d/net.eth0, how does
44 > Linux know to start eth1 instead of eth0?
45
46 As far as linux is concered there is a file called /etc/init.d/net.eth1 it
47 just seems to have the exact same contents/permissions/etc as
48 /etc/init.d/net.eth0
49
50
51
52 --
53 > gentoo-user@g.o mailing list
54 >
55 >