Re: How to access hosts in other subnet



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.

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

-Ciao

Ron
.



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. ... can ease administration by letting DHCP configure client routing tables. ...
    (comp.os.linux.networking)
  • 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)
  • Re: How do i reset the ip address in windows xp
    ... Most networks would use DHCP to ... Even small switches ... / routers have DHCP server inbuilt nowadays. ...
    (microsoft.public.access.gettingstarted)
  • Re: dhclient fixed leases
    ... dhcp server. ... I use my notebook to connect to several different networks. ... There was a discussion a few weeks ago, see "Wireless NIC in FreeBSD 6.0", I suggested to try to include a "default" section in the interface section, but the I never got an answer if this worked. ... So 'default option routers 10.0.1.5;' will work only for one and fail for others. ...
    (freebsd-questions)
  • SUN DHCP Server - Bonding Network To Specific Interface
    ... I have installed SUN's DHCP Server ... port ethernet card. ... I am using two of the interfaces on the 4 port ethernet ... DHCP with two networks, one for each of the subnets we are using. ...
    (SunManagers)