| United States-English |
|
|
|
![]() |
HP 9000 Networking: Installing and Administering PPP > Chapter 2 Setting Up PPP ConnectionsAdditional Information |
|
This section discusses some additional information that may be useful when configuring PPP connections. In most cases, all inbound PPP logins can use the same generic Login script. But if you want a host to start pppd with a special option like 'require authentication', make that login account use a specific login shell that is tailored to that host. Call it /etc/ppp/Login-host, for example, and change the pppd line to reflect whatever options you wish to have. For example:
See the pppd(1) man page for more information on options.
The PPP Filter file specifies the ways in which static packet filtering handles outbound and inbound TCP/IP packets. Though the filtering can be very complex if desired, a simple filter will suffice for demonstration purposes between robin and lark. An example other than the one shown below is in /etc/ppp/Filter.ex and a lengthy explanation of static packet filtering is included in Chapter 5. Here is a Filter file that could be used for testing the robin-lark link:
This filter defines the following:
In both the Systems and Devices files, pppd selects the first line that matches its search criteria. If the connection attempt fails while using the method described by that line, pppd will search for the next matching line. pppd will report a failure only when all the criteria-matching lines have been tried and exhausted. For example, suppose two lines in the Systems file differed only by the values in the telephone number field like this:
pppd would first try to connect by dialing 5551212. If pppd received a BUSY from the modem, it would dial the second number, 5551223. Similarly, suppose a host has two different modems attached which can be used for outbound calls. The Devices entries might look like this:
pppd would try to call out through /dev/cuh00. But suppose it is busy because an incoming UUCP connection is on /dev/ttya00. pppd will try /dev/cul00 instead. If an IP address is input on the pppd command line, the address is offered during IPCP negotiations. However, at connection time, some terminal servers and other peers wish to assign an address for the host running PPP to use for the duration of the connection. To direct PPP to allow assignment of an address that is different from the one on the pppd command line, use a tilde (~) after the local IP address. For example:
Because SLIP does not perform any IPCP negotiations, the tilde option will not function if the SLIP option is specified. See Chapter 4 for more information. When an answering pppd is invoked in the Login script, it is told a pair of IP addresses on the command line. In the Login script, use one of the following means to decide what IP addresses are put on the command line:
The pppd command line arguments provide the mechanism; your Login script provides the policy. The following is an example Login script that uses the tty name to guarantee uniqueness of the addresses it assigns. This works fine for a small installation with few modem server serial ports and a fairly static configuration.
This script also uses the tty name to guarantee uniqueness of the addresses it assigns. You must define ttyN in your /etc/hosts file, NIS hosts map, NetInfo hosts map, or DNS database, according to the system used. This works better in a larger installation with many ports and a configuration that tends to change often.
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|||||||||||||||