Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 148849 - routes not set for wireless interface with baselayout-1.12.5
Summary: routes not set for wireless interface with baselayout-1.12.5
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] baselayout (show other bugs)
Hardware: x86 Linux
: High major (vote)
Assignee: Roy Marples (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-09-23 14:33 UTC by Benjamin Budai
Modified: 2006-09-26 09:06 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 Benjamin Budai 2006-09-23 14:33:29 UTC
User-Agent:       Mozilla/5.0 (X11; U; Linux i686; hu; rv:1.8.0.7) Gecko/20060921 Firefox/1.5.0.7
Build Identifier: 

After upgrading to baselayout-1.12.5 the startup service /etc/init.d/net.wlan0
fails to set the default route. Here is my /etc/conf.d/net

config_wlan0=( "192.168.0.200/24" )
routes_wlan0=( "default via 192.168.0.1" )
config_BBLAN=( "192.168.0.200/24" )
dns_servers_BBLAN=( "192.168.0.1" )

The intarface is brought up, but the default route is not set. ifconfig says:

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:14 errors:0 dropped:0 overruns:0 frame:0
          TX packets:14 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:928 (928.0 b)  TX bytes:928 (928.0 b)

wlan0     Link encap:Ethernet  HWaddr 00:11:95:6E:6D:43
          inet addr:192.168.0.200  Bcast:192.168.0.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:1270 errors:0 dropped:0 overruns:0 frame:0
          TX packets:254 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:629902 (615.1 Kb)  TX bytes:40751 (39.7 Kb)
          Memory:ee020000-ee021fff


The output of route -n:

Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
192.168.0.1     0.0.0.0         255.255.255.255 UH    2000   0        0 wlan0
192.168.0.0     0.0.0.0         255.255.255.0   U     0      0        0 wlan0
127.0.0.0       0.0.0.0         255.0.0.0       U     0      0        0 lo

Same results with routes_wlan0 line removed or other entries added to the list.
That line seems to have no effect at all.

BUT... I have an eth0 as well which I don't use. I changed my config to use eth0
instead of wlan0:

config_eth0=( "172.10.1.100/24" )
routes_eth0=( "default via 172.10.1.1" )

This works just fine: eth0 is brought up and the default route is set correctly.
/etc/init.d/net.eth0 and /etc/init.d/net.wlan0 are symlinks to /etc/init.d/net.lo:

lrwxrwxrwx 1 root root     6 2006-09-20 11:28 /etc/init.d/net.eth0 -> net.lo
-rwxr-xr-x 1 root root 30341 2006-09-20 11:28 /etc/init.d/net.lo
lrwxrwxrwx 1 root root     6 2006-08-24 21:48 /etc/init.d/net.wlan0 -> net.lo

As a dirty workaround I set the default route from /etc/conf.d/local.start...

Reproducible: Always

Steps to Reproduce:
1.make sure you have the /etc/conf.d/net script provided in the problem
description and /etc/init.d/net.wlan symlink pointing to /etc/init.d/net.lo
2./etc/init.d/net.wlan0 start
3.route -n

Actual Results:  
Route is not set from the network config script. route -n says:

Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
192.168.0.1     0.0.0.0         255.255.255.255 UH    2000   0        0 wlan0
192.168.0.0     0.0.0.0         255.255.255.0   U     0      0        0 wlan0
127.0.0.0       0.0.0.0         255.0.0.0       U     0      0        0 lo

Expected Results:  
Routing table should be built according to the config script. In particular
route -n should display this line too:

0.0.0.0         192.168.0.1     0.0.0.0         UG    0      0        0 wlan0



Portage 2.1.1 (default-linux/x86/2006.0, gcc-4.1.1, glibc-2.4-r3,
2.6.17-gentoo-r8 i686)
=================================================================
System uname: 2.6.17-gentoo-r8 i686 AMD Athlon(tm)
Gentoo Base System version 1.12.5
Last Sync: Sat, 23 Sep 2006 18:20:01 +0000
ccache version 2.3 [enabled]
app-admin/eselect-compiler: [Not Present]
dev-java/java-config: 1.3.6-r1, 2.0.28-r1
dev-lang/python:     2.3.5-r2, 2.4.3-r1
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.3
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.16.1-r2, 2.16.1-r3
sys-devel/gcc-config: 1.3.13-r3
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.17-r1
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=athlon-xp -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.2/share/config /usr/kde/3.3/env
/usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3.4/env
/usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3.5/env
/usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb
/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/"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf
/etc/java-config/vms/ /etc/revdep-rebuild /etc/splash /etc/terminfo"
CXXFLAGS="-O2 -march=athlon-xp -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache confcache distlocks fixpackages metadata-transfer
parallel-fetch sandbox sfperms strict"
GENTOO_MIRRORS="http://gd.tuwien.ac.at/opsys/linux/gentoo/
http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/
http://mirror.switch.ch/mirror/gentoo/ http://mirror.gentoo.gr.jp
ftp://mirrors.sec.informatik.tu-darmstadt.de/gentoo/
http://ftp.snt.utwente.nl/pub/os/linux/gentoo
ftp://ftp.tu-clausthal.de/pub/linux/gentoo/"
LANG="hu_HU.iso8859-2"
LINGUAS="hu en"
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'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.de.gentoo.org/gentoo-portage"
USE="x86 3dnow 3dnowext X a52 aac alsa apache2 apm berkdb bitmap-fonts cddb cli
crypt cups dlloader dri dvd dvdr dvdread eds elibc_glibc emboss encode esd
firefox flac foomaticdb fortran fuse gdbm gif gnome gpm gstreamer gtk gtk+ gtk2
hal imlib input_devices_evdev input_devices_keyboard input_devices_mouse
input_devices_wacom isdnlog jpeg kernel_linux libg++ libwww linguas_en
linguas_hu mad mikmod mmx motif mp3 mpeg multislot ncurses nls nptl nsplugin ogg
opengl oss pam pcre perl png ppds pppd python qt3 qt4 quicktime readline
reflection rtc sdl session spell spl sse ssl svg tcpd threads tiff truetype
truetype-fonts type1-fonts ucs2 udev unicode userland_GNU video_cards_fglrx
video_cards_radeon video_cards_vesa video_cards_vga vorbis wmf xml xmms xorg
xprint xv xvid zlib"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LDFLAGS,
PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 SpanKY gentoo-dev 2006-09-23 20:41:02 UTC
my guess is you need to set routes_BBLAN
Comment 2 Benjamin Budai 2006-09-24 01:52:37 UTC
(In reply to comment #1)
> my guess is you need to set routes_BBLAN
> 

Makes no difference. :(
BTW I use ifconfig , iwconfig and ndiswrappar with a gplus driver.
Comment 3 Roy Marples (RETIRED) gentoo-dev 2006-09-26 08:25:23 UTC
You're not using wpa_supplicant in your config, so you should see the interface being configured for routing. Please post that here.

Also, please attach (not post) your full unchanged conf.d/net
Comment 4 Benjamin Budai 2006-09-26 09:06:52 UTC
(In reply to comment #2)
> (In reply to comment #1)
> > my guess is you need to set routes_BBLAN
> > 
> 
> Makes no difference. :(

Geez! routes_BBLAN in /etc/conf.d/net got overidden with this messed up line from my /etc/conf.d/wireless:

routes_BBLAN=( "192.168.0.1" )

So it was my fault - sorry. Seems there are too many redundant config files to look over :)