ppp_manual_setup - Describes how to manually set up Point-to-Point Protocol (PPP) connections
The Point-to-Point Protocol (PPP) provides a standard way to transmit IP datagrams over a serial link and a standard way for the systems (peers) at either end of the link to negotiate various optional characteristics of the link. Using PPP, a serial link can be used to transmit Internet Protocol (IP) datagrams, allowing TCP/IP connections between the peers.
Note that although you do not use a network interface with PPP, you must have a network interface configured on your system for the network daemons (such as nfsd and rwhod) to run properly. The network interface must be configured with a new IP address. For example, if you have a personal computer that you use at home and in the office, do not use the same IP address for the network interface at home as you use in the office.
You can use the gated daemon to manage routing, if you are not using the PPP connection solely to communicate between the two systems making the connection.
If you plan to use a system as an IP router, it must be configured to allow the forwarding of IP packets. For more information on setting a system up as an IP router, see the Network Administration manual and iprsetup(8).
You can connect systems either directly to each other (using a null modem), if they are in close proximity, or over telephone lines using modems, if they are not.
If you connect the systems directly, use a null modem cable, such as Digital BC22D-xx (where xx varies depending on the length of the cable) to connect the serial ports on the two hosts. The maximum length of this type of connection is defined by the RS-232 standard.
If the systems are not in close proximity to each other, you can connect them using telephone line and modems. To use this kind of connection, attach a modem to a serial port on both hosts so that the two hosts can establish a serial connection between them. You can use an RS-232 cable connected to the serial port on the host. This cable must be a straight-through cable such as Digital BC22E-xx or BC22F-xx and the modems must be set to 8 bit, no parity.
PPP works best when hardware flow control is used. High speed modems often fall-back to a lower data rate when line degradation occurs. To support hardware flow control you must use cables with a sufficient number of wires for full modem control. DECconnect cables do not provide a sufficient number of wires. Therefore, do not use them. See modem(7) for a list of modem cables to use and modem guidelines.
Do not use XON/XOFF flow control. It will corrupt the data stream causing the TCP layer over IP to issue retransmit requests for over-runs.
PPP provides two protocols for authenticating hosts and for authenticating your host system to others: Password Authentication Protocol (PAP) Cryptographic Authentication Protocol (CHAP)
Both protocols exchange secrets in order to complete the authentication process. PAP secrets are contained in the /etc/ppp/pap-secrets file; CHAP secrets are contained in the /etc/ppp/chap-secrets file. Only root should be able to read these files. Both files have the following format: [client server secret[ip_address ...] Name of the machine being authenticated. Name of the machine requiring authentication. Password or CHAP secret known by both client and server. Zero or more IP addresses that the client may use (this field is used only on the server).
See Network Administration for information on authentication.
Verify that PPP is supported in the kernel by entering the following
# sysconfig -s | grep ppp
If it is not loaded and configured, do the following:
Login in as root.
Save the /vmunix file.
Rebuild the kernel by running the doconfig program and selecting
the Point-to-Point (PPP) option.
Copy the new vmunix file to /vmunix.
Edit the /etc/sysconfigtab file amd add the following lines:
nppp=2 This provides for 2 PPP connections (ppp0 and ppp1). If your system requires a greater number of PPP connections, increase the number.
A PPP connection between two systems involves setting up a serial link and running the PPP daemon, pppd, on both ends of the link. Guidelines for running pppd are as follows: If you want the local address of the PPP link to differ from the IP address for the local host's Ethernet or other broadcast interface, putthe desired address on the pppd command line with a colon appended as follows: local_addr: Do not use ifconfig to configure the addresses of the PPP interface. The pppd daemon assigns addresses and identifies the interface as active. Whether you run pppd manually on the remote machine or use a script file on the local machine to run pppd on the remote machine, do not provide a device name to pppd; it uses the controlling tty by default.
For information on pppd options, see pppd(8) and Network Administration.
To a PPP dial-out connection, do the following: Verify that you can communicate with the modem. Do the following: Edit the /etc/remote file and copy the kdebug entry. Modify the new entry, providing a system name for the entry, the correct Tru64 UNIX device (tty00 or tty01 depending on your system), the correct baud rate, and correct parity. See remote(4) for more information. Use the tip command to access the modem as follows: % tip system_name system_name is the system name from the /etc/remote file.
Be sure you do not have a getty process running on the port to which the modem is connected.
To configure a PPP dial-in system, complete the following steps: Set up your modem for dial-in accss. See modem(7) for more information. Edit the /etc/passwd file and create a dedicated entry for a PPP user. For the login shell field, specify /usr/sbin/startppp; for example: ppp1:password:10:20:Remote PPP User:/usr/users/guest:/usr/sbin/startppp Edit the /etc/inittab file and create an entry for each terminal device that is to run PPP. For example: modem:3:respawn:/usr/sbin/getty /dev/tty00 M38400 vt100
If any problems occur while using PPP, see the Network Administration manual.
To terminate the PPP link, send a TERM or INTR signal to one of the pppd daemons by issuing the following command: # kill `cat /etc/ppp/pppxx.pid` In this command, pppxx specifies the pppd used for the PPP connection. The pppd specified in the command also instructs other pppd daemons to terminate.
If pppd is attached to a hardware serial port that is connected to a modem, the daemon should gev a HUP signal when the modem hangs up, which will cause it to clean up and exit. This action depends on the driver and its current settings.
Files: gated.conf(4), inittab(4), remote(4).
Commands: tip(1), chat(8), iprsetup(8), pppd(8), syslogd(8).
RFC 1332, "The PPP Internet Protocol Control Protocol (IPCP)", G. McGregor
RFC 1334, "PPP Authentication Protocols", B. Lloyd, W. Simpson
RFC 1661, "The Point-to-Point Protocol (PPP)", W. Simpson
RFC 1662, "PPP in HDLC-like Framing", W. Simpson delim off