Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 78092 - net.eth0 does not configure alias if dhcp fails
Summary: net.eth0 does not configure alias if dhcp fails
Status: RESOLVED FIXED
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:
Depends on:
Blocks: 66472
  Show dependency tree
 
Reported: 2005-01-15 07:17 UTC by Toralf Förster
Modified: 2005-01-31 00:03 UTC (History)
0 users

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


Attachments
if any config param works interface works (net.lo.config.error.patch,2.52 KB, patch)
2005-01-17 02:04 UTC, Roy Marples (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2005-01-15 07:17:30 UTC
from my 7etc/conf.d/net:
nhh221 /etc/init.d # grep -v -e "^#" -e "^$" /etc/conf.d/net
iface_eth0="dhcp"
dhcpcd_eth0="-D -N -d -t 6 -h ${HOSTNAME}"
alias_eth0="192.168.0.253"
gateway="eth0:1/192.168.0.254"

If dhcpcd failes the alias eth0:1 is not defined. The alias should be defined regardless of the failure of dhcp, isn't it?


Reproducible: Always
Steps to Reproduce:
1.
2.
3.




Portage 2.0.51-r3 (default-linux/x86/2004.3, gcc-3.3.5, glibc-2.3.4.20040808-r1,
2.6.10-hardened-r1 i686)
=================================================================
System uname: 2.6.10-hardened-r1 i686 Intel(R) Pentium(R) M processor 1.70GHz
Gentoo Base System version 1.4.16
Autoconf: sys-devel/autoconf-2.59-r5
Automake: sys-devel/automake-1.8.5-r1
Binutils: sys-devel/binutils-2.15.92.0.2-r1
Headers:  sys-kernel/linux-headers-2.4.21-r1
Libtools: sys-devel/libtool-1.5.2-r7
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-O2 -march=pentium3 -pipe"
CHOST="i686-pc-linux-gnu"
COMPILER=""
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config
/usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown
/usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/config
/usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/
/usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/
/usr/share/texmf/xdvi/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -march=pentium3 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms"
GENTOO_MIRRORS="ftp://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/
ftp://ftp.gentoo.mesh-solutions.com/gentoo/
ftp://ftp.snt.utwente.nl/pub/os/linux/gentoo
http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="X acpi alsa apm arts avi berkdb bitmap-fonts cddb cdparanoia cdr crypt cups
dvd dvdr dvdread encode esd ethereal f77 fam flac font-server foomaticdb fortran
gdbm gif gnome gpm gstreamer gtk gtk2 imagemagick imlib innodb ipv6 java
joystick jpeg junit kde libg++ libwww live mad mbox mikmod mmx mmx2 motif
mozilla mpeg mysql nagios-dns nagios-ntp nagios-ping nagios-s ncurses network
nls oggvorbis opengl oss pam pcmcia pdflib perl png python qt quicktimereadline
rtc samba scanner sdl slang snmp spell sse sse2 ssl svga tcltk tcpd tetex tiff
truetype truetype-fonts type1-fonts usb x86 xfs xml2 xmms xv zlib linguas_de"
Comment 1 SpanKY gentoo-dev 2005-01-15 13:06:24 UTC
you're using baselayout-1.9.x ... uberlord, does this work with 1.11.x ?
Comment 2 Roy Marples (RETIRED) gentoo-dev 2005-01-17 02:03:13 UTC
No, currently we replicate 1.9.x logic which is if the first configuration parameter fails we mark the interface down and abort.

However, I don't see any problem changing this to read if no configuration parameter works then we mark the interface down and abort.

Here's a patch which I've comitted to CVS

Will be in baselayout-1.11.9
Comment 3 Roy Marples (RETIRED) gentoo-dev 2005-01-17 02:04:05 UTC
Created attachment 48737 [details, diff]
if any config param works interface works
Comment 4 Roy Marples (RETIRED) gentoo-dev 2005-01-31 00:03:20 UTC
Fixed by baselayout-1.11.9