Subject: traceroute lameness (c.f. bin/4427)
To: None <current-users@NetBSD.ORG>
From: Dave Huang <khym@bga.com>
List: current-users
Date: 12/05/1997 02:33:29
So, is anyone looking at PR 4427? It's annoying to have to use the -i,
and it doesn't seem to work right anyways. For example, I have a
machine on a local ethernet (ne0, 10.1.1.64/28), and two PPP
connections, ppp1 to 130.210.0.0/16, and ppp0 to the rest of the
internet.

If I traceroute any site not on my ethernet, I get:
traceroute: Warning: Multiple interfaces found; using 10.1.1.67 @ ne0
traceroute to bga.com (205.238.128.40), 30 hops max, 40 byte packets
traceroute: sendto: No route to host

Okay, so I do traceroute -i ppp0, and everything works. But say I want
to see how things look going through ppp1... I traceroute -i ppp1, but
I get the identical output to traceroute -i ppp0. It's using the
default route I have set up, instead of the interface I tell it to
use. And if I traceroute -i ppp0 <some address in 130.210>, it goes
through ppp1.

If I specify the -i flag, the routes I have override it, and when I
want traceroute to pick the appropriate interface using the routing
tables, it uses first interface it finds instead.

That's, like, so lame :P

netstat -i:
Name  Mtu   Network       Address              Ipkts Ierrs    Opkts Oerrs  Coll
ne0   1500  <Link>        00:00:24:22:dc:f9   773106    18   454785     0   619
ne0   1500  10.1.1.64/28  10.1.1.67           773106    18   454785     0   619
lo0   32976 <Link>                              2087     0     2087     0     0
lo0   32976 127           127.0.0.1             2087     0     2087     0     0
ppp0  1524  <Link>                            374877     2   344899   147     0
ppp0  1524  205.238.160   205.238.160.218     374877     2   344899   147     0
ppp1  1500  <Link>                             29381     0    25118     0     0
ppp1  1500  130.210       130.210.252.49       29381     0    25118     0     0

netstat -r:
Destination        Gateway            Flags     Refs     Use    Mtu  Interface
default            205.238.128.23     UG          2     4882      -  ppp0
10.1.1.64/28       link#1             UC          0        0      -  ne0
10.1.1.66          00:a0:24:01:de:fa  UHL         4   432507      -  ne0
10.1.1.67          00:00:24:22:dc:f9  UHL         1       56      -  lo0
10.1.1.68          08:00:07:06:39:ef  UHL         1     7539      -  ne0
10.1.1.79          link#1             UHL         1     1812      -  ne0
127.0.0.1          127.0.0.1          UH          2     1748      -  lo0
130.210            130.210.252.254    UGS         0    15606      -  ppp1
130.210.252.254    130.210.252.49     UH          1        0      -  ppp1
205.238.128.23     205.238.160.218    UH          1        0      -  ppp0

Name: Dave Huang     |   Mammal, mammal / their names are called /
INet: khym@bga.com   |   they raise a paw / the bat, the cat /
FurryMUCK: Dahan     |   dolphin and dog / koala bear and hog -- TMBG
Dahan: Hani G Y+C 22 Y++ L+++ W- C++ T++ A+ E+ S++ V++ F- Q+++ P+ B+ PA+ PL++