help in completing lab configuration

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?

cranium2003Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

blklineCommented:
for HOSTS A & C make the default gateway the IP address of the nearest router on the same network.
for ROUTERS 1 & 2 make the default gateway the IP address of HOST B.
Add routes to HOST B so that it will know which networks appear on the far side of each router.

Ensure that HOST C and the routers have:
echo 1 > /proc/sys/net/ipv4/ip_forward

That should do it.
0
cranium2003Author Commented:
hi blkline,
            Why HOST C require ip forwarding?
What i figure out is
HOST A default GW IP is 10.0.1.1 on eth0
ROUTER 1 default GW IP is 192.168.1.19 on eth0
Does HOST B require GW IP to its eth0? what it should be?
ROUTER 2 default GW IP is 192.168.1.19 on eth0
HOST C default GW IP is 10.10.1.1 on eth0

Is above right???
0
jeilerCommented:
If you are going to just use crossover cables how are you going to plug HOST B into both routers?
0
cranium2003Author Commented:

Please help then how can i implement 3 hosts and 2 routers in my single LAB to have simulations of sending a packet from HOST A goes through 2 routers and the reach HOST C.
       I only want to have that simulation as it is required for my project testing. Project is related with routers so i need above lab design how to do that?
        can HOST B also require 2 NICS???
0
jeilerCommented:
|HOST A |----|ROUTER 1|-----|HUB/SWITCH |------|ROUTER 2|------|HOST C |  
                                                     |
                                                     |
                                               |HOST B |
     
HOST A
eth0: 10.0.1.192/255.255.0.0
default gw: 10.0.1.1

HOST B
eth0: 192.168.1.19/255.255.0.0
default gw: 192.168.1.1 OR 192.168.1.192
either should work since they have routes to each other, if you want to save a hop you can add routes to both 10.x.x.x subnets

HOST C
eth0: 10.10.1.192/255.255.0.0
default gw: 10.0.1.1

ROUTER 1
eth0: 10.0.1.1/255.255.0.0
eth1: 192.168.1.1/255.255.0.0
route add -net 10.10.0.0 netmask 255.255.0.0 gw 192.168.1.192

ROUTER 2
eth0: 192.168.1.192/255.255.0.0
eth1: 10.10.1.1/255.255.0.0
route add -net 10.0.0.0 netmask 255.255.0.0 gw 192.168.1.1

If you really don't want to use a hub to connect the routers/host B then put a second network card in host B and configure the ports to be bridged.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Linux Networking

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.