Recently I updated baselayout to version 1.12.0_pre12 (in a few previous version, the bug was present too). Now net.wlan0 script add wrong route. It adds 192.168.1.0 instead of 192.168.1.1. My config file hasn`t changed. It is as follows: modules=("iwconfig") essid_wlan0="kunow" iwpriv_wlan0="SetSPreamble 0" iwconfig_wlan0="retry 50 sens 190" mode_wlan0="managed" key_kunow="s:qwertyuiop123 open" rate_wlan0="auto" channel_wlan0="2" config_kunow="192.168.1.16" netmask_kunow="255.255.255.0" gateway_kunow="192.168.1.1" **** So as you can see, in the end there is gateway: 192.168.1.1, and after running script, the route command backs: Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 192.168.1.0 * 255.255.255.0 U 0 0 0 wlan0 loopback * 255.0.0.0 U 0 0 0 lo ***** Than I must do: route add default gw 192.168.1.1, than Internet works.
Portage 2.0.53 (default-linux/x86/2005.1, gcc-3.3.5-20050130, glibc-2.3.5-r1, 2.6.14-ck3-maxer i686) ================================================================= System uname: 2.6.14-ck3-maxer i686 AMD Duron(tm) Gentoo Base System version 1.6.13 dev-lang/python: 2.3.5, 2.4.2 sys-apps/sandbox: 1.2.12 sys-devel/autoconf: 2.13, 2.59-r6 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.5 sys-devel/binutils: 2.15.92.0.2-r10 sys-devel/libtool: 1.5.18-r1 virtual/os-headers: 2.6.11-r2 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-O2 -march=i686 -pipe -fomit-frame-pointer" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-march=i686 -O2 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig distlocks sandbox sfperms strict" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo" LANG="pl_PL" LC_ALL="pl_PL" LINGUAS="pl" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="x86 X alsa apm arts audiofile avi berkdb bitmap-fonts bzip2 cdr crypt cups curl eds emboss encode esd exif expat fam ffmpeg flac foomaticdb fortran gdbm gif glut gmp gnome gphoto2 gpm gstreamer gtk gtk2 hal idn imagemagick imlib ipv6 ithreads jack java jpeg junit kde lcms libg++ libwww lua mad mikmod ming mng motif mozilla mp3 mpeg ncurses nls nptl nptlonly ogg oggvorbis opengl oss pam pcre pdflib perl png python qt quicktime readline samba sdl spell ssl tcltk tcpd threads tiff truetype truetype-fonts type1-fonts udev usb vorbis wmf xine xml2 xmms xv xvid zlib linguas_pl userland_GNU kernel_linux elibc_glibc" Unset: ASFLAGS, CTARGET, LDFLAGS, MAKEOPTS, PORTDIR_OVERLAY
In my case it is not only the wrong route it is also the wrong device. Even worse eth0 is up, instead of ath0. I don't have /etc/init.d/net.eth0 in any runlevel.
Your config is invalid. Here's a correct one which works from baselayout-1.11 upwards. config_kunow=( "192.168.1.16 netmask 255.255.255.0" ) routes_kunow=( "default via 192.168.1.1" ) You could use this config instead, as it's a bit shorter. Does exactly the same thing. config_kunow=( "192.168.1.16/24" ) routes_kunow=( "default via 192.168.1.1" ) BTW, the 192.168.1.0 route is correct as that's your subnet route.
Created attachment 75744 [details, diff] Patch gateway var The old gateway var wasn't mapped correctly. While the above comment is still true, attached is a patch which should fix old style configs.