Re: I want to link 2 lans at home

From: patrick (erewhon_at_charter.net)
Date: 05/24/04


Date: Sun, 23 May 2004 23:11:10 -0500

James Knott wrote:
> Ralf Herrmann wrote:
>
>
>>>If you're using static configureation, you can do that. Use a subnet
>>>mask of 255.255.254.0, instead of 255.255.255.0.
>>
>>This is a good idea, if the two subnets shall really be joined into one
>>subnet. But since the net's IP ranges are 192.168.1.X and 192.168.2.X the
>>netmask should be 255.255.252.0 if i'm right.
>>
>
>
> Those firewall/router boxes generally use a sub net mask of 255.255.255.0,
> though some can be configured differently. This provides a range of 256
> addresses (including network and broadcast). To get a range of 512, you
> have to change the least significant bit of the sub net mask. This means
> the octet goes from 255 to 254. Using 252 means you've changed two bits,
> not one.
>
>
To use a mask of /23, the two networks would have to be 192.168.0/24 and
192.168.1/24. So that for the original poster to add the two networks
192.168.1/24 and 192.168.2/24, there must be two bits to include four
networks.

Anyway, if the two linksys' were just routers, just changing the subnet
mask for the pc's will not do the trick. Routers are not bridges, so
each router just needs a route to the other, learned via rip are just
statically configured.

However, this is more complicated because the linksys' are more than
just plain old layer 3 routers. They are firewalls that do pat, so
somehow you must 'expose' the private networks behind them. If you only
want one machine to be reached for a particular service, wins for
example, you can forward the appropriate ports to the server. If you
want every machine to be able to see everything on the other network,
then you will have to create a tunnel. Depending on your model of
linksys, they might have this capability. If not, this can be done with
your linux machines. You can go for a VPN, which would probably be
overkill in the case, or the simplier GRE tunnel. On linux, I have used
freeswan as a point to point VPN with some limited success and I have
not setup a GRE using linux.

You would probably be better off getting rid of one of the routers and
puttin everything on a /22 subnet as discussed previously in the thread.
Also, do yourself a favor and go to DHCP.



Relevant Pages

  • Re: Adding new subnets
    ... We already have routers for the point to point ... connect the 10.1.1.0 and 10.1.4.0 networks. ... >> up a new subnet for that office. ... >> networks to talk to each other I am going to change the subnet mask on our ...
    (microsoft.public.win2000.networking)
  • Re: Subnetting, private networks & default routes
    ... are in remote locations and thus connected by routers. ... If the subnet mask is 255.255.0.0, then they will not send to a router ... Different networks can certainly have different subnet masks. ...
    (comp.dcom.sys.cisco)
  • Re: Will proxy-arp fix this incorrectly subnetted network?
    ... Without moving IP networks or changing subnet masks everywhere. ... Configure the subnet masks and routes correctly on the routers, ...
    (comp.dcom.sys.cisco)
  • Re: Will proxy-arp fix this incorrectly subnetted network?
    ... Without moving IP networks or changing subnet masks everywhere. ... Configure the subnet masks and routes correctly on the routers, ...
    (comp.dcom.sys.cisco)
  • From new-scr
    ... social, biological and computer networks. ... is among those who dismiss the idea that scale-free theory ... having a certain number of connections ... The major data routers will typically have ...
    (soc.culture.romanian)