Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 05-20-2009, 10:49 AM   #1
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 ( connected to eth0 and another ( is connected to eth1.

The interfaces have addresses and

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.

Old 05-20-2009, 11:04 AM   #2
Registered: Feb 2004
Location: USA
Distribution: Debian
Posts: 174

Rep: Reputation: 16

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, 12:47 PM   #3
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.


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

All times are GMT -5. The time now is 05:02 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration