From nobody@FreeBSD.org  Wed Mar 28 00:43:30 2001
Return-Path: <nobody@FreeBSD.org>
Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21])
	by hub.freebsd.org (Postfix) with ESMTP id 0A2C437B71B
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 28 Mar 2001 00:43:30 -0800 (PST)
	(envelope-from nobody@FreeBSD.org)
Received: (from nobody@localhost)
	by freefall.freebsd.org (8.11.1/8.11.1) id f2S8hTs59319;
	Wed, 28 Mar 2001 00:43:30 -0800 (PST)
	(envelope-from nobody)
Message-Id: <200103280843.f2S8hTs59319@freefall.freebsd.org>
Date: Wed, 28 Mar 2001 00:43:30 -0800 (PST)
From: gh@raditex.se
To: freebsd-gnats-submit@FreeBSD.org
Subject: Inserting a route to a specific interface on local network is a problem
X-Send-Pr-Version: www-1.0

>Number:         26166
>Category:       misc
>Synopsis:       Inserting a route to a specific interface on local network is a problem
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Mar 28 00:50:01 PST 2001
>Closed-Date:    Wed Mar 28 11:00:46 PST 2001
>Last-Modified:  Wed Mar 28 11:01:52 PST 2001
>Originator:     Gran Hasse
>Release:        FreeBSD 4.2
>Organization:
Raditex AB
>Environment:
FreeBSD merry.sickla.raditex.se 4.2-RELEASE FreeBSD 4.2-RELEASE #14: Mon Feb 26 17:21:15 GMT 2001     root@merry.sickla.raditex.se:/usr/src/sys/compile/MERRY  i386

>Description:
There is a problem to insert a route to a specific interface
on the local network if the route to the net have dissapeard.

There should be a switch to "route" to insert the hardware to
send to

route add 192.168.36.52 -hw 00:80:c8:d3:3c:f4


>How-To-Repeat:
ifconfig vr0 inet 192.158.36.51
ping -c 1 192.168.36.52
route delete 192.168.36.0
ping -c 1 192.168.36.52       (Still works since a entry in route table is there)

>Fix:
ifconfig vr0 inet 192.158.36.51
route delete 192.168.3
ping -c 1 192.168.36.526.0 (don't work)

And there is no way to insert the route to the interface in
the routing table

route add 192.168.36.52 -interface vr0

gives the local ether address in the routing table
(This should be resolved by arp?)

The  net.link.ether.inet.useloopback=0 don't seems to be honored.

GH
>Release-Note:
>Audit-Trail:

From: Garrett Wollman <wollman@khavrinen.lcs.mit.edu>
To: gh@raditex.se
Cc: freebsd-gnats-submit@FreeBSD.ORG
Subject: misc/26166: Inserting a route to a specific interface on local network is a problem
Date: Wed, 28 Mar 2001 13:45:02 -0500 (EST)

 <<On Wed, 28 Mar 2001 00:43:30 -0800 (PST), gh@raditex.se said:
 
 > route add 192.168.36.52 -hw 00:80:c8:d3:3c:f4
 
 # route add 192.168.36.52 -iface -link fxp0:0.80.c8.d3.3c.f4 -llinfo
 add host 192.168.36.52: gateway fxp0:0.80.c8.d3.3c.f4
 # tcpdump -p -w foo ether host 0:80:c8:d3:3c:f4
 tcpdump: listening on fxp0
 ^Z
 # bg
 # ping 192.168.36.52
 PING 192.168.36.52 (192.168.36.52): 56 data bytes
 ^C
 --- 192.168.36.52 ping statistics ---
 3 packets transmitted, 0 packets received, 100% packet loss
 # fg 
 ^C
 268 packets received by filter
 0 packets dropped by kernel
 # tcpdump -ner foo
 13:42:32.527043 0:d0:b7:54:3e:d3 0:80:c8:d3:3c:f4 0800 98: 18.24.4.193 > 192.168.36.52: icmp: echo request
 13:42:33.533677 0:d0:b7:54:3e:d3 0:80:c8:d3:3c:f4 0800 98: 18.24.4.193 > 192.168.36.52: icmp: echo request
 13:42:34.543767 0:d0:b7:54:3e:d3 0:80:c8:d3:3c:f4 0800 98: 18.24.4.193 > 192.168.36.52: icmp: echo request
 
 -GAWollman
 
State-Changed-From-To: open->closed 
State-Changed-By: wollman 
State-Changed-When: Wed Mar 28 11:00:46 PST 2001 
State-Changed-Why:  
The requested feature already exists (see audit trail). 

http://www.freebsd.org/cgi/query-pr.cgi?pr=26166 
>Unformatted:
