Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 34358 - Initscripts for multiple network interfaces cannot be symlinked
Summary: Initscripts for multiple network interfaces cannot be symlinked
Status: RESOLVED INVALID
Alias: None
Product: [OLD] Docs-user
Classification: Unclassified
Component: Handbook (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Martin Schlemmer (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-11-25 13:38 UTC by Rabbe Fogelholm
Modified: 2003-11-26 12:46 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 Rabbe Fogelholm 2003-11-25 13:38:22 UTC
In Section 8.c, "Networking Information", there is a description of how to
configure for multiple NICs (Code listing 16: Creating extra initscripts). It is
my experience that a symlink named net.eth1 does not work.


Reproducible: Always
Steps to Reproduce:
1. Set up a machine with multiple NICs (2 of them, say: eth0 and eth1)
2. `./net.eth0 start' to start eth0
3. `ln -s net.eth0 net.eth1' as the Handbook suggests
4. `./net.eth1 start' to try and start eth1 too

Actual Results:  
WARNING: "net.eth0" has already been started
a check with `ifconfig' reveals that eth1 was not started

Expected Results:  
eth1 started

My workaround is to make a copy instead of a symlink. That is,
`cp -p net.eth0 net.eth1'. The `./net.eth1 start' command will now work.

The net.eth1 documentation issue is also present in
<http://www.gentoo.org/doc/en/gentoo-x86-install.xml>.

-----------

Portage 2.0.49-r15 (default-x86-1.4, gcc-3.2.3, glibc-2.3.2-r1,
2.4.20-gentoo-r8-viveka-011)
=================================================================
System uname: 2.4.20-gentoo-r8-viveka-011 i586 Pentium 75 - 200
Gentoo Base System version 1.4.3.8p1
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-O3 -march=i586 -funroll-loops -pipe"
CHOST="i586-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /var/qmail/control /usr/share/config
/usr/kde/2/share/config /usr/kde/3/share/config"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
CXXFLAGS="-O3 -march=i586 -funroll-loops -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="sandbox ccache autoaddcvs"
GENTOO_MIRRORS="ftp://mirror.pudas.net/gentoo http://gentoo.linux.no/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 oss apm arts avi crypt cups encode foomaticdb gif gpm gtk imlib jpeg
kde gnome libg++ libwww mad mikmod motif mpeg ncurses nls oggvorbis opengl
pdflib png qt quicktime sdl slang spell svga truetype X xml2 xmms xv zlib gdbm
berkdb readline java tcpd pam ssl perl python"
Comment 1 SpanKY gentoo-dev 2003-11-25 14:34:30 UTC
rather than doing a softlink why not do a hardlink ?  does that work correctly ?
Comment 2 Sven Vermeulen (RETIRED) gentoo-dev 2003-11-25 21:35:34 UTC
As discussed in #29512, this works for me and others. However, apparently it is a random issue: for some it works, for others it doesn't.

I'm handing this over to azarah, perhaps he can find out why it works on some systems and not on others?
Comment 3 Martin Schlemmer (RETIRED) gentoo-dev 2003-11-26 11:53:57 UTC
Because he is using a really old baselayout without support.
Comment 4 Sven Vermeulen (RETIRED) gentoo-dev 2003-11-26 12:46:30 UTC
Okay, that's settled :)

Rabe, please update your baselayout to the latest available one :)