Apple Network Server: Setup & Config a PPP Client In AIX

This article describes how to setup a PPP client and then configure it for AIX on an Apple Network Server.
Follow the steps below:

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.

Entry Fields
PPP Subsystem name
new
max server connections
1
max client connections
1
max demand connections
1
max ip interfaces
2
max async hdlc attachments
2
mru
async character map
negotiate MRU
yes
negotiate async map
yes
negotiate protocol compression
yes
negotiate address control compression
yes
force authentication
no
chap interval

The settings above should let you set up an additional PPP interface in case you choose to set up a PPP server.

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
Published Date: Feb 18, 2012