LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Building a linux router - cannot access computers on other side of the network (https://www.linuxquestions.org/questions/linux-networking-3/building-a-linux-router-cannot-access-computers-on-other-side-of-the-network-727289/)

pjeeanah 05-20-2009 09:49 AM

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.

slacky 05-20-2009 10:04 AM

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.

pjeeanah 05-20-2009 11:47 AM

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.


All times are GMT -5. The time now is 07:35 PM.