LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 07-07-2006, 09:21 AM   #1
ner0
LQ Newbie
 
Registered: Jun 2004
Posts: 18

Rep: Reputation: 0
Unhappy Routing table problems + Ping errors


I'll admit beforehand, the problems I've encountered are mainly my fault!

The root of my problems was that I couldn't ping out to my network from my linux (slackware 10.2) box, however from any point in the network I could ping slack.

I thought this would most likely be a routing problem, so I decided to take a look, and (probably stupidly) cleared the routing table and opted to start from scratch with it.

My routing table is now (route -n):
Destination Gateway Genmask Flags Iface
127.0.0.1 0.0.0.0 255.255.255.255 UH lo
192.168.0.0 0.0.0.0 255.255.255.0 U eth0
0.0.0.0 192.168.0.1 0.0.0.0 UG eth0

Ifconfig -a now shows:
eth0 Link encap:ethernet...............
Inet addr: 192.168.0.141 BCast 192.168.0.255 Mask 255.255.255.0
Lots of packets, no errors...

lo Link encap: local loopback
Inet addr: 127.0.0.1 Mask 255.0.0.0
likewise, no errors, lots of packets.

If I try to ping any address I get the error: "connect: Invalid argument"

Any help would be extremely appreciated!
 
Old 07-08-2006, 07:45 PM   #2
comprookie2000
Gentoo Developer
 
Registered: Feb 2004
Location: Fort Lauderdale FL.
Distribution: Gentoo
Posts: 3,291
Blog Entries: 5

Rep: Reputation: 58
post /etc/resolv.conf
did you set your default gateway like this
route add default gw 192.168.0.1
 
Old 07-09-2006, 03:53 AM   #3
sonajiso
Member
 
Registered: Oct 2003
Posts: 34

Rep: Reputation: 15
The only thing I see wrong with your routing table is the "255.255.255.255" netmask for the loopback interface. This entry makes no sense and could break things. The lo subnet should be class A - netmask of "255.0.0.0".

This might not be the cause of your problems, but try changing the netmask, see if that helps.
Also, you might want to check if you have a firewall enabled. If so, you might want to check its settings.

PS: Running `route add default gw 192.168.0.1` would add the "0.0.0.0 192.168.0.1 0.0.0.0 UG eth0" entry into the routing table, so it seems the path to your default gateway is well defined.
 
Old 07-10-2006, 07:46 AM   #4
ner0
LQ Newbie
 
Registered: Jun 2004
Posts: 18

Original Poster
Rep: Reputation: 0
Thanks to both of you for your help, I was playing with route/ifconfig for a while trying to fix it with no avail.. however once I rebooted the problems were gone, didn't think that would help.

P.S. I think it was the netmask, as that was what I was trying to change, it just kept changing straight back!, reboot must have been the savior

Many Thanks
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Routing table query mickboda Linux - Networking 3 11-05-2005 11:11 AM
routing table arvind kumar Linux - Networking 2 06-08-2005 11:59 PM
Help with a Routing Table maginotjr Linux - Networking 4 06-06-2005 09:49 AM
how to ignore the routing table 155092376 Linux - Networking 4 07-22-2003 09:35 AM
routing table upr8830 Linux - Networking 6 06-18-2003 03:04 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 06:02 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration