Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 3 Jan 1995 08:14:10 -0600 (CST)
From:      Steve Bartling <bartling@ibmoto.com>
To:        bartling@ibmoto.com (Steve Bartling)
Cc:        davidg@Root.COM, bartling@ibmoto.com, jgreco@brasil.moneng.mei.com, freebsd-questions@freefall.cdrom.com, freebsd-hackers@freefall.cdrom.com
Subject:   Latest in my SLIP saga :-)
Message-ID:  <199501031414.IAA30025@bartling.ibmoto.com>
In-Reply-To: <199412302239.QAA22769@bartling.ibmoto.com> from "Steve Bartling" at Dec 30, 94 04:39:14 pm

next in thread | previous in thread | raw e-mail | index | archive | help

Latest copy of my start_slip script :

#!/bin/csh
#
# script for starting SLIP connection using DELL UNIX and BOOTP protocol
#
#slattach -c -l -s 38400 /dev/cua00
slattach -c -h -s 38400 /dev/cua00
# configure initial SLIP link to the terminal server
# HTP1 = 129.38.252.50
# HTP2 = 129.38.252.51
# I do not remember what 129.38.14.8 is supposed to represent
#
ifconfig sl0 inet 129.38.14.8 129.38.252.50
#
# add domain name, and nameserver addresses to /etc/resolve.conf
# in order to configure the nameservice
#
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
#
# add default route for all packets to HTP2 if dialing in 795-7555
# HTP1 = 129.38.252.50
# HTP2 = 129.38.252.51
#
route add default 129.38.252.51
#
# determine my dynamically allocated I.P. address using bootptest
#
./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"
# 
# reconfigure sl0 using my dynamically allocated I.P. address
# and the address of the terminal server ( HTP2 )
ifconfig sl0 inet $my_addr $server_addr
exit

This now works if I do the following after the above script is run :

route delete default 129.38.252.51

followed by :

route add default 129.38.252.51

After deleting then adding back the default route,
I am able to achieve full functionality.

After all of the above, netstat -r yields :

reef# netstat -r
Routing tables

Internet:
Destination      Gateway            Flags     Refs     Use  Interface
default          htp2.ibmoto.com    UGS         5      353  sl0
localhost        localhost          UH          0      104  lo0
htp2.ibmoto.com  htp2-4.ibmoto.com  UH          1        0  sl0
htp2-4.ibmoto.co localhost          UH          0        0  lo0
224              localhost          US          0        0  lo0

Does this seem correct ?

I am too green around the edges to find a problem all by myself :-)

Feel free to request more info ...

Thanks for your help.

- Steve Bartling



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199501031414.IAA30025>