LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 05-20-2009, 09:49 AM   #1
pjeeanah
LQ Newbie
 
Registered: Dec 2006
Posts: 13

Rep: Reputation: 1
Building a linux router - cannot access computers on other side of the network


I have built a linux router with a pc having two network cards. I am running ubuntu 8.10.

I have enabled forwarding on the router. One network (192.168.1.0/24)is connected to eth0 and another (192.168.2.0/24) is connected to eth1.

The interfaces have addresses 192.168.1.1 and 192.168.2.1.

On any side side of the network, I can ping both interfaces on the router.

However when I ping a machine on the other side of the network, I get 100% packet loss.

I have not touched iptables on the router or any machines.

What I am doing wrong?

Any help would be really appreciated.

Thanks.
 
Old 05-20-2009, 10:04 AM   #2
slacky
Member
 
Registered: Feb 2004
Location: USA
Distribution: Debian
Posts: 174

Rep: Reputation: 16
Hi,

Their also needs to be routing setup for the machines on either side of the network - depending on your network topology there's different ways of accomplishing.

Are the machines on either side of the network using the linux router as their default gateway, or is their another router (like for your Internet connection). If there's another router as their default gateway, you can add a routing entry to that router for the network, or if a small network manually use "route add" to add routing rules to each machine.
 
Old 05-20-2009, 11:47 AM   #3
pjeeanah
LQ Newbie
 
Registered: Dec 2006
Posts: 13

Original Poster
Rep: Reputation: 1
Hi Slacky

I have not set the machines to use the router as the default gateway. May be this is where I went wrong. I will try it tomorrow at work.

Thanks for the tip.
 
  


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
How can I access printers and other computers on a windows network with Linux? Iltbreg Linux - Networking 4 01-23-2008 09:23 AM
Strange: Can ping network computers but NOT router! BaltikaTroika Linux - Networking 2 05-11-2007 05:17 AM
How to network computers through router? M$ISBS Linux - Networking 3 04-01-2007 07:07 AM
Debian Woody: Can't access internet through router, but can access network computers marales314 Linux - Networking 3 06-09-2006 12:33 PM
Connecting one modem-router for two computers over a network dushkinup General 1 03-06-2004 10:28 AM

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

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