LinuxQuestions.org
Review your favorite Linux distribution.
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 01-06-2005, 09:43 PM   #1
cranium2004
Member
 
Registered: Feb 2004
Distribution: FC4,RHEL4
Posts: 223

Rep: Reputation: 30
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
 
Old 01-07-2005, 12:37 AM   #2
oulevon
Member
 
Registered: Feb 2001
Location: Boston, USA
Distribution: Slackware
Posts: 438

Rep: Reputation: 30
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?
 
Old 01-07-2005, 12:52 AM   #3
cranium2004
Member
 
Registered: Feb 2004
Distribution: FC4,RHEL4
Posts: 223

Original Poster
Rep: Reputation: 30
Sorry!!! I want 3 LAN's with 2 routers
 
Old 01-07-2005, 12:57 AM   #4
oulevon
Member
 
Registered: Feb 2001
Location: Boston, USA
Distribution: Slackware
Posts: 438

Rep: Reputation: 30
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.
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I config static routes? mikezang Linux - Networking 4 10-31-2005 11:29 AM
Max Static Routes? roundst Linux - Networking 2 07-28-2005 03:51 AM
automatic static routes? eantoranz Linux - Networking 5 07-19-2005 09:30 PM
static-routes in Mandrake 10.0 tallthom Mandriva 1 09-27-2004 01:51 AM
Contacting INTERNAL LAN server via domain name/full IP? STATIC ROUTES? Please Help!! Bungo2000 Linux - Networking 8 06-27-2003 11:27 AM

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

All times are GMT -5. The time now is 01:03 PM.

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