On Tue, 2 Oct 2001, Chang Lin wrote:
Hi there,
I am puzzled by the following problem: I have three computer A/B/C. A&B are linux machines, and C is solaris. A, B are connected through LAN, and B, C are connected through another LAN. There is no direct link between A and C. How do I setup the routing on A & B so that A can connect to C? (neither of them is a gateway of their respective LAN).
Graphically, the network looks like this:
A <===(eth0: 10.168.84.0)===> B <===(eth1: 192.168.84.0)===> C
IPs: A (10.168.84.214) B (10.168.84.222, 192.168.84.212) C (192.168.84.11)
I set up the routings on A: /% route add -net 192.168.84.0 netmask 255.255.255.0 gw 10.168.84.222 / / % rcrouted start /and I was able to ping B's second ip. However when I ping C from A, it just hangs in there. Is there anything I should do on B?
Yes, both B and C need to know the network topology as well. On B: Configure each interface, and the corresponding subnet route should be set up for you. Make sure IP forwarding is enabled: echo 1 > /proc/sys/net/ipv4/ip_forward On C: Make sure it knows the return path to A - route add -net 10.168.84.0 netmask 255.255.255.0 gw 192.168.84.212 (sorry, you'll have to translate this into the solaris dialect yourself...) -- Rick Green "They that can give up essential liberty to obtain a little temporary safety, deserve neither liberty nor safety." -Benjamin Franklin