Bug 26166

Summary: Inserting a route to a specific interface on local network is a problem
Product: Base System Reporter: gh <gh>
Component: miscAssignee: freebsd-bugs (Nobody) <bugs>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Unspecified   
Hardware: Any   
OS: Any   

Description gh 2001-03-28 09:50:01 UTC
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

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
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)
Comment 1 Garrett A. Wollman 2001-03-28 19:45:02 UTC
<<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
Comment 2 Garrett Wollman freebsd_committer freebsd_triage 2001-03-28 20:00:46 UTC
State Changed
From-To: open->closed

The requested feature already exists (see audit trail).