Date: Sat, 15 Oct 2005 16:10:54 +1000 From: Bob Hepple <bhepple@freeshell.org> To: freebsd-questions@freebsd.org Subject: Re: FreeBSD routing Message-ID: <20051015161054.37d56e8b.bhepple@freeshell.org> In-Reply-To: <43507EB9.306@cs.tu-berlin.de> References: <20051015092747.008bf142.bhepple@freeshell.org> <43507EB9.306@cs.tu-berlin.de>
next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, 15 Oct 2005 05:59:53 +0200 Bj=F6rn K=F6nig <bkoenig@cs.tu-berlin.de> wrote: > Bob Hepple wrote: > > [...] > > I just want to add an arbitrary machine (eg. with IP 192.168.2.214) to = my > > home network 192.168.254.0/24. Under Linux I just do a=20 > >=20 > > route add -host 192.168.2.214 eth0 > >=20 > > and I can ping it. > >=20 > > On FreeBSD I tried both > >=20 > > route add -host 192.168.2.214 192.168.254.245 > > route add -host 192.168.2.214 -interface rl0 > >=20 > > but I'm getting some kind of redirect loop. Apparently my use of the > > FreeBSD route command is wrong. > > =20 > Hello Bob, >=20 > welcome to FreeBSD. >=20 > I won't expect that this will work at all, even not with Linux, because=20 > the IP 192.168.254.245 and 192.168.2.214 are of different subnets.=20 > Either you use 192.168.254.0/24 or 192.168.2.0/24 in the 10baseT net,=20 > but not both. I don't know if Linux makes it possible to do this; I=20 > haven't tried it yet. At least I can reproduce your error message with a= =20 > similar setup. Just assign the IP 192.168.2.245 to rl0 for example; then= =20 > it should work without problems. >=20 > Regards > Bj=F6rn Hi Bj=F6rn I know it looks a bit odd, but Linux is perfectly happy with it. I've relied on it every day for the last 6 years or so.=20 The reason I'm doing it this way is that I have machines at work on the 192.168.2.0/24 network that I access from home over openvpn. So I can't grab 192.168.2 at home. But I always bring home one of many different machines - they're already configured to 192.168.2.214. It's so convenient to be able to access all of 192.168.2 over openvpn _except_ for the one machine 192.168.2.214. It's just a bit of a fag to re-configure each machine for home use - particularly as it could be freebsd, linux (x 4 distros), Solaris, AIX, SCO OS5, SCO UW7, HPUX etc etc and they all configure in different ways. Oh well. Thanks very much for confirming it - at least I can stop scouring the man pages & google - I learned a lot on the way. I must say I like FreeBSD very much - very stable drivers compared to Linux whose wifi drivers seem to hang the system quite a lot. That's the main reason I'm trying to make the move to FreeBSD - my wifi connection goes about twice as fast (4-5 Mbps on FreeBSD vs 1-2 Mbps with Linux) and is _much_ more stable. Bob --=20 Bob Hepple mailto:bhepple@freeshell.org http://bhepple.freeshell.org Public Key: http://bhepple.freeshell.org/public_keys.txt
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20051015161054.37d56e8b.bhepple>