Networking Forums

Networking Forums > Computer Networking > Linux Networking > linux 2.6.15 breaks route to outside world?

Reply
Thread Tools Display Modes

linux 2.6.15 breaks route to outside world?

 
 
whatdoineed2do@yahoo.co.uk
Guest
Posts: n/a

 
      01-03-2006, 10:19 PM
hi

running fedora 2 with 2.6.13 on my machine which can communicate with
the outside world just fine.

however, i built the 2.6.15 and when the eth0 device is brought up i am
told:

RTNETLINK answers: No such device
RTNETLINK answers: Network is unreachable
RTNETLINK answers: Invalid argument
RTNETLINK answers: Invalid argument

and this results with routes to the outside world not being setup -- i
can still get to the machines on the local network (192.168.0.x).
rebooting back to 2.6.13 does not have show this issue and the routes
are correctly setup.

i tracked down the first error (No such device) to be generated from
the command

ip route replace 192.168.0.0/24 dev eth0

is there some additional config i need to do with the new kernel and
fc2? i have a fedora 4 machine with the 2.6.15 kernel and this works
fine.
thanks
-r

 
Reply With Quote
 
 
 
 
whatdoineed2do@yahoo.co.uk
Guest
Posts: n/a

 
      01-03-2006, 10:37 PM
sorry, forgot add this; below is the shell execution of /sbin/ifup
eth0
----------------------

