From owner-freebsd-questions@FreeBSD.ORG Sat Oct 15 04:32:24 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 38F7116A41F for ; Sat, 15 Oct 2005 04:32:24 +0000 (GMT) (envelope-from bkoenig@cs.tu-berlin.de) Received: from efacilitas.de (smtp.efacilitas.de [85.10.196.108]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5561943D55 for ; Sat, 15 Oct 2005 04:32:23 +0000 (GMT) (envelope-from bkoenig@cs.tu-berlin.de) Received: from eurystheus.local (port-212-202-37-245.dynamic.qsc.de [212.202.37.245]) by efacilitas.de (Postfix) with ESMTP id 668114B176; Sat, 15 Oct 2005 06:39:31 +0200 (CEST) Received: from [192.168.1.2] (muhkuh.local [192.168.1.2]) by eurystheus.local (Postfix) with ESMTP id 4B118331FF0; Sat, 15 Oct 2005 05:58:22 +0200 (CEST) Message-ID: <43507EB9.306@cs.tu-berlin.de> Date: Sat, 15 Oct 2005 05:59:53 +0200 From: =?ISO-8859-1?Q?Bj=F6rn_K=F6nig?= User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.7.12) Gecko/20050928 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Bob Hepple References: <20051015092747.008bf142.bhepple@freeshell.org> In-Reply-To: <20051015092747.008bf142.bhepple@freeshell.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit Cc: freebsd-questions@freebsd.org Subject: Re: FreeBSD routing X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 15 Oct 2005 04:32:24 -0000 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 > > route add -host 192.168.2.214 eth0 > > and I can ping it. > > On FreeBSD I tried both > > route add -host 192.168.2.214 192.168.254.245 > route add -host 192.168.2.214 -interface rl0 > > but I'm getting some kind of redirect loop. Apparently my use of the > FreeBSD route command is wrong. > > [...] > > Here's the detail: I'm issuing the "route add" commands on "raita" and > trying to reach "rasam": > > internet > | > router > .192.168.0.1 > . > . wireless > . > .ath0/192.168.0.18 > raita > |rl0/192.168.254.245 > | > -------------------------- 10baseT > | > | > |192.168.2.214 > rasam > > bash-2.05b# ifconfig -a > rl0: flags=8843 mtu 1500 > options=8 > inet 192.168.254.245 netmask 0xffffff00 broadcast 192.168.254.255 > inet6 fe80::201:29ff:fe74:99c2%rl0 prefixlen 64 scopeid 0x1 > ether 00:01:29:74:99:c2 > media: Ethernet autoselect (none) > status: no carrier > ath0: flags=8843 mtu 1500 > inet 192.168.0.18 netmask 0xffffff00 broadcast 192.168.0.255 > inet6 fe80::209:5bff:fee8:b9d2%ath0 prefixlen 64 scopeid 0x3 > ether 00:09:5b:e8:b9:d2 > media: IEEE 802.11 Wireless Ethernet autoselect (OFDM/54Mbps) > status: associated > ssid Baroona 1:Baroona > channel 6 authmode OPEN powersavemode OFF powersavesleep 100 > rtsthreshold 2312 protmode CTS > wepmode MIXED weptxkey 1 > wepkey 1:40-bit > > [...] Hello Bob, welcome to FreeBSD. I won't expect that this will work at all, even not with Linux, because the IP 192.168.254.245 and 192.168.2.214 are of different subnets. Either you use 192.168.254.0/24 or 192.168.2.0/24 in the 10baseT net, but not both. I don't know if Linux makes it possible to do this; I haven't tried it yet. At least I can reproduce your error message with a similar setup. Just assign the IP 192.168.2.245 to rl0 for example; then it should work without problems. Regards Björn