LinuxQuestions.org
Visit Jeremy's Blog.
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 11-18-2004, 06:16 AM   #1
cranium2004
Member
 
Registered: Feb 2004
Distribution: FC4,RHEL4
Posts: 223

Rep: Reputation: 30
designing linux LAB


I have designed a LAB of 5 computers which are not connected to ant 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
HOST B
eth0: 192.168.1.19
HOST C
eth0: 10.10.1.192
ROUTER 1
eth0: 10.0.1.1
eth1: 192.168.1.1
ROUTER 2
eth0: 192.168.1.192
eth1: 10.10.1.1

WHERE all connections are using crossover wire.
what i want to ask is that can above designed configuration is correct?
can it be giving a simulation as i am sending a packet from host A to Host C
which is going through 2 routers in (consider) internet?
Also what should be Gateway addresses for each host for each NIC cards?
I am confusing what gateway address should be given to each host?

Last edited by cranium2004; 11-18-2004 at 06:26 AM.
 
Old 11-18-2004, 07:26 AM   #2
scowles
Member
 
Registered: Sep 2004
Location: Texas, USA
Distribution: Fedora
Posts: 620

Rep: Reputation: 31
According to your diagram, host b should have two IP addresses, but you only show one. What's the subnet/mask used between host b and r2?

According to your output, r2/eth0=192.168.1.0/24 and r1/eth1=192.168.1.0/24. If these two routers were physically connected to each other, that would be correct, but host b is in the middle. So you need to add another subnet in your design to accomodate the connections between host b and routers r1 and r2.
Example:

HOST A
eth0: 10.0.1.192
HOST B
eth0: 192.168.1.19
eth1: 192.168.2.19
HOST C
eth0: 10.10.1.192
ROUTER 1
eth0: 10.0.1.1
eth1: 192.168.1.1
ROUTER 2
eth0: 192.168.2.192
eth1: 10.10.1.1

In fact, for simplicity of naming your diagram, try:

h1----r1-----r2-----r3-----h2

As for the default gateway... host a and host c are simple; point the default gateway to the connected routers IP address. As for the multi-homed devices (r1/host b/r2), they will need to have either static routes defined for each network that is more than one hop away -or- you can enable a routing protocol such as RIP or OSPF so that these routes are dynamically added.
 
Old 11-19-2004, 09:52 PM   #3
cranium2004
Member
 
Registered: Feb 2004
Distribution: FC4,RHEL4
Posts: 223

Original Poster
Rep: Reputation: 30
why host B requires 2 NICs? What i want to have simulation of Inetnet in my LAB. as i send packets from host A to host C it is going through 2 routers. For that i am desiging such LAB.

Also what is following diagram that you have given. is is confusing me as it shows 3 routers.

h1----r1-----r2-----r3-----h2

One more thing as i have limitations to be in Single LAB all those Hosts and routers are physically connected as given in my problem diagram.
 
  


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
Help Designing new box specially for Linux eirbyte Linux - Hardware 6 04-16-2005 07:11 AM
(LAB) linux as bootloader joeswaminathan Linux - General 0 12-16-2004 06:06 PM
linux instead of Win2kS-AD in a small lab? toeknee Linux - General 5 08-01-2004 07:10 PM
Designing a Linux Network Infrastructure!? therizwaan Linux - Networking 5 09-12-2002 05:51 PM
Linux Redhat Lab Sarah Linux - Networking 1 02-27-2002 08:21 AM

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

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