[0] root@marty:[root]# sh -x /sbin/ifup eth0
+ . /etc/init.d/functions
++ TEXTDOMAIN=initscripts
++ umask 022
++ PATH=/sbin:/usr/sbin:/bin:/usr/bin:/usr/X11R6/bin
++ export PATH
++ '[' -z '' ']'
++ COLUMNS=80
++ '[' -z '' ']'
+++ /sbin/consoletype
++ CONSOLETYPE=pty
++ '[' -f /etc/sysconfig/i18n -a -z '' ']'
++ . /etc/sysconfig/i18n
+++ LANG=en_US.UTF-8
+++ SUPPORTED=en_GB.UTF-8:en_GB:en:en_US.UTF-8:en_US:en
+++ SYSFONT=latarcyrheb-sun16
++ '[' pty '!=' pty ']'
++ export LANG
++ '[' -z '' ']'
++ '[' -f /etc/sysconfig/init ']'
++ . /etc/sysconfig/init
+++ BOOTUP=color
+++ GRAPHICAL=yes
+++ RES_COL=60
+++ MOVE_TO_COL=echo -en \033[60G
+++ SETCOLOR_SUCCESS=echo -en \033[0;32m
+++ SETCOLOR_FAILURE=echo -en \033[0;31m
+++ SETCOLOR_WARNING=echo -en \033[0;33m
+++ SETCOLOR_NORMAL=echo -en \033[0;39m
+++ LOGLEVEL=3
+++ PROMPT=yes
++ '[' pty = serial ']'
++ '[' color '!=' verbose ']'
++ INITLOG_ARGS=-q
+ cd /etc/sysconfig/network-scripts
+ . network-functions
++ PATH=/sbin:/usr/sbin:/bin:/usr/bin:/usr/X11R6/bin
++ export PATH
+ '[' -f ../network ']'
+ . ../network
++ NETWORKING=yes
++ HOSTNAME=marty
++ GATEWAY=192.168.0.1
+ CONFIG=eth0
+ '[' -z eth0 ']'
+ need_config eth0
+ CONFIG=ifcfg-eth0
+ '[' -f ifcfg-eth0 ']'
+ return
+ '[' -f ifcfg-eth0 ']'
+ '[' 0 '!=' 0 ']'
+ source_config
++ basename ifcfg-eth0
++ sed 's/^ifcfg-//g'
+ DEVNAME=eth0
+ basename ifcfg-eth0
+ grep -q '[^g]-'
+ . ifcfg-eth0
++ DEVICE=eth0
++ ONBOOT=no
++ BOOTPROTO=static
++ IPADDR=192.168.0.9
++ NETMASK=255.255.255.0
++ GATEWAY=192.168.0.1
++ PEERDNS=no
++ MULTICAST=yes
+ '[' -r keys-eth0 ']'
+ '[' -z '' ']'
++ echo eth0
++ sed 's/[0-9]*$//'
+ DEVICETYPE=eth
+ '[' -z '' -a -n '' ']'
+ '[' -z '' ']'
+ REALDEVICE=eth0
+ '[' eth0 '!=' eth0 ']'
+ ISALIAS=no
+ '[' -n '' ']'
+ '[' -n '' ']'
+ '[' foo = fooboot -a no = no -o no = NO ']'
+ '[' -n '' -a '' = no -o '' = NO ']'
+ '[' -n '' -a '' = Bridge ']'
+ '[' -x /sbin/vconfig -a '' = yes ']'
+ '[' '' = yes ']'
+ '[' static = bootp -o static = dhcp ']'
+ '[' -x /sbin/ifup-pre-local ']'
+ OTHERSCRIPT=/etc/sysconfig/network-scripts/ifup-eth
+ '[' -x /etc/sysconfig/network-scripts/ifup-eth ']'
+ is_available eth0
+ LC_ALL=
+ LANG=
+ ip -o link
+ grep -q eth0
+ '[' 0 = 1 ']'
+ return 0
+ '[' -n '' ']'
+ '[' '' = Bridge ']'
+ '[' -n '' -a -x /usr/sbin/brctl ']'
+ is_available eth0
+ LC_ALL=
+ LANG=
+ ip -o link
+ grep -q eth0
+ '[' 0 = 1 ']'
+ return 0
+ is_wireless_device eth0
+ '[' -x /sbin/iwconfig ']'
+ LC_ALL=C
+ iwconfig eth0
+ grep -q 'no wireless extensions'
+ return 1
+ '[' '' = yes -a no = no -a '' '!=' '' -a -x /sbin/ifenslave ']'
+ '[' '' = Bonding ']'
+ ethtool -i eth0
+ grep -q 'driver: bonding'
+ '[' -n '' ']'
+ '[' -n '' ']'
+ FWACTIVE=
+ iptables -L -n
+ LC_ALL=C
+ grep -q RH-Lokkit-0-50-INPUT
+ modprobe -r iptable_filter
+ '[' -w /etc/dhclient-eth0.conf ']'
+ '[' -n '' ']'
+ '[' -z 192.168.0.9 ']'
+ expand_config
+ '[' -z 255.255.255.0 ']'
+ '[' -z '' ']'
++ /bin/ipcalc --prefix 192.168.0.9 255.255.255.0
+ eval PREFIX=24
++ PREFIX=24
+ '[' -z '' ']'
++ /bin/ipcalc --broadcast 192.168.0.9 255.255.255.0
+ eval BROADCAST=192.168.0.255
++ BROADCAST=192.168.0.255
+ '[' -z '' ']'
++ /bin/ipcalc --network 192.168.0.9 255.255.255.0
+ eval NETWORK=192.168.0.0
++ NETWORK=192.168.0.0
+ '[' -n '' ']'
+ ip link set dev eth0 up
+ '[' -n '' ']'
+ arping -q -c 2 -w 3 -D -I eth0 192.168.0.9
+ '[' eth0 = lo ']'
+ SCOPE=
+ '[' -n '' ']'
+ SRC=
+ LC_ALL=C
+ ip addr ls eth0
+ LC_ALL=C
+ grep -q 192.168.0.9/24
+ ip addr add 192.168.0.9/24 brd 192.168.0.255 dev eth0 label eth0
+ '[' -n '' ']'
+ arping -q -A -c 1 -I eth0 192.168.0.9
+ '[' no = no -a 255.255.255.0 '!=' 255.255.255.255 ']'
+ ip route replace 192.168.0.0/24 dev eth0
RTNETLINK answers: No such device
+ '[' -z '' -o '' = eth0 ']'
++ ipcalc --network 192.168.0.1 255.255.255.0
+ '[' -n 192.168.0.1 -a NETWORK=192.168.0.0 = NETWORK=192.168.0.0 ']'
+ ip route replace default via 192.168.0.1
RTNETLINK answers: Network is unreachable
+ '[' -z '' -a no = no ']'
+ ip route replace 169.254.0.0/16 dev eth0
RTNETLINK answers: Invalid argument
+ '[' yes = yes ']'
+ ip route replace 224.0.0.0/4 dev eth0
RTNETLINK answers: Invalid argument
+ '[' '' = yes ']'
+ '[' '' = yes ']'
+ exec /etc/sysconfig/network-scripts/ifup-post ifcfg-eth0

 
Reply With Quote
 
KXK
Guest
Posts: n/a

 
      01-08-2006, 07:22 PM
Any progress with this?

I have the same problem under FC4.


K

On 3 Jan 2006 15:37:14 -0800, (E-Mail Removed) wrote:

>sorry, forgot add this; below is the shell execution of /sbin/ifup
>eth0
>----------------------
>
>[0] root@marty:[root]# sh -x /sbin/ifup eth0
>+ . /etc/init.d/functions
>++ TEXTDOMAIN=initscripts
>++ umask 022
>++ PATH=/sbin:/usr/sbin:/bin:/usr/bin:/usr/X11R6/bin
>++ export PATH
>++ '[' -z '' ']'
>++ COLUMNS=80
>++ '[' -z '' ']'
>+++ /sbin/consoletype
>++ CONSOLETYPE=pty
>++ '[' -f /etc/sysconfig/i18n -a -z '' ']'
>++ . /etc/sysconfig/i18n
>+++ LANG=en_US.UTF-8
>+++ SUPPORTED=en_GB.UTF-8:en_GB:en:en_US.UTF-8:en_US:en
>+++ SYSFONT=latarcyrheb-sun16
>++ '[' pty '!=' pty ']'
>++ export LANG
>++ '[' -z '' ']'
>++ '[' -f /etc/sysconfig/init ']'
>++ . /etc/sysconfig/init
>+++ BOOTUP=color
>+++ GRAPHICAL=yes
>+++ RES_COL=60
>+++ MOVE_TO_COL=echo -en \033[60G
>+++ SETCOLOR_SUCCESS=echo -en \033[0;32m
>+++ SETCOLOR_FAILURE=echo -en \033[0;31m
>+++ SETCOLOR_WARNING=echo -en \033[0;33m
>+++ SETCOLOR_NORMAL=echo -en \033[0;39m
>+++ LOGLEVEL=3
>+++ PROMPT=yes
>++ '[' pty = serial ']'
>++ '[' color '!=' verbose ']'
>++ INITLOG_ARGS=-q
>+ cd /etc/sysconfig/network-scripts
>+ . network-functions
>++ PATH=/sbin:/usr/sbin:/bin:/usr/bin:/usr/X11R6/bin
>++ export PATH
>+ '[' -f ../network ']'
>+ . ../network
>++ NETWORKING=yes
>++ HOSTNAME=marty
>++ GATEWAY=192.168.0.1
>+ CONFIG=eth0
>+ '[' -z eth0 ']'
>+ need_config eth0
>+ CONFIG=ifcfg-eth0
>+ '[' -f ifcfg-eth0 ']'
>+ return
>+ '[' -f ifcfg-eth0 ']'
>+ '[' 0 '!=' 0 ']'
>+ source_config
>++ basename ifcfg-eth0
>++ sed 's/^ifcfg-//g'
>+ DEVNAME=eth0
>+ basename ifcfg-eth0
>+ grep -q '[^g]-'
>+ . ifcfg-eth0
>++ DEVICE=eth0
>++ ONBOOT=no
>++ BOOTPROTO=static
>++ IPADDR=192.168.0.9
>++ NETMASK=255.255.255.0
>++ GATEWAY=192.168.0.1
>++ PEERDNS=no
>++ MULTICAST=yes
>+ '[' -r keys-eth0 ']'
>+ '[' -z '' ']'
>++ echo eth0
>++ sed 's/[0-9]*$//'
>+ DEVICETYPE=eth
>+ '[' -z '' -a -n '' ']'
>+ '[' -z '' ']'
>+ REALDEVICE=eth0
>+ '[' eth0 '!=' eth0 ']'
>+ ISALIAS=no
>+ '[' -n '' ']'
>+ '[' -n '' ']'
>+ '[' foo = fooboot -a no = no -o no = NO ']'
>+ '[' -n '' -a '' = no -o '' = NO ']'
>+ '[' -n '' -a '' = Bridge ']'
>+ '[' -x /sbin/vconfig -a '' = yes ']'
>+ '[' '' = yes ']'
>+ '[' static = bootp -o static = dhcp ']'
>+ '[' -x /sbin/ifup-pre-local ']'
>+ OTHERSCRIPT=/etc/sysconfig/network-scripts/ifup-eth
>+ '[' -x /etc/sysconfig/network-scripts/ifup-eth ']'
>+ is_available eth0
>+ LC_ALL=
>+ LANG=
>+ ip -o link
>+ grep -q eth0
>+ '[' 0 = 1 ']'
>+ return 0
>+ '[' -n '' ']'
>+ '[' '' = Bridge ']'
>+ '[' -n '' -a -x /usr/sbin/brctl ']'
>+ is_available eth0
>+ LC_ALL=
>+ LANG=
>+ ip -o link
>+ grep -q eth0
>+ '[' 0 = 1 ']'
>+ return 0
>+ is_wireless_device eth0
>+ '[' -x /sbin/iwconfig ']'
>+ LC_ALL=C
>+ iwconfig eth0
>+ grep -q 'no wireless extensions'
>+ return 1
>+ '[' '' = yes -a no = no -a '' '!=' '' -a -x /sbin/ifenslave ']'
>+ '[' '' = Bonding ']'
>+ ethtool -i eth0
>+ grep -q 'driver: bonding'
>+ '[' -n '' ']'
>+ '[' -n '' ']'
>+ FWACTIVE=
>+ iptables -L -n
>+ LC_ALL=C
>+ grep -q RH-Lokkit-0-50-INPUT
>+ modprobe -r iptable_filter
>+ '[' -w /etc/dhclient-eth0.conf ']'
>+ '[' -n '' ']'
>+ '[' -z 192.168.0.9 ']'
>+ expand_config
>+ '[' -z 255.255.255.0 ']'
>+ '[' -z '' ']'
>++ /bin/ipcalc --prefix 192.168.0.9 255.255.255.0
>+ eval PREFIX=24
>++ PREFIX=24
>+ '[' -z '' ']'
>++ /bin/ipcalc --broadcast 192.168.0.9 255.255.255.0
>+ eval BROADCAST=192.168.0.255
>++ BROADCAST=192.168.0.255
>+ '[' -z '' ']'
>++ /bin/ipcalc --network 192.168.0.9 255.255.255.0
>+ eval NETWORK=192.168.0.0
>++ NETWORK=192.168.0.0
>+ '[' -n '' ']'
>+ ip link set dev eth0 up
>+ '[' -n '' ']'
>+ arping -q -c 2 -w 3 -D -I eth0 192.168.0.9
>+ '[' eth0 = lo ']'
>+ SCOPE=
>+ '[' -n '' ']'
>+ SRC=
>+ LC_ALL=C
>+ ip addr ls eth0
>+ LC_ALL=C
>+ grep -q 192.168.0.9/24
>+ ip addr add 192.168.0.9/24 brd 192.168.0.255 dev eth0 label eth0
>+ '[' -n '' ']'
>+ arping -q -A -c 1 -I eth0 192.168.0.9
>+ '[' no = no -a 255.255.255.0 '!=' 255.255.255.255 ']'
>+ ip route replace 192.168.0.0/24 dev eth0
>RTNETLINK answers: No such device
>+ '[' -z '' -o '' = eth0 ']'
>++ ipcalc --network 192.168.0.1 255.255.255.0
>+ '[' -n 192.168.0.1 -a NETWORK=192.168.0.0 = NETWORK=192.168.0.0 ']'
>+ ip route replace default via 192.168.0.1
>RTNETLINK answers: Network is unreachable
>+ '[' -z '' -a no = no ']'
>+ ip route replace 169.254.0.0/16 dev eth0
>RTNETLINK answers: Invalid argument
>+ '[' yes = yes ']'
>+ ip route replace 224.0.0.0/4 dev eth0
>RTNETLINK answers: Invalid argument
>+ '[' '' = yes ']'
>+ '[' '' = yes ']'
>+ exec /etc/sysconfig/network-scripts/ifup-post ifcfg-eth0


 
Reply With Quote
 
david.safford@gmail.com
Guest
Posts: n/a

 
      01-10-2006, 01:24 PM
Appears to be a compiler-kernel bug.
I had the problem with FC4 compiled with gcc-4.0.1.
Compiling with gcc-4.0.2-8.fc4 and with the kernel
option "Optimize for size" turned off fixed it for me.

dave

 
Reply With Quote
 
js
Guest
Posts: n/a

 
      01-10-2006, 08:55 PM
KXK wrote:

> Any progress with this?
>
> I have the same problem under FC4.
>
>
> K
>


I am running the vanilla 2.6.15 kernel on FC3 without problems.
It is running as an Internet gateway with Masquerading / NAT.

 
Reply With Quote
 
whatdoineed2do@yahoo.co.uk
Guest
Posts: n/a

 
      01-12-2006, 08:46 PM
works when i build 2.6.15 using gcc 4.0.1 when "Optimize for size" is
off -- only change i made to the non working setup

 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to set default gw not by route command in linux? ChaoZhang Linux Networking 31 11-27-2006 11:52 PM
linux route nadavh@gmail.com Linux Networking 5 06-15-2006 08:01 PM
Route breaks firewall's local access AcCeSsDeNiEd Linux Networking 3 08-31-2004 01:44 PM
linux multipath per session route alexp Linux Networking 0 08-22-2003 01:16 AM
Linux automatic route after bringing up interface Peteris Krumins Linux Networking 2 07-31-2003 06:13 PM



1 2 3 4 5 6 7 8 9 10 11