Return to BSD News archive
Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!news.mel.connect.com.au!munnari.OZ.AU!news.ecn.uoknor.edu!solace!nntp.se.dataphone.net!nntp.uio.no!newsfeed.nacamar.de!dispatch.news.demon.net!demon!awfulhak.demon.co.uk!awfulhak.demon.co.uk!not-for-mail
From: brian@awfulhak.demon.co.uk (Brian Somers)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: IJPPP routing oddity
Date: 13 Apr 1997 21:26:40 GMT
Organization: Awfulhak Limited.
Message-ID: <5irj2g$m8e$1@awfulhak.demon.co.uk>
References: <334FD075.167EB0E7@rwwa.com>
NNTP-Posting-Host: awfulhak.lan.awfulhak.org
X-NNTP-Posting-Host: awfulhak.demon.co.uk
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Newsreader: knews 0.9.8
Cc: brian@awfulhak.org
Lines: 46
Xref: euryale.cc.adfa.oz.au comp.unix.bsd.freebsd.misc:39027
In article <334FD075.167EB0E7@rwwa.com>,
Robert Withrow <witr@rwwa.com> writes:
Robert> I have a dual-homed machine (which is *not* a gateway) that doesn't
Robert> route
Robert> correctly:
Robert>
Robert> Consider the following:
Robert>
Robert> bash$ netstat -nr
Robert> Routing tables
Robert>
Robert> Internet:
Robert> Destination Gateway Flags Refs Use Netif
Robert> Expire
Robert> default 192.233.145.137 UGc 28 557 tun0
Robert> 127.0.0.1 127.0.0.1 UH 1 3206 lo0
Robert> 192.124.97 link#1 UC 0 0
Robert> 192.124.97.10 0:c0:a8:35:ce:95 UHLW 1 40920 lo0
Robert> 192.233.145.137 198.115.177.3 UH 29 10 tun0
Robert> The route to 192.233.145.137 gets installed by the add 0 0
Robert> 192.233.145.137
Robert> in my ppp.conf. In most ways things work well.
Robert>
Robert> *But* a ``ping 198.115.177.3'' (or any traffic directed to that address)
Robert> doesn't work at all.
Unless your line is up :)
Robert> Notice the loopback route to 192.124.97.10? That makes pings to that
Robert> address work. Where did that route get installed? Why isn't there one
Robert> for 198.115.177.3? Am I supposed to install that one myself?
It doesn't "make the address work", it's just there to avoid traffic
to that address going out through the NIC.
It's a fault (IMO). To fix it, add the following lines to
/etc/sysconfig (assuming you've got no other static routes):
static_routes="me"
route_me="198.115.177.3 127.0.0.1"
I'll put it on my list of "things to fix" :) Thanks.
--
Brian <brian@awfulhak.org>, <brian@freebsd.org>
<http://www.awfulhak.org>
Don't _EVER_ lose your sense of humour....