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.
|