URN Logo
UNIX Resources » Linux » Linux Forum » Linux Kernel Support » Page.1 » ping of router fails with linux-2.6.20.x kernel inspite of getting IP address
announcement The content of this page is collected from Linux Forum, All copyrights and other associated rights are reserved by the original authors of the articles.
Resources
China Linux Forum(finished)
Linux Forum(finished)
FreeBSD China(finished)
linuxforum.com
  LinuxForum General Chat
  Linux Advocacy
  LinuxForum Polls
  Introductions
  Linux Kernel Support
  Patch Management
  Development Release
  Linux Programming
  Linux Security
  Linux Software
  Linux Hardware Problems
    Linux Video Problems
    Linux Sound Problems
  Linux Networking Support
  Linux Printing Support
  Linux Human Interface Devices Support
  Linux Data Storage Support
  Linux Applications Support
  Linux Installation Support
  Linux Laptops Support
  Linux Motherboard, Chipsets, CPU, Memory
  Miscellaneous
  Debian Linux Support
  Ubuntu Linux Support
  LiveCD Discussions
  Gentoo Linux Support
  Mandrake Linux Support
  Redhat / Fedora Linux Support
  Slackware Linux Support
  SuSE Linux Support
  CentOS Linux Support
  Linux Web Servers
  Linux DNS Servers
  Linux Database Servers
  Linux Email Servers
  Linux FTP Servers
  Linux Squid Proxy Server
  Linux Samba Help
  Linux cPanel Help
  Linux Ensim Help
  Linux Plesk Help
  Linux Webmin / Usermin Help
  Qmail Toaster Help
  Linux Games
  Windows Game Emulation
  Linux Discussions
  General Linux Discussions
  Red Hat Linux Discussions
  More Red Hat Linux Discussions
  Mandrake Linux Discussions
  Slackware Linux Discussions
  SuSE Linux Discussions
  Debian Discussions
  Samba Help
  Linux Security
  Linux Networking
  Gentoo Help
  Operating System Rant Forum
  Hardware Rants
   
ping of router fails with linux-2.6.20.x kernel inspite of getting IP address
Subject: ping of router fails with linux-2.6.20.x kernel inspite of getting IP address
Author: nil    Posted: 2007-03-24 21:28:53    Length: 1,310 byte(s)
[Original] [Print] [Top]
This is an unusual problem that I have been facing with my compiled-from-source kernel (applicable to both versions 2.6.20.3/4 from http://www.kernel.org). I compiled and installed this vanilla-kernel on my OS (Linux mandriva 2007.0). My setup includes a linksys router and DSLmodem. Here's the problem:

1) If my machine is connected directly to the DSL modem then it can successfully ping the IP address of the ISP server (to which the DSL modem is connected at the far end).

2) If my machine is connected to the router (which in turn is connected to the DSL modem) then it cannot ping the internal IP address (192.168.1.1) of the router. The ping command reports 100% packet loss. Needless to say, my machine cannot access the internet.

Note that in both cases my machine gets a legitimate IP address via DHCP, as shown by ifconfig. Also, commands like "route -en" do indicate proper routes (however, "netstat -r" hangs in the 2nd case).

The above problem is true for only for the 2.6.20.x kernel I compiled from source. The mandriva 2007.0 OS itself comes with its own kernel (2.6.17) which has none of these problems. Also, other machines connected to the router can access the internet just fine. Any trouble-shooting advice is welcome.
[Original] [Print] [Top]
Subject: Re: ping of router fails with linux-2.6.20.x kernel inspite of getting IP addres
Author: tlcoffee    Posted: 2007-03-24 21:41:28    Length: 237 byte(s)
[Original] [Print] [Top]
Try changing the subnet of your dhcp assigned ip addresses in your router.

Your DSL modem is gonna assign your router an internal ip which is probably conflicting with your routers internal ip address assignments.

----
Aut viam inveniam aut faciam.

#include <stdio.h>
int main(void)
{
   int count;
   for(count=1;count<=500;count++)
      printf("I will not backtalk my boss.");
      return 0;
}
[Original] [Print] [Top]
Subject: Re: ping of router fails with linux-2.6.20.x kernel inspite of getting IP address
Author: nil    Posted: 2007-03-25 12:32:10    Length: 970 byte(s)
[Original] [Print] [Top]
Quote from: tlcoffee
Your DSL modem is gonna assign your router an internal ip which is probably conflicting with your routers internal ip address assignments.
I think you meant "Your DSL modem is gonna assign your router an external ip". I have verified that there is no conflict between internal and external IPs. If there had been then my network connection will not work for any of the kernels I use.

If you refer to my original post, you will notice that the ping problem is there for for a particular kernel and its obvious that the external or internal IP address of the router does not depend on the kernel version of one of the client machines connected to the router.

Quote
Try changing the subnet of your dhcp assigned ip addresses in your router.
Why would that help for a specifc kernel version?
[Original] [Print] [Top]
Subject: Re: ping of router fails with linux-2.6.20.x kernel inspite of getting IP addres
Author: tlcoffee    Posted: 2007-03-25 14:04:19    Length: 722 byte(s)
[Original] [Print] [Top]
pardon me

didn't mean to offend you there dewd.

i just scanned the post.

since your router is getting an internal ip address assigned to it by the cable modem AND then in turn assigns internal ip addresses to your home network, i just figured that a there would be a conflict there. but your right. you did say that it worked properly with a seperate kernel.

and since you decided to point out that this is a kernel problem then don't you think this post should have been made in the kernel support forum instead of network support since its specifically a problem with the kernel you compiled.

also when compiling your kernel make oldconfig is your friend.
----
Aut viam inveniam aut faciam.

#include <stdio.h>
int main(void)
{
   int count;
   for(count=1;count<=500;count++)
      printf("I will not backtalk my boss.");
      return 0;
}
[Original] [Print] [Top]
Subject: Re: ping of router fails with linux-2.6.20.x kernel inspite of getting IP address
Author: nil    Posted: 2007-03-25 22:58:45    Length: 1,095 byte(s)
[Original] [Print] [Top]
Quote
since your router is getting an internal ip address assigned to it by the cable modem
Actually, whatever address the ISP server assigns (via the modem) to the router is the router's "external" IP address but thats not relevant to the main issue.

Quote
and since you decided to point out that this is a kernel problem then don't you think this post should have been made in the kernel support forum instead of network support since its specifically a problem with the kernel you compiled.
We don't know yet whether the problem is with the kernel or some other networking-related system/config files that don't work with newer (2.6.20.x) kernels.

Quote
also when compiling your kernel make oldconfig is your friend.
I have tried various combinations (reusing an old .config and also creating a new one from scratch) but the problem of ping not responding has always been there.
[Original] [Print] [Top]
Subject: Re: ping of router fails with linux-2.6.20.x kernel inspite of getting IP addres
Author: ashirbad    Posted: 2007-04-11 10:49:48    Length: 391 byte(s)
[Original] [Print] [Top]
Ur problem is with the kernel

which is not supporting ur router but the DSL modem is supported by mostof the kernel

so try to install the driver it may be absent. Just try to detect and check whether it's working or not

this problem arises with new kernel smiley
[Original] [Print] [Top]
« Previous thread
Linux Kernel Correctness
Linux Kernel Support
Page. 1
Next thread »
Inconsistent super block info
     

Copyright © 2007 UNIX Resources Network, All Rights Reserved.      About URN | Privacy & Legal | Help | Contact us
Powered by FreeBSD    webmaster: webmaster@unixresources.net
This page created on 2007-08-01 11:42:49, cost 0.028541088104248 ms.