Content-type: text/html
/usr/sbin/startslip [-i filename]
Specifies the file containing the startslip subcommands for dial-out connections.
The startslip program configures two types of SLIP connections: Dial-in connections - The system is to answer calls from remote systems. Dial-out connections - The system is to place calls to a remote system.
If your system is configured as a dial-in system, a getty process is continuously run on the serial line that is connected to a modem. When a call comes in, getty prompts for a login name. If the login name matches a SLIP user name entry in the /etc/passwd file, getty starts startslip as a login shell. The startslip program then reads the /etc/slhosts files until it finds an entry matching the current login name. If an entry is found, startslip configures the tty line as a SLIP link using information in the slhosts file entry.
See Network Administration for information on setting up your system as a SLIP dial-in system.
If your system is configured as a dial-out system and you want to create a SLIP connection to a remote system, you invoke the startslip program from the command line and specify -i filename. The filename file contains the startslip subcommands to set up the dial-out connection (see the "Subcommands" section). After making the connection, startslip runs in the background.
When you are finished with the SLIP connection, you can either turn off your modem or kill the tty process. The tty process ID is stored in the /var/run/ttyxx.tel-pid file, where ttyxx specifies the terminal line.
The following startslip subcommands can be used to set up SLIP dial-out connections. The subcommands are specified in a SLIP setup script file that is passed to startslip with the -i filename flag. In the setup script file, any text following the comment character (#) is ignored. In addition, each line can contain up to 256 characters. Specifies the callback option. If this subcommand is specified, startslip raises Data Terminal Ready (DTR) if carrier is lost during a read from the serial line. Causes startslip to configure the network interface with the values specified with the myip, dstip, and netmask subcommands, and to attach the serial line to the network interface. If the gateway is specified, it also adds the destination IP address as the default gateway.
Only a person with superuser authority can run the startslip program.
The following sample setup script file shows how to use various startslip dial-out subcommands. debug /tmp/debuglog
myip 27.140.208.38
dstip 27.140.208.40
netmask 255.255.255.0
# set modemtype before dialing # microcom modem attributes defined in /etc/acucap modemtype microcom
printmsg open /dev/tty00 at speed 38400 opentty tty00 speed 38400
printmsg dial 18154231234 dial 18154231234
# expect login prompt. timeout and exit after 5 seconds. expect ogin: timeout 5 errmsg "not getting login: prompt"
printmsg send login send sliplogin
# expect password prompt. timeout and exit after 5 seconds. expect assword: timeout 5 errmsg "not getting Password: prompt"
printmsg Prompt and send password send ASKPASSWD
# expect Starting SLIP after login expect SLIP timeout 10 errmsg "not getting startup message"
# connect slip - ifconfig, slattach printmsg connect slip connslip
Specifies the command path Contains the startslip process ID Specifies the termios header file
Commands: ifconfig(8).
Network Administration
Specifications: A Nonstandard for Transmission of IP Datagrams Over Serial Lines: SLIP (RFC1055)
Compressing TCP/IP Headers for Low-speed Serial Links (RFC1144) delim off