From owner-freebsd-questions@FreeBSD.ORG Wed Oct 19 02:52:35 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 5C0B616A41F for ; Wed, 19 Oct 2005 02:52:35 +0000 (GMT) (envelope-from richard.burakowski@mrburak.net) Received: from mail.mrburak.net (203-217-17-178.perm.iinet.net.au [203.217.17.178]) by mx1.FreeBSD.org (Postfix) with ESMTP id D62BF43D45 for ; Wed, 19 Oct 2005 02:52:34 +0000 (GMT) (envelope-from richard.burakowski@mrburak.net) Received: from [127.0.0.1] (unknown [10.20.0.1]) by mail.mrburak.net (Postfix) with ESMTP id A81DF22820 for ; Wed, 19 Oct 2005 12:52:32 +1000 (EST) Message-ID: <4355B4E6.3060902@mrburak.net> Date: Wed, 19 Oct 2005 12:52:22 +1000 From: Richard Burakowski User-Agent: Mozilla Thunderbird 1.0.7 (Windows/20050923) X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-questions@freebsd.org References: <20051015092747.008bf142.bhepple@freeshell.org> <43507EB9.306@cs.tu-berlin.de> <20051015161054.37d56e8b.bhepple@freeshell.org> <43532C17.6020807@mrburak.net> <20051018034758.7d76401e.bhepple@freeshell.org> In-Reply-To: <20051018034758.7d76401e.bhepple@freeshell.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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: Wed, 19 Oct 2005 02:52:35 -0000 Bob Hepple wrote: >Well, it has to be taught ... eg with a FreeBSD 2.214 I can do this: >route delete default >route add -net 192.168.254.0 -interface xl0 # !!! >route add default 192.168.254.245 >cp /etc/resolv.conf.home /etc/resolv.conf > > well, my turn ... from the man page: If the destination is directly reachable via an interface requiring no intermediary system to act as a gateway, the -interface modifier should be specified; the gateway given is the address of this host on the common network, indicating the interface to be used for transmission. what i've now come to understand hinges on the phrase "address of this host on the common network, indicating the interface to be used for transmission.". note this is not *the* interface. for ethernet, it's the local interface and the destination's mac address. the format of this address is partly described in link_addr(3). route add 192.168.2.214/32 -link -interface rl0:x:x:x:x:x:x if you want the kernel to use arp to find the mac address, you specifically have to tell it to: route add 192.168.2.214/32 -interface rl0 -cloning a giveaway should have been the duplicate mac addresses in your routing tables which we all missed. cheers, richard