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

Side Navigation Graphic, See Text Links

Find It
Home
Table Of Contents
Support Pages
Feedback & Contact
Apple Computer, Inc.
Mirror Sites
Huh?

ListenUP plug-in URL

TECHINFO-0021060

TOPIC

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

DISCUSSION

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.

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 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

./dial_out.example

Step 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
The Famous Apple!

Previous
[Previous] [Top] [Next]

-----------------------------------------------------------

"The Information Alley", in all formats, is copyright Apple Computer, Inc.
All Rights Reserved.