Apple Network Server: Setup & Config a PPP Client In AIX
Table Of Contents
Feedback & Contact
Apple Computer, Inc.
This article describes how to setup a PPP client and then configure it for AIX on an Apple Network Server.
Follow the steps below:
- Step 1
- Add this line to your '/etc/uucp/Devices' file:
Direct tty0 - 38400 direct
- Step 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
- Step 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.
- Step 4
- Type "smitty ppp" and select Link Control Configuration and add a link using the sample below will work in most cases.
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
|async character map
|negotiate async map
|negotiate protocol compression
|negotiate address control compression
The settings above should let you setup an additional PPP interface in case you choose to setup a PPP server.
- Step 5
- Start the PPP subsystem by typing the following command:
startsrc -s pppcontrold
- Step 6
- Modify your '/etc/ppp/dial_out.example'
All you need to add is name, password, and phone number.
- Step 7
- Run the dialer script from the '/etc/ppp' directory
- Step 8
- Wait for a connection and set your default route.
route add 0 gateway_address
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:
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
USER=ppp # User ID
PASSWORD=ppp # Password
NUMBER=xxx-xxx-xxxx # Internet Provider phone number
cat << EOF > $CHATFILE
/usr/sbin/pppattachd client $TTY connect /usr/sbin/pppdial -v -f \
sleep 40 # Wait 40 to establish connection
route add 0 xxx.xx.xx.x # Set the default gateway
[Previous] [Top] [Next]
"The Information Alley", in all formats, is copyright Apple Computer, Inc.
All Rights Reserved.