Re: How to access hosts in other subnet
- From: Damiano Fasoli <damianofasoli@xxxxxxxxx>
- Date: Tue, 29 Jul 2008 20:55:14 GMT
Basically, you need to know HOW to reach them, i.e. which gateway/router
(see phisical connections) you have to contact; it must be a host with an
address 192.168.3.x and two network cards!
If you don't go to Internet from your Linux machine, perhaps
you have simply to change the gateway to the router LAN IP, and you'll have
both the access to Internet and to your private subnetworks.
Otherwise your gateway is OK and you'll have to setup static routes for
those destinations; so you can use your gateway for Internet Access again.
So, for example, if you can reach 192.168.4.10 via 192.168.3.50
set up a static route as root with
route add -host 192.168.4.10/32 gw 192.168.3.50
Again,
route add -host 192.168.5.11/32 gw 192.168.3.50
if the gateway is the same,
then
route add -host 192.168.10.12/32 gw 192.168.3.50
if the gateway is the same,
and to finish
route add -net 192.168.0.0/16 gw 192.168.3.50
if the gateway is the same.
If you need a permanent configuration you have to set up startup files
accordingly to your linux distribution for static routes in a similar
manner.
Regards
Dam
lovecreatesbea...@xxxxxxxxx wrote:
My Linux machine is assigned the following network setting:
address 192.168.3.101
gateway 192.168.3.101
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?
.
- References:
- How to access hosts in other subnet
- From: lovecreatesbea...@xxxxxxxxx
- How to access hosts in other subnet
- Prev by Date: Re: How to access hosts in other subnet
- Next by Date: Need to buy a new wireless USB adapter, but which one to get?
- Previous by thread: Re: How to access hosts in other subnet
- Next by thread: Software Package Free! ... about our Free Software
- Index(es):
Relevant Pages
|