Re: How to access hosts in other subnet



"lovecreatesbea...@xxxxxxxxx" <lovecreatesbeauty@xxxxxxxxx> writes:

My Linux machine is assigned the following network setting:

address 192.168.3.101
gateway 192.168.3.1 (per your followup -- jjp)
netmask 255.255.255.0

But I need to access hosts reside in other subnetworks

address 192.168.4.10
address 192.168.5.11
address 192.168.10.12

(address 192.168.x.x etc.)

Before I assigned more IP adresses for my machine to access those
hosts. Can I use a proper netmask with only single IP address to do
so?

If your gateway is properly configured, it ought to be working. Your
packets should be going to the gateway, and the gateway should be
sending it on to one of the other segments as appropriate.

If it's all on the same network segment (your mentioning more IP
addresses implies that), then using a netmask of 255.255.0.0 should do
it -- but the other machines on the network may not be able to answer
if they've got a 255.255.255.0 netmask.

.



Relevant Pages