Subject: i386 stuff and defaultroute wierdness
To: None <port-i386@NetBSD.ORG>
From: Jasper Wallace <jasper@ivision.co.uk>
List: port-i386
Date: 01/13/1998 10:47:44
Firstly I want to thank everyone that was invilved in producing 1.3 - the
isapnp stuff clears up some major headaches and it's nice to be able to
run the same os on a Risc PC, SS1 and a 486.
The 486 in question is inteded to act as a gateway via a ppp dialup and
IPNAT to the 'net for the rest of the boxes here, and although ppp connects,
it refuses to run with the ethernet interface ifconfig'd up at the same
time:
[ne0 and ne2 are the same card - found with both the isa and isapnp, since
this script i've compiled a custom kernel and reconfig'd the card - it now
only appears on ne0 - i still get the default route problem tho.]
Script started on Sat Feb 7 13:52:47 1998
fish# netstat -rn
Routing tables
Internet:
Destination Gateway Flags Refs Use Mtu Interface
10/24 link#2 UC 0 0 - ne2
10.0.0.40 00:00:a4:10:3a:b0 UHL 0 18 - ne2
10.0.0.41 00:20:18:70:b5:13 UHL 0 24 - lo0
10.0.0.255 link#2 UHL 1 41 - ne2
127.0.0.1 127.0.0.1 UH 1 16 - lo0
fish# ./pppd.connect
[ppp connects]
fish# netstat -rn
Routing tables
Internet:
Destination Gateway Flags Refs Use Mtu Interface
default 158.43.121.20 UG 0 1 - ppp0
10/24 link#2 UC 0 0 - ne2
10.0.0.40 00:00:a4:10:3a:b0 UHL 0 9 - ne2
10.0.0.41 00:20:18:70:b5:13 UHL 0 24 - lo0
10.0.0.255 link#2 UHL 1 40 - ne2
127.0.0.1 127.0.0.1 UH 1 16 - lo0
158.43.121.20 193.130.251.89 UH 1 0 - ppp0
[other protocols snipped]
fish# traceroute 194.154.62.72
traceroute: Warning: Multiple interfaces found; using 10.0.0.41 @ ne2
traceroute to 194.154.62.72 (194.154.62.72), 30 hops max, 40 byte packets
1 *^C
fish# ifconfig -a
ne0: flags=8822<BROADCAST,NOTRAILERS,SIMPLEX,MULTICAST> mtu 1500
address: 00:20:18:70:b5:13
media: manual
ne2: flags=8863<UP,BROADCAST,NOTRAILERS,RUNNING,SIMPLEX,MULTICAST> mtu 1500
address: 00:20:18:70:b5:13
media: manual
inet 10.0.0.41 netmask 0xffffff00 broadcast 10.0.0.255
lo0: flags=8009<UP,LOOPBACK,MULTICAST> mtu 32976
inet 127.0.0.1 netmask 0xff000000
ppp0: flags=8051<UP,POINTOPOINT,RUNNING,MULTICAST> mtu 1500
inet 193.130.251.89 --> 158.43.121.20 netmask 0xffffff00
ppp1: flags=8010<POINTOPOINT,MULTICAST> mtu 1500
[...]
fish# ifconfig ne2 down
fish# !net
netstat -rn
Routing tables
Internet:
Destination Gateway Flags Refs Use Mtu Interface
default 158.43.121.20 UG 0 3 - ppp0
10/24 link#2 UC 0 0 - ne2
10.0.0.40 00:00:a4:10:3a:b0 UHL 0 9 - ne2
10.0.0.41 00:20:18:70:b5:13 UHL 0 24 - lo0
10.0.0.255 link#2 UHL 1 40 - ne2
127.0.0.1 127.0.0.1 UH 1 16 - lo0
158.43.121.20 193.130.251.89 UH 1 0 - ppp0
[...]
fish# !tra
traceroute 194.154.62.72
traceroute to 194.154.62.72 (194.154.62.72), 30 hops max, 40 byte packets
1 vp20.lon.dial.pipex.net (158.43.121.20) 266.072 ms 257.409 ms 257.063 ms
2 fddi2-0.gw2.msn.pipex.net (158.43.121.254) 264.750 ms 263.956 ms 260.577 ms
3 fddi5-0-0.cr1.doc.london.pipex.net (158.43.198.1) 261.007 ms 252.026 ms 257.443 ms
4 fddi0-0-0.br2.doc.london.pipex.net (158.43.195.4) 263.457 ms 253.302 ms 255.202 ms
5 linx-gw.vbc.net (194.68.130.55) 262.392 ms 409.523 ms 280.937 ms
6 gate1.uk0.vbc.net (194.207.0.32) 263.474 ms 257.617 ms 272.347 ms
7 ivision-gw.uk0.vbc.net (194.207.1.2) 273.312 ms 354.574 ms 319.170 ms
8 * xfiles.ivision.co.uk (195.50.91.3) 264.758 ms 270.087 ms
9 stingray.ivision.co.uk (195.50.91.40) 284.327 ms 285.830 ms *
fish#
so even tho the routing tables point the default route out of the ppp
connection the packets try to go out of the ethernet...
I just don't understand why it's doing this - here's the ppp connect script
#!/bin/sh
/usr/sbin/pppd /dev/modem 19200 connect '/usr/sbin/chat -v "" "" "" "ATZ" "OK" "12345678990" "CONNECT" "" "ogin:" "zzzz" "assword:" "xxxxx" "rotocol:" "ppp"' debug defaultroute
--
They were so ignorant! Young men and women, educated very carefully to
be apolitical, to be technicians who thought they disliked politics, making
them putty in the hands of their rulers, just like always.
- Frank Chalmers in Kim Stanley Robinson's "Red Mars".