From owner-freebsd-hackers Fri Dec 30 06:52:22 1994 Return-Path: hackers-owner Received: (from root@localhost) by freefall.cdrom.com (8.6.9/8.6.6) id GAA19061 for hackers-outgoing; Fri, 30 Dec 1994 06:52:22 -0800 Received: from styx.ibmoto.com (styx.ibmoto.com [129.38.252.14]) by freefall.cdrom.com (8.6.9/8.6.6) with ESMTP id GAA19040; Fri, 30 Dec 1994 06:50:31 -0800 Received: from bartling.ibmoto.com (bartling.ibmoto.com [129.38.33.7]) by styx.ibmoto.com (8.6.9/8.6.9) with ESMTP id IAA11413; Fri, 30 Dec 1994 08:49:21 -0600 From: Steve Bartling Received: (bartling@localhost) by bartling.ibmoto.com (8.6.9/8.6.9) id IAA21177; Fri, 30 Dec 1994 08:49:21 -0600 Message-Id: <199412301449.IAA21177@bartling.ibmoto.com> Subject: SLIP, help me, oh please HELP ME :-) To: freebsd-questions@freefall.cdrom.com, freebsd-hackers@freefall.cdrom.com Date: Fri, 30 Dec 1994 08:49:21 -0600 (CST) X-Mailer: ELM [version 2.4 PL23] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Content-Length: 1561 Sender: hackers-owner@freebsd.org Precedence: bulk SLIP used to work in FreeBSD 1.1R with the following startup script. In FreeBSD 2.0R, it fails. #!/bin/csh # # script for starting SLIP connection using DELL UNIX and BOOTP protocol # slattach -c -h -s 38400 /dev/cua00 ifconfig sl0 inet 129.38.14.8 129.38.252.50 echo "domain ibmoto.com" > /etc/resolv.conf echo "nameserver 129.38.252.14" >> /etc/resolv.conf echo "nameserver 127.0.0.1" >> /etc/resolv.conf route -n add default htp1 ./bootptest > /tmp/bootp.out set my_addr = `grep "reply" /tmp/bootp.out | cut -f9 -d' ' | cut -c3-20` set server_addr = `grep "reply" /tmp/bootp.out | cut -f10 -d' ' | cut -c3-20` set gateway_addr = `grep "reply" /tmp/bootp.out | cut -f11 -d' ' | cut -c3-20` set hops = `grep "reply" /tmp/bootp.out | cut -f6 -d' ' | cut -c6-20` echo "my address = $my_addr" echo "server address = $server_addr" echo "gateway address = $gateway_addr" echo "# of hops = $hops" ifconfig sl0 inet $my_addr $server_addr exit bootptest is a simple binary that queries the "other end" of the slip connection in order to determine your dynamically assigned I.P. address. If I run the above script unmodified, it takes about 5 minutes to add the default route above. After which, i can ping myself and the terminal server at the other end of the point to point link. The nameserver, the gateway, and all other machines are not accessable. netstat -r does not work ( it hangs ). This worked two days ago using 1.1R, it does not work using 2.0R today. Is /usr/sbin/route buggy ? I appreciate any insight y'all might have. Thanks, Steve Bartling