LinuxQuestions.org
Help answer threads with 0 replies.
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 09-18-2007, 03:28 AM   #1
tself
LQ Newbie
 
Registered: Feb 2006
Posts: 9

Rep: Reputation: 0
Static Routes not Working


Hi,

I have rather strange and unresovable error on my 3 Linux servers, all are HP servers, HP DL140, HP ML350 and HP DL360. All running Ubuntu 6.06.

There is a problem that the extra static route it need to add doesnt work, well not all the time.

Basically there are two networks 192.168.197.0 and 192.168.198.0 with a router at 192.168.197.1/192.168.198.1 that allows routing between the two networks. on the 192.168.197.0 network there also is a firewall on 192.168.197.254 this is the default gateway for this network and what the Linux servers use as a default gateway to access the internet.

As the default gateway is .254 i added a static route on the server to point to the .1 router to access the 192.168.198.0 my routing table looks like this.

root@xenon:~# route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.197.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
192.168.198.0 192.168.197.1 255.255.255.0 UG 0 0 0 eth0
0.0.0.0 192.168.197.254 0.0.0.0 UG 0 0 0 eth0

Looks okay to me, but it doesnt work, well not all the time. from the 192.168.198.0 network i started to ping the Linux server (whose routing table is shown above), and it didnt work, then after half an hour of pinging, i suddenly started to get a response from the server.

I've then tried pinging it this morning and it doesnt work again, nothing has changed over night, but its stopped working again.

This seems to be a bug, or have i done something wrong? This seems to me to be a very simple configuration for a routing table. Is there anyway to fix this?

Thanks

Tristan
 
Old 09-18-2007, 03:44 AM   #2
soroccoheaven
Member
 
Registered: Jul 2007
Distribution: mandrake Mandriva Redhat CentOS Slackware
Posts: 221

Rep: Reputation: 30
I think you should check this.
Quote:
192.168.198.0 192.168.197.1 255.255.255.0 UG 0 0 0 eth0
 
Old 09-18-2007, 05:44 AM   #3
tself
LQ Newbie
 
Registered: Feb 2006
Posts: 9

Original Poster
Rep: Reputation: 0
Hi,

Can't see what you mean.

the 192.168.197.1 router (gateway) to access the 192.168.198.0 network.

Is there something wrong with the syntax?

Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.197.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
192.168.198.0 192.168.197.1 255.255.255.0 UG 0 0 0 eth0
0.0.0.0 192.168.197.254 0.0.0.0 UG 0 0 0 eth0

This is the command I entered to create the route:

# route add -net 192.168.198.0 netmask 255.255.255.0 gw 192.168.197.1

Basically use the default gateway 192.168.197.254 for all internet routes, but use the 192.168.197.1 gateway for accessing the 192.168.198.0 network.

If the server is on the 192.168.197.0 network surely this is correct?

Thanks
 
Old 09-19-2007, 05:08 AM   #4
tself
LQ Newbie
 
Registered: Feb 2006
Posts: 9

Original Poster
Rep: Reputation: 0
Okay i've given up with the static routes idea, theres obvously a bug with that.

I've pointed the server at the default gateway 192.168.197.1.

# route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.197.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
0.0.0.0 192.168.197.1 0.0.0.0 UG 0 0 0 eth0

Looks fine to me, all other machines on the network (except those running Ubuntu 6.06) can access the internet, this one can't.

Basically anything off the local network is not accessable. This is a brand new build of Ubuntu 6.06 and all other Ubuntu servers are experiencing this problem, the windows boxes however can access off network fine.

What makes it more strange is the problem is intermittent, it will work for about 30 seconds then will suddenly stop being able to access off network, then all of a sudden it will start to work again and so on.

Is there anywhere (log files) that i can check to see what is going on?

Thanks
 
Old 09-19-2007, 05:14 AM   #5
tself
LQ Newbie
 
Registered: Feb 2006
Posts: 9

Original Poster
Rep: Reputation: 0
Right packet traces are not showing the traffic even getting on the wire so it is something on the server that is stopping it from leaving the server. Anybody got any ideas what might be causing it to think traffic off the local subnet 192.168.197.0 isnt?

Thanks
 
Old 09-19-2007, 08:04 AM   #6
tself
LQ Newbie
 
Registered: Feb 2006
Posts: 9

Original Poster
Rep: Reputation: 0
Okay the plot thickens.

I setup our switch with a spanning port so i could look at etherreal captures of traffic from the Linux box to the router.

And guess what traffic is leaving the box and going to the router (Layer 3 switch) and it is ignoring it.

Has anyone known come across and issue where a Cisco router (switch) doesnt bother routing traffic from a linux box, or if it does routes it intermittently?

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
static routes and ifconfig yiux Linux - Networking 4 06-11-2007 06:24 PM
Problem with Static Routes kewlemer Linux - Networking 5 07-06-2006 01:18 AM
How do I config static routes? mikezang Linux - Networking 4 10-31-2005 10:29 AM
automatic static routes? eantoranz Linux - Networking 5 07-19-2005 08:30 PM
static routes, bonding, vlan not working with RHEL3 onewave Linux - Networking 4 05-13-2005 06:50 AM

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

All times are GMT -5. The time now is 07:18 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