LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 04-30-2007, 02:45 PM   #1
cronicded
LQ Newbie
 
Registered: Sep 2006
Posts: 14

Rep: Reputation: 0
New Network Device Routing Issue


I have recently added a new machine to my network at home and am having issues routing. To describe my current setup:

Cable Modem <--> X.X.X.X [Gateway box] 192.168.54.1 <--> SWITCH

[SWITCH] <--> 192.168.54.1 [Gateway Box] (socrates)
[SWITCH] <--> 192.168.54.2 [Linksys Router] 192.168.55.1 <--> WiFi Subnet (cerberus)
[SWITCH] <--> 192.168.54.5 [New Box] (meb)

Currently, socrates can route to the internet. Socrates can route to cerberus and to meb. Cereberus can route to wifi hosts, to meb, to socrates, and to the internet. meb can route to cerberus and to socrates, but cannot get past socrates.

Socrates information:
Code:
root@socrates:/home/# route
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
192.168.54.0    *               255.255.255.0   U     0      0        0 eth1
70.112.48.0     *               255.255.254.0   U     0      0        0 eth0
loopback        *               255.0.0.0       U     0      0        0 lo
default         cpe-70-112-48-1 0.0.0.0         UG    0      0        0 eth0

root@socrates:/home/# iptables -L
Chain INPUT (policy ACCEPT)
target     prot opt source               destination

Chain FORWARD (policy DROP)
target     prot opt source               destination
ACCEPT     all  --  anywhere             anywhere            state RELATED,ESTABLISHED
ACCEPT     all  --  anywhere             anywhere
LOG        all  --  anywhere             anywhere            LOG level warning

Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination

root@socrates:/home/# cat /etc/resolv.conf
nameserver 24.93.41.125
nameserver 24.93.41.126
search austin.rr.com

root@socrates:/home/# ifconfig
eth0      Link encap:Ethernet  HWaddr 00:E0:4C:B6:5C:EC
          inet addr:70.112.49.XXX  Bcast:255.255.255.255  Mask:255.255.254.0
          UP BROADCAST NOTRAILERS RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:16885984 errors:0 dropped:0 overruns:0 frame:0
          TX packets:12923439 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:151109277 (144.1 Mb)  TX bytes:1450028461 (1382.8 Mb)
          Interrupt:17 Base address:0xe000

eth1      Link encap:Ethernet  HWaddr 00:50:BA:D9:B2:45
          inet addr:192.168.54.1  Bcast:192.168.54.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:3948111 errors:0 dropped:0 overruns:0 frame:0
          TX packets:5927792 errors:0 dropped:0 overruns:10 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:844542407 (805.4 Mb)  TX bytes:2949513746 (2812.8 Mb)
          Interrupt:18 Base address:0xa400

root@socrates:/home/# ping 192.168.54.1
PING 192.168.54.1 (192.168.54.1) 56(84) bytes of data.
64 bytes from 192.168.54.1: icmp_seq=1 ttl=64 time=0.119 ms

--- 192.168.54.1 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 0.119/0.119/0.119/0.000 ms

root@socrates:/home/# ping 192.168.54.2
PING 192.168.54.2 (192.168.54.2) 56(84) bytes of data.
64 bytes from 192.168.54.2: icmp_seq=1 ttl=64 time=6.30 ms

--- 192.168.54.2 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 6.305/6.305/6.305/0.000 ms

root@socrates:/home/# ping 192.168.54.5
PING 192.168.54.5 (192.168.54.5) 56(84) bytes of data.
64 bytes from 192.168.54.5: icmp_seq=1 ttl=64 time=0.260 ms

--- 192.168.54.5 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 0.260/0.260/0.260/0.000 ms

root@socrates:/home/# ping yahoo.com
PING yahoo.com (216.109.112.135) 56(84) bytes of data.
64 bytes from w2.rc.vip.dcn.yahoo.com (216.109.112.135): icmp_seq=1 ttl=52 time=53.0 ms

