next hop vs interface routing
Posted on 2010-11-11
I inherited a strange IP setup and I'm not sure how to solve this routing issue.
I have a few devices with IP addresses in the 3.0 subnet. There is no router in between to route to the 3.0 subnet. I also have a 1.0 and a 4.0 subnet.
If I want to ping those devices(3.x) from a 1.0 machine I go:
route add 192.168.3.0 mask 255.255.255.0 192.168.1.103 where 103 is the ip of the workstation.
Now I need to ping those devices from a different subnet. How do I do that?
I need to ping from subnet 2.0. This subnet has the gateway 192.168.2.1. The other interface of the router is 192.168.1.30. That's how subnet 2.0 reaches resources (files, internet). Is this considered next hop routing?
How can I ping a device in the 3.0 subnet from 192.168.2.87 for example?
Any help would be appreciated.