Return to BSD News archive
Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!munnari.OZ.AU!news.ecn.uoknor.edu!feed1.news.erols.com!worldnet.att.net!news.mathworks.com!fu-berlin.de!irz401!orion.sax.de!uriah.heep!news From: j@uriah.heep.sax.de (J Wunsch) Newsgroups: comp.unix.bsd.freebsd.misc Subject: Re: route add xxx: kernel panic Date: 5 Jan 1997 17:08:04 GMT Organization: Private BSD site, Dresden Lines: 45 Message-ID: <5aon5k$8lr@uriah.heep.sax.de> References: <5abl7h$321@cayman.priconet.de> <5ackve$d4o@atlas.uniserve.com> <5amq0o$of8@cayman.priconet.de> Reply-To: joerg_wunsch@uriah.heep.sax.de (Joerg Wunsch) NNTP-Posting-Host: localhost.heep.sax.de Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Newsreader: knews 0.9.6 X-Phone: +49-351-2012 669 X-PGP-Fingerprint: DC 47 E6 E4 FF A6 E9 8F 93 21 E0 7D F9 12 D6 4E Xref: euryale.cc.adfa.oz.au comp.unix.bsd.freebsd.misc:33597 marc@cayman.priconet.de (Marc Zimmermann) wrote: > > Don't use the -link param. Just specifiy the gateway > > address instead. > > Firstly, this doesn't do what I want, and secondly, this is a severe > bug. You don't want to "disable" it by not using the command that > causes it, right? This has been fixed, either intentionally, or as a side-effect from some other routing code change: # uname -sr FreeBSD 3.0-CURRENT # netstat -rn Routing tables Internet: Destination Gateway Flags Refs Use Netif Expire 127.0.0.1 127.0.0.1 UH 0 0 lo0 192.168 link#1 UC 0 0 192.168.0.1 0:a0:24:55:7a:c3 UHLW 5 3217 ed0 1136 # route add -host 172.16.1.1 -link 1 writing to routing socket: Network is unreachable add host 172.16.1.1: gateway 1: Network is unreachable (No crash.) > Besides, I am really interested in letting FreeBSD ARP for a host not > on the same subnet. Letting it ARP for hosts in a subnet (with the > corresponding route add) works well. However, using host routes, it > doesn't work. I can't believe it's plain impossible... It seems it is. ARP is IMHO defined to happen on the local (sub)net, nowhere else. You can use alias IP addresses if you need to address more than a single subnet. That's what they are for (their abuse as `virtual hosting' is only a modern artifact arising from Webland's requirements). -- cheers, J"org joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/ -- NIC: JW11-RIPE Never trust an operating system you don't have sources for. ;-)