--- yahoo.com ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 53.081/53.081/53.081/0.000 ms
meb information:
Code:
root@meb:/usr/src/linux# route
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
default         192.168.54.1    255.255.255.255 UGH   0      0        0 eth0
localnet        *               255.255.255.0   U     0      0        0 eth0
loopback        *               255.0.0.0       U     0      0        0 lo

root@meb:/usr/src/linux# cat /etc/resolv.conf
nameserver 24.93.41.125
nameserver 24.93.41.126

root@meb:/usr/src/linux# ifconfig
eth0      Link encap:Ethernet  HWaddr 00:40:63:CA:9C:65
          inet addr:192.168.54.5  Bcast:192.168.54.255  Mask:255.255.255.0
          inet6 addr: fe80::240:63ff:feca:9c65/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:6757 errors:0 dropped:0 overruns:0 frame:0
          TX packets:4521 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:598872 (584.8 KiB)  TX bytes:652774 (637.4 KiB)
          Interrupt:11 Base address:0xc000

root@meb:/usr/src/linux# ping 192.168.54.5
PING 192.168.54.5 (192.168.54.5) 56(84) bytes of data.
64 bytes from 192.168.54.5: icmp_seq=1 ttl=64 time=0.072 ms

--- 192.168.54.5 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 0.072/0.072/0.072/0.000 ms

root@meb:/usr/src/linux# ping 192.168.54.2
PING 192.168.54.2 (192.168.54.2) 56(84) bytes of data.
64 bytes from 192.168.54.2: icmp_seq=1 ttl=64 time=1.84 ms

--- 192.168.54.2 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 1.845/1.845/1.845/0.000 ms

root@meb:/usr/src/linux# ping 192.168.54.1
PING 192.168.54.1 (192.168.54.1) 56(84) bytes of data.
64 bytes from 192.168.54.1: icmp_seq=1 ttl=64 time=0.229 ms

--- 192.168.54.1 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 0.229/0.229/0.229/0.000 ms

root@meb:/usr/src/linux# ping 216.109.112.135
connect: Network is unreachable


root@meb:/usr/src/linux# traceroute 216.109.112.135  (yahoo.com)
traceroute: findsaddr: Can't find interface
My first guess is something to do with the localnet entry in the routing table but I'm hoping there's something simple I'm missing. This is a new slack11 install and I updated the kernel
Linux meb 2.6.21 #1 Sun Apr 29 11:48:26 CDT 2007 i686 i686 i386 GNU/Linux

Any help is greatly appreciated.
 
Old 04-30-2007, 07:46 PM   #2
cronicded
LQ Newbie
 
Registered: Sep 2006
Posts: 14

Original Poster
Rep: Reputation: 0
A reboot produced this after hitting up a netconfig via slackware. I also edited /etc/networks and added the localnet line to 127.0.0.0.
Code:
root@jaqx:/home/cronicded# route
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
192.168.54.0    *               255.255.255.0   U     0      0        0 eth0
loopback        *               255.0.0.0       U     0      0        0 lo
default         192.168.54.1    0.0.0.0         UG    1      0        0 eth0
Looks like my localnet entry got removed fromt the table. I'm thinking this is what caused my problem, but I guess I'll never know.
 
Old 04-30-2007, 08:19 PM   #3
blackhole54
Senior Member
 
Registered: Mar 2006
Posts: 1,896

Rep: Reputation: 61
So it is working now? I was guessing that localnet was 192.168.54.0, in which case, it looks like your routing table in essence is unchanged, but that value is no longer called localnet. But them I am not sure I understand what you did between your two posts. Under the above assumption, I didn't see anything wrong from your first post. Of course, it is always possible I missed something.
 
  


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
Routing issue guanyu Linux - Networking 1 09-10-2006 06:55 AM
Routing Issue marc hall Linux - Networking 4 07-18-2004 10:59 AM
SuSe 9.0 and multiple network adapters(possible routing issue) exabrial Linux - Networking 3 03-21-2004 05:18 PM
routing issue.. inode100 Linux - Networking 12 02-25-2004 03:52 PM
Routing Issue jrmann1999 Linux - Networking 1 01-15-2002 10:58 AM


All times are GMT -5. The time now is 04:10 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration