From: Kevin Sanders (kevin@TorreyPinesCA.ncr.com)
Date: 07/28/93


From: kevin@TorreyPinesCA.ncr.com (Kevin Sanders)
Subject: Re: route command fails when using slip
Date: Wed, 28 Jul 1993 17:46:17 GMT

Thanks for the info, I (almost) have it working now. The proper usage
seems to be to leave the interface *out* of the command line, and it
will pick the proper one based upon the IP address which is given to the
interface by ifconfig. I.e, i modified dip's attach.c to do:

           ifconfig sl0 my-ip-address pointopoint gateway-ip-address [other opts]
           route add default gw gateway-ip-address

This seems to work for me.

I was having another problem also, this may need to be in the NET-2 FAQ,
if your service provider's gateway is on a different network than your
IP address would indicate, i.e., no bits are in common between your IP address
and your SLIP gateway's IP address, you must use the netmask option to
ifconfig, giving netmask 0.0.0.0. Otherwise route will fail and tell you
the network is unreachable.

Alas, I am still having problems--I was able to ftp to tsx-11 and get a
directory listing but when I tried to download a file everything stopped.
ifconfig showed interfaces up, netstat showed connection alive, but the
network was unusable, i.e., no data flowing in or out of the SLIP line.
I'm not sure if it was a random event or if it was induced by attempting
to start an ftp download (which opens a separate data connection). I think
it must have been random, because I was able to get a directory listing
through FTP and that uses a separate connection also.

-- 
[]  []  [][]    [][]    Kevin Sanders, KN6FQ                 NCR Torrey Pines
[] []   [] []  []       kevin.sanders@torreypinesca.ncr.com    (619) 597-3602
[][]    [][]    [][]    kevin%beacons@cyber.net
[] []   [] []      []   
[]  []  []  []  [][]    Dump MS-DOS.   Prevent Programmer Burnout with Linux.