*BSD News Article 30112


Return to BSD News archive

Path: sserve!newshost.anu.edu.au!harbinger.cc.monash.edu.au!msuinfo!agate!cory.EECS.Berkeley.EDU!alanp
From: alanp@cory.EECS.Berkeley.EDU (Alan Pearson)
Newsgroups: comp.os.386bsd.questions
Subject: SLIP b/w 2 NetBSD machines w/ NULL modem?
Date: 6 May 1994 20:32:29 GMT
Organization: University of California, Berkeley
Lines: 55
Message-ID: <2qe9gt$mel@agate.berkeley.edu>
NNTP-Posting-Host: cory-138.eecs.berkeley.edu

My roommate just installed NetBSD on his computer.  Now we've got 2 machines
in the house running NetBSD.  At this point, SLIP would be cool.

I read the FAQ that tells about how to set up slip.hosts and an account with
sliplogin as the shell.  It says that sliplogin will invoke /etc/slip.login
with parameters it gets from slip.hosts.  Ok, but I don't have a slip.login
file.  I've tried to create my own, but it's not working.  I have been able 
to do the sliplogin, and run slattach, ifconfig, then route on my roommate's
machine.  Then I have been able to ping my computer (by ip address only,
hostname lookup doesn't fly), but telnet or anything else that uses TCP/IP
doesn't work.  I've seen a lot of people who have been in this situation with
slip.  They can connect and send ICMP packets (like ping) but not TCP/IP.
What's up with this?

I think my slip.login isn't right yet. Here's the file:

rm -f /tmp/slip.out
echo $* > /tmp/slip.out

slattach -c -s $2 /dev/ttyr0

ifconfig sl$1 inet $4 $5 metric 1 
ifconfig sl$1 up

route add default $5 -hopcount 1

exit 0


I print the parameters to /tmp/slip.out to verify that I am using the right
ones in the right places.  It also proves to me that the file is actually
executing when /tmp/slip.out gets created, which wasn't even happening at
first.

My question(s):  Do I run slattach from slip.login?  I tried taking this out,
but that wasn't any better.  Do either of the machines need to have their 
kernels compiled with the GATEWAY option?  What about name lookup.  When 
not connected, my machine can lookup localhost and its own name from
/etc/hosts, but once I connect, this doesn't work.  Neither of the computers
are running named, because I haven't been able to figure out how to set up
the named database files (that is REAL CONFUSING stuff.)  Finally, the machines
are connected with a 25' serial cable, both ports have 8250 UARTs, not
fast 16550's.  I am trying to connect at 9600, b/c I doubt that a cable that 
long with slow UARTs can do better.  Is 19200 possible here?  Or is 9600 too
ambitious?

Can anyone send me a prototype for a working slip.login script?  I checked
some of the slip/cslip distributions but couldn't find an example file.

thanks. alan.

-- 
alan pearson

alanp@cory.eecs.berkeley.edu                                 UC Berkeley EECS