Attaches an asynchronous device stream to the PPP (Point to Point Protocol) subsystem. Can be envoked as a daemon or a normal process.
pppattachd /dev/ttyPortNumber { client | server | demand } [ multilink ] [ connect "ConnectorProgram" ] [ inactive Seconds ] [ authenticate pap | chap ] [ peer pap | chap ] [ user Name ] [ remote HostName ] [ nodaemon ]
pppattachd { client | server | demand } [ multilink ] [ inactive Seconds ] [ authenticate pap | chap ] [ peer pap | chap ] [ user Name ] [ remote HostName ] [ nodaemon ]
The pppattachd daemon provides the mechanism to bind an asynchronous stream to the PPP subsystem. When placing an out going connection on a specific tty port, pppattachd becomes a daemon. When using stdin (standard in) and stdout (standard out) as the tty device for PPP communications pppattachd does not become a daemon. (It would be exec'd from the $HOME/.profile upon login on a tty device.)
You can activate PAP or CHAP authentication with the authenticate and peer options. Use the smit command to create entries in either the /etc/ppp/pap-secrets or /etc/ppp/chap-secrets file. The pppattachd daemon uses the passwords in these files to authenticate the connection. It searches only the /etc/ppp/pap-secrets file for PAP authentication and the /etc/ppp/chap-secrets file for CHAP authentication.
In AIX Version 4.2.1 or later, the multilink option is to used to identify the PPP link as having several attachments between the two PPP peers. PPP packets are fragmented at one peer, sent over the multiple attachments, and then reconnected on the remote peer that must also support multilink. The maximum receive reconstruction unit (MMRU) and endpoint descriptor are set through SMIT on the PPP Link Configuration menu. MRRU is the maximum data size before fragmentation. The endpoint discriminator uniquely identifies the local system.
Errors and messages are logged using the syslog facility.
This command returns the following exit values:
0 | Successful completion. |
!0 | An error occurred. |
/usr/sbin/pppattachd /dev/tty0 client connect "sysbconnector"where sysbconnector is the connector program.
On System B, the user which logged in would have invoked from $HOME/.profile:
exec /usr/sbin/pppattachd server 2>/dev/null
/usr/sbin/pppattachd /dev/tty0 server connect "sysaconnector"where sysaconnector is the connector program.
On System A, the user which logged in would have invoked from $HOME/.profile:
exec /usr/sbin/pppattachd client 2>/dev/null
/usr/sbin/pppattachd /dev/tty0 client peer pap user username \ connect "sysbconnector"where sysbconnector is the connector program.
On System A, the /etc/ppp/pap-secrets file contains: username * ppppassword. On System B the user which logged in would have invoked from $HOME/.profile:
exec /usr/sbin/pppattachd server authenticate pap 2>/dev/nullOn System B, the /etc/ppp/pap-secrets file contains: username * ppppassword.
The pppcontrold daemon, pppdial command.
The syslog subroutine.
The profile file format.
Asynchronous Point-to-Point Protocol (PPP) Subsystem Overview in AIX Version 4.3 System Management Guide: Communications and Networks.