Using SLiRP with OS/2 Warp

This tutorial will teach you how to setup OS/2 Warp to connect to SLiRP in SLIP mode. Before you go on:

Making the SLIP Connection

The IBM Internet Connection includes a nice GUI based dialer program which can automate your dial-up process, using a simple chat script or more complicated REXX procedure if necessary. The same can be done with the command line version of the SLIP program. However, because each service provider is unique and may have somewhat different login procedures, this tutorial will only use a manual login.

In this tutorial, it will be assumed that your TCP/IP base directory is C:\TCPIP. Change the driver letter and/or the directory name in the examples if necessary.

First, you will need to setup 2 files. This setup only needs to be done once (unless you dial another service provider and change the settings).

  1. Create the file slip.cfg in your C:\TCPIP\ETC\ directory containing the following lines:
    interface sl0 {
        device = com2
        mtu = 1006
    }

    Change the com2 to whichever com port you want to use.
  2. Create the file resolv in your C:\TCPIP\ETC\ directory containing the following lines:
    domain nus.sg
    nameserver 137.132.5.2

    Change the domain name and nameserver IP address to whatever is correct for your Unix host.

You are now ready to dial-up and login to your Unix shell account:

  1. In one OS/2 Window, type slip -vj to start the SLIP driver.
  2. In another OS/2 Window, type slipterm to startup a simple terminal through which you can dial-up and login to your Unix shell account.
  3. Login to your Unix host manually. You must send the commands to your modem to dial-up your Unix host and go through the login userid/password procedure.
  4. When you're at your shell prompt, go to your SLiRP directory and type:
    slirp -m 1006 -c
    Confirm that SLiRP is ready.
  5. Press F10 to exit slipterm.
  6. At the command line (you can use the same OS/2 Window you ran slipterm with), type:
    ifconfig sl0 10.0.2.15 <remote-IP-address>
    route add default <remote-IP-address> 1

    Change <remote-IP-address> to the IP address of your Unix host. If you find typing the above cumbersome, you can put the two commands into a batch file (eg., C:\TCPIP\BIN\SLIPCONF.CMD) and just run it instead.
  7. Done. Your SLIP connection is ready.

As mentioned before, the entire process can be automated. This is, however, beyond the scope of this tutorial. You can check the comp.os.os2.networking.tcp-ip newsgroups for more information.

Using the SLIP Connection

You need internet applications/tools to be able to use internet services with your SLIP connection. The IBM Internet Connection already includes all the major internet client applications for telnet, ftp, gopher, news, etc. The WebExplorer (web browser) and Archie programs, however, are not included out-of-the-box (at least not with OS/2 Warp released November 1994). These software can be retrieved using the Retrieve Software Updates program in the IBM Internet Connection folder.