LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Setting static routes on LAN (https://www.linuxquestions.org/questions/linux-networking-3/setting-static-routes-on-lan-274814/)

cranium2004 01-06-2005 08:43 PM

Setting static routes on LAN
 
I have designed a LAB of 5 computers which are not connected to any switch or hub.
in which i want two routers.

|HOST A |----|ROUTER 1|-----|HOST B |------|ROUTER 2|------|HOST C |

HOST A
eth0: 10.0.1.192
ROUTER 1
eth0: 10.0.1.1
eth1: 192.168.1.1
HOST B
eth0: 192.168.1.19
eth1: 10.10.10.1
ROUTER 2
eth0: 10.10.10.10
eth1: 192.168.10.1
HOST C
eth0: 192.168.10.192

WHERE all connections are using crossover wire.
How can i set static routes on it? I want that when i send a packet from
HOST A to HOST C then it must go through all three hops shown in above
diagram. What changes i require to do that on all 5 machines???

I have asked question here for LAB desing check it also.
http://www.linuxquestions.org/questi...hreadid=256362

oulevon 01-06-2005 11:37 PM

What you've designed isn't a lan. It's 3 separate lans, divided by 2 routers. What are you trying to do here? 3 separate lans or 1 big lan?

cranium2004 01-06-2005 11:52 PM

Sorry!!! I want 3 LAN's with 2 routers

oulevon 01-06-2005 11:57 PM

You would assign the interfaces of each computer the ip address you want to use with the ifconfig command. You would then have to modify the routing table for each of the routers, but this I'm not sure how to do though. Sorry.


All times are GMT -5. The time now is 06:21 PM.