Date: Wed, 19 Oct 2005 12:52:22 +1000 From: Richard Burakowski <richard.burakowski@mrburak.net> To: freebsd-questions@freebsd.org Subject: Re: FreeBSD routing Message-ID: <4355B4E6.3060902@mrburak.net> In-Reply-To: <20051018034758.7d76401e.bhepple@freeshell.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>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4355B4E6.3060902>