Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 8 Dec 1998 07:00:08 -0800 (PST)
From:      sa@kki.org
To:        freebsd-gnats-submit@FreeBSD.ORG
Subject:   bin/9012: route add -host hostIP -interface localIP doesn't work
Message-ID:  <199812081500.HAA02592@hub.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         9012
>Category:       bin
>Synopsis:       route add -host hostIP -interface localIP doesn't work
>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:   Tue Dec  8 07:10:00 PST 1998
>Last-Modified:
>Originator:     Sven Anderson
>Organization:
University Goettingen
>Release:        2.2.8
>Environment:
FreeBSD stoffel.cweg.goe.net 2.2.8-RELEASE FreeBSD 2.2.8-RELEASE #0: Thu Dec  3 00:51:44 CET 1998     root@stoffel.cweg.goe.net:/usr/src/sys/compile/STOFFEL  i386

>Description:
a) If you set a route to a locally connected host with
route add -host hostIP -interface localIP
the route is set, but dosn't work. The man-page says it should work.
I guess it is the wrong type of route (UHS) which is set, and it should
be a link#X type of route (UHCS). Either this option combination 
shouldn't be possible or it should work.
b) If you use the -interface option with a devicename, the gateway ist set
to the ether-address of the local device and not of the destination host.
You then have to set the correct ether-address with the arp -s command.

>How-To-Repeat:
a) Type:
route add -host hostIP -interface localIP
where hostIP is the IP of any host in your local network and localIP
is the IP of your network interface. After that the host is not
reachable anymore.
b) Type:
route add -host hostIP -interface devicename
where hostIP is the IP of any host in your local network and devicename
is the name of your ethernet-device. After that the host is not
reachable anymore, until you set the correct ether-address with the
arp -s command.
>Fix:

>Audit-Trail:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199812081500.HAA02592>