1. Add this line to your '/etc/uucp/Devices' file: Direct tty0 - 38400 direct
2. Create a tty on serial port 1.
Note: Be sure to create the tty with rtc/cts flow control and speed 38400.
The following command will create a tty1 on serial port 1: mkdev -c tty -t tty -s rs232 -p sa1 -w s1 -a speed=38400 -a flow_disp=rts
3. Edit the 'rc.net' file (located in the '/etc' directory) and turn on IP forwarding by adding this to the last line: no -o ipforwarding=1
Note: You can type this on the command line, but you will have to type it at system reboot, so you can put this command in the 'rc.net' file once.
4. Type "smitty ppp" and select Link Control Configuration and add a link using the sample below will work in most cases.
LINK Configuration
Type or select values in entry fields. Press Enter AFTER making all desired changes.
PPP Subsystem name | |
max server connections | |
max client connections | |
max demand connections | |
max ip interfaces | |
max async hdlc attachments | |
mru | |
async character map | |
negotiate MRU | |
negotiate async map | |
negotiate protocol compression | |
negotiate address control compression | |
force authentication | |
chap interval |
5. Start the PPP subsystem by typing the following command: startsrc -s pppcontrold
6. Modify your '/etc/ppp/dial_out.example'. All you need to add is name, password, and phone number.
7. Run the dialer script from the '/etc/ppp' directory: /dial_out.example
8. Wait for a connection and set your default route: route add 0 gateway_address
Debugging Information
You can use the 'syslog' file for debugging; this file displays on the root console when activated. You need to modify the 'syslog.conf' file to display debugging information by un-commenting this line in the '/etc/syslog.conf' file: *.debug /dev/console.
For this change to become active, you have to refresh the syslogd subsystem by typing: refresh -s syslogd.
Note: We have found it best to use two xwindows for the debugging process. The first window opened can be the console and all debug messages will be sent to it. To use xwindows, exit to command line login from the options button of the dtlogin. At the command line, type "xinit".
Sample Dialer Script
Below is an example of a dialer script:
startsrc -s pppcontrold | # Start the pppcontrold subsystem |
sleep 5 | |
USER=ppp | # User ID |
PASSWORD=ppp | # Password |
NUMBER=xxx-xxx-xxxx | # Internet Provider phone number |
CHATFILE=./chatfile | |
cat << EOF > $CHATFILE | |
\\"\\" | |
at | |
OK | |
atdt$NUMBER | |
CONNECT | |
\\"\\" | |
ogin | |
$USER | |
ssword | |
$PASSWORD | |
EOF | |
/usr/sbin/pppattachd client $TTY connect /usr/sbin/pppdial -v -f | |
$CHATFILE | |
sleep 40 | # Wait 40 to establish connection |
route add 0 xxx.xx.xx.x | # Set the default gateway |