LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 10-29-2005, 03:07 PM   #1
FliesLikeABrick
Member
 
Registered: Aug 2005
Location: NY,USA
Distribution: Debian, Gentoo, Ubuntu
Posts: 103

Rep: Reputation: 15
router issue - kernel routing tables?


I have one problem on two servers that i use as routers (two houses, two completely separate networks) , so i'm 110% sure it is something in my configuration. The issue happens without the iptables rules even loaded, so I'm 99% sure it does not have to do with iptables.


when i first turn on the routers, i ping google from it and it is under 20ms... but then if i do it again a couple minutes later, itll be 100ms+ until i reset the interface connected to the internet (ifdown eth1 && ifup eth1). The ping will go back down to 20, but a couple minutes later itll be back up to 100ms again.



configuration: my LAN router running debian:
eth0: LAN
eth1: internet

current kernel routing table:
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
localnet * 255.255.255.0 U 0 0 0 eth0
69.121.96.0 * 255.255.240.0 U 0 0 0 eth1
default ool-45796001.dy 0.0.0.0 UG 0 0 0 eth1



let me know any other information you need, I am desperate to resolve this as it is causing performance issues on both networks.


and after a couple minutes on a ssh connection into the box (from over the internet) it gets really laggy and then locks up... but then a new connection can be opened, act fine, then do the same exact thing.


another issue:

i have a webserver running on 192.168.1.5 on port 6080. When i request http://domain:6080 from within the same LAN as the webserver, I get connection refused. When I connect to http://192.168.1.5:6080 within the LAN, it works perfectly.
When someone outside the network requests http://domain:6080, it works fine.

Again, i suspect this has to do with the kernel routing tables in my router.


edit: i think the difference in google pings may just be shifting routes chosen over the internet, for load balancing. I'm more concernde now with the laggy/frozen ssh connections and the webserver/local server access

Last edited by FliesLikeABrick; 10-29-2005 at 05:05 PM.
 
Old 11-02-2005, 09:11 PM   #2
peter_robb
Senior Member
 
Registered: Feb 2002
Location: Szczecin, Poland
Distribution: Gentoo, Debian
Posts: 2,458

Rep: Reputation: 48
Using a domain in the url will always get the external number, which creates a routing problem.

Any reply from the server will come from it's internal interface and ip number and the client will drop these packets as they are from the wrong ip..

Use a local dns solution (/etc/hosts even) to supply the internal ip number for the domains on the server.

The slowing net connection could be a changing path MTU which causes packets to become fragmented, slowing the whole link down. Try disabling auto MTU discovery, or even cut the entire network down to an MTU of 1400 and see the effect it makes.
 
Old 11-02-2005, 09:21 PM   #3
FliesLikeABrick
Member
 
Registered: Aug 2005
Location: NY,USA
Distribution: Debian, Gentoo, Ubuntu
Posts: 103

Original Poster
Rep: Reputation: 15
i'll look into what you said about the domain stuff.

i think the slowing down interface is because of the NIC. It is one of the first (or maybe THE first) revision of Linksys's USB1.1 10/100 adapter.

I'm gonna try just setting up the routing using the two onboard NICs and see if that clears up the bog-down issue, then later I'll see what is up with that NIC.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Kernel IP routing tables rleesBSD Linux - Networking 1 07-02-2005 09:57 PM
Multi-NIC router and routing tables bbenz3 Linux - Networking 0 10-10-2004 02:11 AM
Routing PPTP through router running linux 2.4.x kernel mcukstorm Linux - Security 4 07-07-2003 12:30 PM
routing tables dunkyb Linux - Networking 3 05-25-2003 03:10 PM
linux kernel: large routing tables dunkyb Linux - Software 0 02-19-2003 03:19 AM

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

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