From owner-freebsd-bugs Tue Dec 5 15:30: 6 2000 From owner-freebsd-bugs@FreeBSD.ORG Tue Dec 5 15:30:04 2000 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 7089A37B401 for ; Tue, 5 Dec 2000 15:30:04 -0800 (PST) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.1/8.11.1) id eB5NU4f55326; Tue, 5 Dec 2000 15:30:04 -0800 (PST) (envelope-from gnats) Date: Tue, 5 Dec 2000 15:30:04 -0800 (PST) Message-Id: <200012052330.eB5NU4f55326@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org Cc: From: Thomas Moestl Subject: Re: misc/23118: static link-level route bug Reply-To: Thomas Moestl Sender: gnats@FreeBSD.org Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org The following reply was made to PR misc/23118; it has been noted by GNATS. From: Thomas Moestl To: freebsd-gnats-submit@FreeBSD.org Cc: seraf@2600.com Subject: Re: misc/23118: static link-level route bug Date: Wed, 6 Dec 2000 00:24:03 +0100 > >Number: 23118 > >Category: misc > >Synopsis: static link-level route bug? > >Confidential: no > >Severity: non-critical > >Priority: low > >Responsible: freebsd-bugs > >State: open > >Quarter: > >Keywords: > >Date-Required: > >Class: sw-bug > >Submitter-Id: current-users > >Arrival-Date: Sun Nov 26 12:50:01 PST 2000 > >Closed-Date: > >Last-Modified: > >Originator: Dominick LaTrappe > >Release: 4.1-20001102-STABLE > >Organization: > >Description: > I add a static link-level route with route(8), and when I look it up with > netstat(8), the first octet of the ARP address is missing. Once this routing > table entry is in place, the destination becomes unreachable, and the "use" > flag on the entry never increments. > >How-To-Repeat: > # route add -host 10.20.30.40 -link 0:a:b:c:d:e -iface fxp0 -static This is wrong: -iface does _not_ take an argument (fxp0 is interpretated as netmask here!). Also, a link address has to be specified with a leading separator if you do not specify an interface at the start (see linkaddr(3); this is not documented in route(8)!). The correct call would be: route add -host 10.20.30.40 -link :0:a:b:c:d:e -iface -static or, if you explicitely want to use fxp0 route add -host 10.20.30.40 -link fxp0:0:a:b:c:d:e -iface -static HTH, - thomas To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message