Attaches an asynchronous device stream to the PPP (Point to Point Protocol) subsystem. Can be invoked as a daemon or a normal process.
To Use a Specific tty Port as a Connection (Runs as a Daemon):
pppattachd /dev/ttyPortNumber { client | server | demand } { ip | ipv6 | ip ipv6 } [ multilink ] [ connect "ConnectorProgram" ] [ inactive Seconds ] [ authenticate pap | chap ] [ peer pap | chap ] [ user Name ] [ remote HostName ] [ nodaemon ]
To Use Standard In and Standard Out as the tty Device (Runs as a Process):
pppattachd { client | server | demand } { ip | ipv6 | ip ipv6 } [ 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 executed 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.
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.
Item | Description |
---|---|
authenticate pap | chap | Defines the current system as the authenticator of either PAP or CHAP. |
client | server | demand | Defines the type of subsystem connection to be bound to on the system running the daemon. |
ip | ipv6 | ip ipv6 | Specifies protocol types. |
connect "ConnectorProgram" | Specifies the program to use to place an outgoing connection. The tty device opened is passed as stdin and stdout to the program. The /usr/sbin/pppdial command is a connector program that can be used. |
inactive Seconds | Specifies the number (unsigned integer) of seconds to wait for inactivity on the link before terminating the connection. The default value is 0 (no timeout). |
multilink | Identifies the PPP link as having a group of attachments connecting to two PPP peers. |
nodaemon | Specifies to the attachment process that it is not to become a daemon. You must use this option for attachment processes that are invoked with demand connections. |
peer pap | chap | Defines the current system as the peer of either PAP or CHAP. |
remote HostName | Defines the remote host name to be used for PAP authentication. An entry for UserName RemoteHostName Password must exist in /etc/ppp/pap-secrets file for a successful connection. This option only has meaning for PAP authentication on both the authenticator and peer. |
user Name | Defines the user entry to use for PAP authentication. An entry for UserName RemoteHostName Password must exist in /etc/ppp/pap-secrets file for a successful connection. This option only has meaning for PAP authentication on the peer. |
This command returns the following exit values:
Item | Description |
---|---|
0 | Successful completion. |
!0 | An error occurred. |
Access Control: Any User
Auditing Events: N/A
/usr/sbin/pppattachd /dev/tty0 client ip connect "sysbconnector"
where sysbconnector is
the connector program.On System B, the user that logged in would have invoked from $HOME/.profile:
exec /usr/sbin/pppattachd server ip 2>/dev/null
/usr/sbin/pppattachd /dev/tty0 server ipv6 connect "sysaconnector"
where sysaconnector is
the connector program.On System A, the user that logged in would have invoked from $HOME/.profile:
exec /usr/sbin/pppattachd client ipv6 2>/dev/null
/usr/sbin/pppattachd /dev/tty0 client ip ipv6 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 that logged in would have invoked from $HOME/.profile:
exec /usr/sbin/pppattachd server ip ipv6 authenticate pap 2>/dev/null
On
System B, the /etc/ppp/pap-secrets file contains: username
* ppppassword.Item | Description |
---|---|
/usr/sbin/pppattachd | Contains the pppattachd daemon. |
/etc/ppp/attXXX.pid | Contains the process id. XXX is the pid, the content of the file is the network layer ID to which the attachment was bound. The user must belong to uucp group for the pid file to be created. |