Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 187526 - baselayout-2.0.0_rc1 breaks networking using multiple ip addresses.
Summary: baselayout-2.0.0_rc1 breaks networking using multiple ip addresses.
Status: RESOLVED FIXED
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: FreeBSD (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo/BSD Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-08-02 19:08 UTC by Dan Coats
Modified: 2007-08-06 10:07 UTC (History)
0 users

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


Attachments
ifconfig alias (ifconfig-alias.patch,408 bytes, patch)
2007-08-03 00:00 UTC, Roy Marples (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Dan Coats 2007-08-02 19:08:06 UTC
using baselayout-2.0.0_rc1 will not bind multiple ip addresses.
using the baselayout2 syntax described in /etc/conf.d/net.example
the other 2x versions have all worked previously.

Reproducible: Always

Steps to Reproduce:
1.emerge =sys-apps/baselayout-2.0.0_rc1
2. etc-update
3. /etc/init.d/net.xl0 restart

Actual Results:  
 * Bringing up interface xl0
 *   70.88.10.2 broadcast 70.88.10.7 netmask 255.255.255.248 ...                                                        [ ok ]
 *   70.88.10.5 broadcast 70.88.10.7 netmask 255.255.255.248 ...                                                        [ ok ]
 *   10.1.10.180 broadcast 10.1.10.255 netmask 255.255.255.0 ...                                                        [ ok ]
 *   Adding routes
 *     10.1.10.180 via 10.1.10.1 ...                                                                                    [ ok ]
 *     70.88.10.2 via 70.88.10.6 ...
route: writing to routing socket: Network is unreachable       
                                                       [ !! ]
 *     default via 70.88.10.6 ...
route: writing to routing socket: Network is unreachable                                                                [ !! ]

only binds the last ip in /etc/conf.d/net and cant assign the route.
reverting to [2.0.0_alpha4] works as expected.


Expected Results:  
 * Bringing down interface xl0
 *   Caching network module dependencies
 *   Removing addresses
 *     10.1.10.180                                                                                                      [ ok ]
 * Bringing up interface xl0
 *   70.88.10.2 broadcast 70.88.10.7 netmask 255.255.255.248 ...                                                        [ ok ]
 *   70.88.10.5 broadcast 70.88.10.7 netmask 255.255.255.248 ...                                                        [ ok ]
 *   10.1.10.180 broadcast 10.1.10.255 netmask 255.255.255.0 ...                                                        [ ok ]
 *   Adding routes
 *     10.1.10.180 via 10.1.10.1 ...                                                                                    [ ok ]
 *     70.88.10.2 via 70.88.10.6 ...                                                                                    [ ok ]
 *     default via 70.88.10.6 ...                                                                                       [ ok ]


/etc/conf.d/net
config_xl0="'70.88.10.2 broadcast 70.88.10.7 netmask 255.255.255.248' \
            '70.88.10.5 broadcast 70.88.10.7 netmask 255.255.255.248' \
            '10.1.10.180 broadcast 10.1.10.255 netmask 255.255.255.0'"
routes_xl0="'10.1.10.180 via 10.1.10.1' \
             'default via 70.88.10.6'"



Portage 2.1.3_rc9 (default-bsd/fbsd/6.2/x86, gcc-4.1.2, freebsd-lib-6.2-r1, 6.2-RELEASE i386)
=================================================================
System uname: 6.2-RELEASE i386 i386
Gentoo Base System release 2.0.0_alpha4
Timestamp of tree: Thu, 02 Aug 2007 16:30:01 +0000
ccache version 2.4 [enabled]
dev-java/java-config: 1.3.7, 2.0.33-r1
dev-lang/python:     2.4.4-r4
dev-python/pycrypto: 2.0.1-r6
dev-util/ccache:     2.4-r7
sys-devel/autoconf:  2.13, 2.61-r1
sys-devel/automake:  1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.17-r1
sys-devel/gcc-config: 1.3.16
sys-devel/libtool:   1.5.24
virtual/os-headers:  6.2-r1
ACCEPT_KEYWORDS="x86-fbsd ~x86-fbsd"
AUTOCLEAN="yes"
CBUILD="i686-gentoo-freebsd6.2"
CFLAGS="-O2 -mtune=i686 -pipe"
CHOST="i686-gentoo-freebsd6.2"
CONFIG_PROTECT="/etc /usr/share/X11/xkb /var/bind"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-O2 -mtune=i686 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache collision-protect distlocks metadata-transfer parallel-fetch sfperms strict unmerge-orphans"
GENTOO_MIRRORS="http://gentoo.mirrors.pair.com/ http://mirror.datapipe.net/gentoo http://open-systems.ufl.edu/mirrors/gentoo http://mirror.phy.olemiss.edu/mirror/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/portage/local"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 aac accessability acl adns apache2 bash-completion bcmath berkdb bidi bindinst browserplugin bzip2 cairo calendar cli cracklib crypt cups curlwrappers dbus dedicated dga dlloader dri dts emacs emacs-w3 erandom ethereal expat fastcgi font ftp gd gdbm geoip glitz glut gnusetup gnutls gtkhtml hal iconv imap immqt-bc inifile innodb java java5 javascript jp2 jpeg jpeg2k libcaca libclamv libg++ live lzo midi mime ming mmap motif mpi ncurses nls nsplugin nvidia oav objc oracle oscar oss pam pcre pdf perl php pic posix ppds python qt3support readline reflection samba session shared spl sqlite sse ssl symlink tcltktcpd tcpd test threads unicode urandom usb usepackagedmakefiles userlocales vcd vhosts x86-fbsd xcomposite xml xorg xpm xprint zeroconf zlib" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" ELIBC="FreeBSD" INPUT_DEVICES="keyboard mouse" KERNEL="FreeBSD" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="BSD" VIDEO_CARDS="nv nvidia vesa"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Dan Coats 2007-08-02 19:17:52 UTC
I have tested this on ~x86 and the problem does not exist there.
Comment 2 Roy Marples (RETIRED) gentoo-dev 2007-08-03 00:00:26 UTC
Created attachment 126765 [details, diff]
ifconfig alias

Broken by the OpenBSD patches - this should work on all BSDs according to the man pages.
Comment 3 Roy Marples (RETIRED) gentoo-dev 2007-08-06 10:07:11 UTC
This should be fixed in rc2