Re: How to access hosts in other subnet



On Jul 29, 12:26 pm, Ronald Nissley <rnissley+use...@xxxxxxxxx> wrote:
On Mon, 28 Jul 2008 19:05:53 -0700, lovecreatesbea...@xxxxxxxxx wrote:
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?

There is no "magical" netmask that will allow you to connect to these
other subnets. You need routes to get to these networks. For example, if
another system with IP address 192.168.3.5 has a second interface with
the address 192.168.4.1 assigned (and routes between the two networks),
then you would do something like:

# route add -net 192.168.4.0 netmask 255.255.255.0 gw 192.168.3.5

to be able to talk to systems on the 192.168.4.0/24 network.

What's the ``24'' at the end of that address.

If you run a DHCP server (not the simple DHCP server option on a home-
class router) on your network, check if it handles a classless static
route option (scope option 249 on Microsoft's DHCP server). This option
can ease administration by letting DHCP configure client routing tables.
From my brief research on this, it's not clear, but I think only some
Microsoft DHCP clients (XP, Windows 2003) support this option. ISC's DHCP
Client doesn't appear to support this option, however, ISC's DHCP Server
can support this option. You would need to define it.

http://lists.freebsd.org/pipermail/freebsd-questions/2005-
December/107071.html

You can also try to have routes automatically added when interfaces are
brought "up".

http://listas.softwarelibre.cu/pipermail/linux-l/2004-July/038063.html

Thank you, Ron. I'll try your suggestion.
.



Relevant Pages

  • Re: How to access hosts in other subnet
    ... Can I use a proper netmask with only single IP address to do so? ... You need routes to get to these networks. ... If you run a DHCP server (not the simple DHCP server option on a home- ...
    (comp.os.linux.networking)
  • Re: Static Routes via DHCP - How to do?
    ... > I use 4 networks in total: ... > default-gateway via dhcp. ... > I look now for something, where i can add static routes to the ... AND the routes for the other ...
    (Fedora)
  • Re: How to access hosts in other subnet
    ... hosts. ... Can I use a proper netmask with only single IP address to do so? ... You need routes to get to these networks. ...
    (comp.os.linux.networking)
  • Static Routes via DHCP - How to do?
    ... I use 4 networks in total: ... default-gateway via dhcp. ... where i can add static routes to the ... getting all the routes via dhcp? ...
    (Fedora)
  • Re: 2 DHCP
    ... you can not run 2 different subnets in one physical network with DHCP. ... Separate them physical or with VLAN's on the switch, if it is capable of it. ... I still can not understand the reason for connecting both DHCP servers together. ... In one physical LAN you can not separate the networks. ...
    (microsoft.public.windows.server.migration)