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
 
LinkBack Search this Thread
Old 08-07-2006, 02:14 PM   #1
trainpic
Member
 
Registered: Apr 2004
Location: Ohio
Distribution: Ubuntu 6.06 LTS (Ubuntu, Edubuntu, Ubuntu Server)
Posts: 77
Blog Entries: 2

Rep: Reputation: 15
unable to ping through router


I have two networks at my house. One is a linksys wireless router (not the router with the trouble), with a WinXP desktop connected to it that connects to the internet via dialup. The other is a small ethernet downstairs. I recently set up a toshiba laptop with a wireless card and an ethernet card to act as a router between the two networks. The ethernet is only for edubuntu terminal clients. The terminal server is 192.168.1.1, and the laptop's ethernet interface is 192.168.1.2. iptables is enabled, and set to only forward packets with the server's source or destination address, as I don't want anyone messing with the thin clients. the servers default gateway is set to 192.168.1.2. The linksys router is 192.168.0.254, the laptop's wireless card is 192.168.0.3, and the WinXP computer is 192.168.0.1. When I attempt to ping the linksys router or the winxp computer from the server, I get no errors and no replies. I have enabled ip forwarding with
Code:
echo 1 > /proc/sys/net/ipv4/ip_forward
.
 
Old 08-07-2006, 03:19 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 39,835

Rep: Reputation: 1118Reputation: 1118Reputation: 1118Reputation: 1118Reputation: 1118Reputation: 1118Reputation: 1118Reputation: 1118Reputation: 1118
sounds like there is no return route. if you are going from one network to another, you're presumably taking the default route out of the local subnet, but as on your destination network the default route won't take you to the source subnet your data is lost. i'd probably suggest that your adsl router would be a good place to add a route back to the source subnet, as this would presumably already be being used as a default route anyway, so will already be being sent the traffic you can't find. just tell this box to send traffic for the source subnet back to the laptop router and it should reappear where you expect it to.
 
Old 08-08-2006, 07:57 AM   #3
trainpic
Member
 
Registered: Apr 2004
Location: Ohio
Distribution: Ubuntu 6.06 LTS (Ubuntu, Edubuntu, Ubuntu Server)
Posts: 77
Blog Entries: 2

Original Poster
Rep: Reputation: 15
I will try this. Thanks. I never thought (though it makes sense now) that I would have to add the route on both sides. Silly me. :-)
 
Old 08-08-2006, 08:28 AM   #4
trainpic
Member
 
Registered: Apr 2004
Location: Ohio
Distribution: Ubuntu 6.06 LTS (Ubuntu, Edubuntu, Ubuntu Server)
Posts: 77
Blog Entries: 2

Original Poster
Rep: Reputation: 15
Still doesn't work!! I added the laptops wireless interface IP (192.168.0.3) to the linksys router's routing table as a way to access the 192.168.1.0 network, and I still get no replies on pings.
 
Old 08-08-2006, 09:04 AM   #5
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 39,835

Rep: Reputation: 1118Reputation: 1118Reputation: 1118Reputation: 1118Reputation: 1118Reputation: 1118Reputation: 1118Reputation: 1118Reputation: 1118
well this is where you'd use tools like traceroute to see where a packet goes to on the journey between both machines. try from client and server.
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
No network connection, unable to ping netgear router from RH Linux alak123 Linux - Hardware 9 05-06-2006 12:11 PM
No network connection, unable to ping netgear router from RH Linux alak123 Linux - Hardware 4 05-03-2006 10:39 PM
LAN/ADSL Router ping working but DNS ping fails R N Ghosh Linux - Networking 1 01-13-2006 07:44 AM
Unable to ping 2 PC naveen_varma Linux - Networking 3 10-26-2005 01:55 AM
PPP establish can ping the gateway router but unable to ping the host deepalalla Linux - Networking 0 11-18-2004 09:10 AM


All times are GMT -5. The time now is 01:44 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
Open Source Consulting | Domain Registration