From owner-freebsd-net@FreeBSD.ORG Mon Nov 15 17:28:29 2004 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4679416A4CE; Mon, 15 Nov 2004 17:28:29 +0000 (GMT) Received: from ptcnat.era.pl (ptcnat.era.pl [213.158.197.100]) by mx1.FreeBSD.org (Postfix) with ESMTP id BBA0143D46; Mon, 15 Nov 2004 17:28:28 +0000 (GMT) (envelope-from zaks@era.pl) Received: by localhost (Postfix, from userid 1001) id 3E28911445; Mon, 15 Nov 2004 18:28:26 +0100 (CET) From: =?iso-8859-2?Q?S=B3awek_=AFak?= To: net@freebsd.org, current@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Message-Id: <20041115172826.3E28911445@localhost> Date: Mon, 15 Nov 2004 18:28:26 +0100 (CET) Subject: route add -host ... -iface issues X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 15 Nov 2004 17:28:29 -0000 Hi, I'd like to ask why a static arp entry is added when direct route to host is added like this? route add -host target -iface interface The route(8) manpage says, that such route entry is for hosts directly reachable over interface. But when packets go out on this interface, the MAC address of target host in each packet is set to local MAC for the interface, which effectively stops the target host from receiving the packet. Another thing is the order of adding routes in /etc/rc.d/routing of FreeBSD 5.3. The default gateway is added *before* other static routes are setup. Sometimes the default router is unreachable before other static routes are set configured. Is there any reason to not change the line: static_routes="default ${static_routes}" to: static_routes="${static_routes} default" ? /S