Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 168899 - net.br0 does not start on boot
Summary: net.br0 does not start on boot
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] baselayout (show other bugs)
Hardware: All Linux
: High major
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-03-01 16:16 UTC by Matthew Schultz
Modified: 2007-03-01 20:15 UTC (History)
0 users

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 Matthew Schultz 2007-03-01 16:16:40 UTC
I set up an ethernet bridge and I can get the bridge to start and stop properly but it will not start when booting even though I have it set in the default runlevel.

brctl_br0=( "setfd 0" "sethello 0" "stp off" )
bridge_br0="eth0"
config_eth0=( "null" )
bridge_add_eth0="br0"
config_br0=( "dhcp" )
dhcpcd_br0="-t 10"
depend_br0() {
        need net.eth0
}

rc-update show | grep net:

               local | battery      default nonetwork
             net.br0 | battery      default
            net.eth0 | battery      default
              net.lo |         boot
            netmount | battery      default

I have also tried removing net.eth0 from the default runlevel and that works better in linux since it won't leave the eth0 interface up when I stop the bridge but even that doesn't work because the bridge still does not start when booting.

Reproducible: Always

Steps to Reproduce:

Actual Results:  
net.br0 does not start on boot

Expected Results:  
net.br0 should start on boot

/var/log/messages:

Mar  1 10:05:17 d820 ADDRCONF(NETDEV_UP): eth0: link is not ready
Mar  1 10:05:17 d820 device eth0 entered promiscuous mode
Mar  1 10:05:18 d820 device eth0 left promiscuous mode
Mar  1 10:05:18 d820 br0: port 1(eth0) entering disabled state
Mar  1 10:05:18 d820 device eth0 entered promiscuous mode
Mar  1 10:05:18 d820 dhcpcd[5980]: MAC address = 00:15:c5:07:fb:dd
Mar  1 10:05:19 d820 tg3: eth0: Link is up at 100 Mbps, full duplex.
Mar  1 10:05:19 d820 tg3: eth0: Flow control is on for TX and on for RX.
Mar  1 10:05:19 d820 ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
Mar  1 10:05:19 d820 br0: port 1(eth0) entering learning state
Mar  1 10:05:19 d820 br0: topology change detected, propagating
Mar  1 10:05:19 d820 br0: port 1(eth0) entering forwarding state
Mar  1 10:05:23 d820 dhcpcd[5980]: verified 10.0.1.22 address is not in use
Mar  1 10:05:23 d820 dhcpcd[5980]: your IP address = 10.0.1.22
Mar  1 10:05:26 d820 dhcpcd[6123]: terminating on signal 15
Mar  1 10:05:26 d820 sshd[6580]: Server listening on :: port 22.
Mar  1 10:05:26 d820 sshd[6580]: error: Bind to port 22 on 0.0.0.0 failed: Address already in use.
Mar  1 10:05:26 d820 br0: port 1(eth0) entering disabled state
Mar  1 10:05:26 d820 device eth0 left promiscuous mode
Mar  1 10:05:26 d820 br0: port 1(eth0) entering disabled state
Mar  1 10:05:26 d820 rc-scripts: We only hotplug for ethernet interfaces
Mar  1 10:05:30 d820 eth0: no IPv6 routers present
Comment 1 Matthew Schultz 2007-03-01 16:18:01 UTC
emerge --info
Portage 2.1.2-r9 (default-linux/x86/2006.1, gcc-4.1.1, glibc-2.5-r0, 2.6.20-gentoo i686)
=================================================================
System uname: 2.6.20-gentoo i686 Genuine Intel(R) CPU           T2400  @ 1.83GHz
Gentoo Base System release 1.12.9
Timestamp of tree: Wed, 28 Feb 2007 09:00:09 +0000
dev-java/java-config: 1.3.7, 2.0.31
dev-lang/python:     2.4.3-r4
dev-python/pycrypto: 2.0.1-r5
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.61
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.16.1-r3
sys-devel/gcc-config: 1.3.14
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.17-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=nocona -O2 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-march=nocona -O2 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks metadata-transfer parallel-fetch sandbox sfperms strict"
GENTOO_MIRRORS="http://gentoo.mirrors.easynews.com/linux/gentoo/ http://mirror.phy.olemiss.edu/mirror/gentoo http://mirror.espri.arizona.edu/gentoo/"
MAKEOPTS="-j4"
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"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 aac acpi alsa apache2 audiofile avi bcmath berkdb bitmap-fonts bzip2 calendar cjk clamav cli cracklib crypt ctype cups curl curlwrappers dio dri dts dvb dvd dvdread encode exif fbcon ffmpeg flac fortran ftp gd gdbm gif gmp gpm gtk gtk2 hardenedphp hash iconv id3 ieee1394 imagemagick imlib innodb ipv6 isdnlog ithreads java javascript jpeg jpeg2k kde lcms libg++ logrotate lzo mad matroska mcal mhash midi mime mjpeg mmx mng mp3 mp4 mpeg mplayer msession mysql mysqli ncurses network nls nptl nptlonly nsplugin nvidia ogg openal opengl osc oss pam pcntl pcre pdf pdo pear perl png posix ppds pppd python qt qt3 qt4 quicktime readline reflection samba sasl sdl seamonkey session simplexml snmp soap sockets spl sqlite sse sse2 ssl svg sysfs tcpd theora threads tidy tiff tokenizer transcode truetype truetype-fonts type1-fonts unicode urandom usb v4l v4l2 vcd vhosts vorbis wddx win32codecs wxwindows x86 xforms xine xml xml2 xorg xpm xv xvid zlib" ALSA_CARDS="hda-intel" 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="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="nv nvidia vesa fbdev v4l"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 2 Matthew Schultz 2007-03-01 20:15:35 UTC
After reading the net.example I saw that dhcp has some problem with dynamically adding the interface.  I tried it without that and it looks like it works now finally.  I hope this config is correct:

bridge_br0="eth0"
config_eth0=( "null" )
config_br0=( "dhcp" )
dhcpcd_br0="-t 10"
RC_NEED_br0="net.eth0"
brctl_br0=( "setfd 0" "sethello 0" "stp off" )