Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ slconfig(1M) — mips UMIPS RISC/os 5.01

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

rc0(1M)

intro(7N)

slip(7N)

netstat(1)



SLCONFIG(1M)        RISC/os Reference Manual         SLCONFIG(1M)



NAME
     slconfig - Configure a serial line network interface

SYNOPSIS
     /etc/slconfig [ -t ttyname ] [ -b speed ] [ -c command ] [ {
     loginname | localaddr remoteaddr [ netmask ] } ]

DESCRIPTION
     slconfig is used to turn a terminal line into a Serial Line
     IP link to a remote host.  In order to do this, the program
     needs to know the local interface address of the link, the
     remote interface address, and the applicable (sub)net mask.
     There are three ways it may determine this information:

     -    If run by a non-root user id, the program will ignore
          localaddr, remoteaddr, and netmask parameters and
          instead search a table (the /etc/hosts.slip file) for
          an entry matching that user id's login name, and set
          the parameters it needs from the contents of the match-
          ing entry.  This would be the typical usage when slcon-
          fig is the shell for a remote site connecting via
          dialup SLIP.

     -    If run by root with a single argument, the described
          search procedure will be performed using the argument
          as a key.

     -    If run by root with two or three arguments, they are
          assumed to set the needed parameters explicitly.  A
          missing netmask will cause the default network mask for
          that class network to be used.

     The parameters may be specified either by name (which will
     be looked up using gethostbyname(3N) and getnetbyname (see
     getnetent(3N)), or as a dotted quad that the inet_addr (see
     inet(3)) function can interpret.

     Except the line speed, which is left unchanged unless the -b
     option is used, all other terminal line parameters are
     automatically initialized properly.

     Only the super-user may attach a network interface.  The
     interface is automatically detached when the slconfig pro-
     cess dies.  If the kernel slip module has been configured
     for it, all routes through that interface will also disap-
     pear at the same time.

OPTIONS
     The options have the following meaning:

     -b        Select a different speed for the terminal line.
               It is generally used in conjunction with -t option



                        Printed 11/19/92                   Page 1





SLCONFIG(1M)        RISC/os Reference Manual         SLCONFIG(1M)



               to select a new terminal line.

     -c        Execute the string command after the terminal line
               has been assigned a network interface.

     -t        Use ttyname terminal line for the network inter-
               face.  The ttyname is a string of the form ttyXX
               or /dev/ttyXX. In the absence of this option, the
               standard input of the process is turned into a
               network interface.

TABLE FORMAT
     The format of the /etc/hosts.slip file is as follows:

     -    blank lines and lines with a leading # are ignored.

     -    all other lines should have the form:

               name mode localaddr remoteaddr netmask

          The name is usually the login name of a remote host
          that wishes to connect by dialup slip.  More generally
          it is any key you wish for the address and mask parame-
          ters specified on that line.  The mode is currently
          unused but must be specified.  Use normal.  The remain-
          ing parameters have been discussed earlier.

EXAMPLES
             slconfig -t /dev/tty3 -b 19200 ip_utai  &

             slconfig us-sl them-sl 255.255.255.0 &

             slconfig 192.12.174.1 192.12.174.2 < /dev/tty3 &

SEE ALSO
     rc0(1M), intro(7N), slip(7N).
     netstat(1) in the User's Reference Manual.


















 Page 2                 Printed 11/19/92



Typewritten Software • bear@typewritten.org • Edmonds, WA 98026