Setting Up Solaris as PPP Client

To set up a Solaris machine as a PPP client, you need to modify/create a number of configuration files and then reboot. These instructions apply to Solaris Sparc 2.5 and 2.4. Same instructions might work for Solaris x86 but I do not have a Solaris x86 machine and I have not tried it on one. Now let us get down to the business of configuring Solaris.

The notes here assume you already have set up your modem and you are able to communicate with the modem using cu or tip. If you need help with setting up the modem connection, Celeste Stokely's document might be helpful. I was able to set up my serial port to communicate with the modem quite easily using just admintool.

First of all you need to configure uucp so PPP will know how to dial in to your PPP server. The PPP server could be your ISP. You will need to modify the following files to set up uucp:

This will set up your dialer and login scripts. Now you will need to configure the PPP network interface which let us say is ipdptp0. You do this in /etc/asppp.cf file. Here is the entry from my file:

You will also need to define void in the /etc/hosts file as follows:

The way I have configured ipdptp0, it will be marked down when your machine comes up. I do it so that every time I reboot my machine will not start dialing out to my PPP server. I bring up the PPP connection on demand by executing the script attach. I have written another script detach that I execute to tear the PPP connection down. Bringing PP up and down using scripts allows me to set up my routing table and name server correctly for each PPP server since I connect to more than one PPP server using the same modem. It is important to use debug_level 7 in /etc/asppp.cf for attach and detach scripts to work. Scripts attach and detach use two other utilities ppplock and pppunlock. These are compiled C programs that try to create a lock file in exclusive mode. This assures me that one of my cron jobs will not try to start another PPP session while I am already running one PPP session. Here is the source code for ppplock and pppunlock. They should compile using gcc easily and I would think other C compilers as well.

Hope this helps you with your PPP set up. Please report any discrepancies in the above procedure.

Acknowledgement

Some of the above setup and scripts were derived from Michael McKnight's PPP guide. I have expanded and modified the original attach and detach scripts from Michael McKnight.