On Fri, 30 Mar 2007, in the Usenet newsgroup comp.os.linux.questions, in article
Post by ***** charlesExcellent post. I have always thought that keeping the two physical
lans on one segment was the easiest but maybe not.
Two LANs located in two different buildings. Obviously it also depends
on how many boxes are on each segment. We keep them separated because of
security and administrative reasons, but we're using /22 subnets too.
This facility has multiple subnets in each building, and we've got five
buildings right here, with plans/space for two more.
Post by ***** charlesOnly one of the lans has an Internet connection. Let's call them shop
and home. The shop has the Internet connection and the home does not.
The only way home gets on the Internet is through the shops' link.
OK
Post by ***** charlesThe situation you discribe makes the two wireless boxes not only
connections but routers too. A lan can have only one external link or
gateway address not like dns which can be set up as primary and
secondary.
News to me - we've been running at least three routers on every sub-net
for at least 23 years. What you are thinking is that you can't have two
or more gateways leading to the same place with the same metric - unless
you are using a routing daemon like gated or routed, or you are using a
policy based routing setup using '/sbin/ip' in place of '/sbin/route'.
(Yes, I have been a network admin for over 20 years, and using IP even
longer.) For a simple setup here, I'd use this on the hosts in the shop:
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.0.0 0.0.0.0 255.255.255.0 U 0 0 95017 eth0
192.168.1.0 192.168.0.254 255.255.255.0 UG 0 0 430 eth0
0.0.0.0 192.168.0.1 0.0.0.0 UG 0 0 1788 eth0
which says "192.168.0.0/24 is local, 192.168.1.0/24 is reachable through
192.168.0.254, and everything else (the default) is through 192.168.0.1.
Notice, there is no ambiguity here - no multiple links to the same place.
On the house side, you _could_ do the same thing with suitable substitutes,
but seeing as how there's only one way out of the house to _anywhere_ you
could reduce it to
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 95017 eth0
0.0.0.0 192.168.1.254 0.0.0.0 UG 0 0 1788 eth0
which says 192.168.1.0/24 is local, and everything else (which includes
work) is reachable through the default router 192.168.1.254. Because the
'work' wireless box has to have a default route, it would now look like
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.0.0 0.0.0.0 255.255.255.0 U 0 0 95017 eth0
192.168.4.44 0.0.0.0 255.255.255.255 UH 0 0 16 eth1
192.168.1.0 192.168.4.44 255.255.255.0 UG 0 0 430 eth1
0.0.0.0 192.168.0.1 0.0.0.0 UG 0 0 1788 eth0
which is the same as a work host with the addition of the host link,
whereas the home wireless box would just be
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 95017 eth0
192.168.3.33 0.0.0.0 255.255.255.255 UH 0 0 16 eth1
0.0.0.0 192.168.3.33 0.0.0.0 UG 0 0 1788 eth1
Minor less secure than the independent defaults out from each end, but
that's why you encrypt the wireless link.
Post by ***** charlesThe link to the Interet is a 3MBs dsl line. So far the 802.11b link between
the lans has seemed to work ok, it's not the bottleneck. I had thought of
doing something with the new 802.11n spec but that would just be overkill.
Only reason I'd go to newer gear is if the current gear has no, or very
little (WEP) security.
Post by ***** charlesThe current setup goes dead when the temp goes below freezing so I would
like to put a wireless card in each computer and run an antenna to the top
of the poles so weather won't affect the solution.
See Jeff Liebermann over in alt.internet.wireless. Sixty foot of really
good cable is going to cost you mucho bucks, is lossy (meaning you need
a bigger antenna to make up for the extra loss) and can be a severe pain
in the a$$ to maintain if any moisture is involved. This is not the
solution you are looking for.
Hmmm, SWBell is cryptic with their netblock names, but where in Texas
does it get below freezing and _doesn't_ have a high temperature problem
the rest of the year? If it's only a cold problem, I'd stick the link in
a NEMA 4X box with an inch or two of polystyrene to act as a thermal
insulation. The link device should generate enough heat to keep it's
footies nice and toasty. But I'd actually expect a hot problem rather than
cold.
Post by ***** charlesThe next problem is to find hardware like that which will will work with
OBSD, the drivers. A 802.11g card would be fine if I could get the
antenna setup correctly.
Jeff is primarily windoze, but he also does Linux - I don't know that he
does *BSD and for a built-in card, that's going to be a big problem. That
is the reason everyone sticks the RF stuff remotely, and runs Ethernet
between the RF and computing. Severe less hassle about drivers, cable
loss and the like, at the tradeoff of having the electronics up on the
tower somewhere with the resulting temperature/weather problems. None the
less, he does this crap for a living (in Santa Cruz, CA) and knows what
evil is hidden under the rocks.
Old guy