Contained WithinFind More DocumentationFeatured Support Resources | Descargar este libro en PDF (1868 KB)
Chapter 23 Managing PPPThis chapter contains procedures and information for configuring PPP, procedures to set up less commonly used PPP links, as well as some troubleshooting procedures. The following topics are covered: PPP Task MapsThis section shows the various task maps for configuring PPP, maintaining PPP once it is installed, and troubleshooting problems with PPP Table 23-1 PPP Configuration Task Map
Table 23-2 PPP Maintenance Task Map
Table 23-3 PPP Troubleshooting Task Map
Overview of the Configuration ProcessYou have completed the preinstallation activities noted in Chapter 22, Planning for PPP. Now you can begin PPP configuration. PPP requires that you:
Although you don't have to perform Tasks 1-4 in order, you must complete them before you can edit the PPP-configuration file. The sections in this chapter explain the procedures for configuring PPP. Installing the PPP SoftwareThe PPP software is automatically included when you run the Solaris installation program and select the entire distribution. If you did not select the entire distribution, you need to install PPP as a separate package. How to Verify InstallationBefore proceeding further, you must check that the Solaris version of PPP is installed on all machines to be involved in the PPP link.
Sample PPP ConfigurationThis and the following sections show you how to edit the appropriate files to support the most common PPP configuration: remote hosts and their dial-in server. Figure 23-1 illustrates the configuration used as the example for this chapter. It depicts three remote machines (nomada, nomadb, nomadc) and their dial-in server nubian, which compose the network 192.41.43. This is a separate network from the local area network 192.41.40, to which the dial-in server nubian is directly attached. Network 192.41.40 runs NIS as its name service. The IP number shown for each remote host is the address of its PPP network interface. However, the dial-in server has a specially created IP address for the PPP interface, 192.41.43.10, in addition to the IP address for its primary network interface, 192.41.40.45. Figure 23-1 Sample Network of Remote Hosts and Multipoint Dial-In Server
Editing the /etc/inet/hosts FileAfter ensuring that PPP is installed on every machine involved in your configuration, your next task is to edit the /etc/inet/hosts files on each machine. You must add host information to the hosts database for every machine on the other end of the PPP link that the local machine needs to communicate with. Note - You must update /etc/inet/hosts regardless of the name service in use on the physical network. This is necessary because PPP starts before the name service daemons during the booting process. How to Configure the Remote Machine's hosts Database
Multipoint Dial-in Server hosts DatabaseMultipoint dial-in servers must have a unique IP address for the PPP interface, besides the local IP address for the primary network interface. When configuring the hosts database for the dial-in server, you need to perform the following procedure. How to Configure the Dial-In Server's hosts Database
Editing UUCP DatabasesBefore a machine can dial out over the PPP link, you must edit these files in its UUCP database:
You must edit these files for remote hosts serving as PPP dial-out machines. Additionally, you must edit these files on the dial-in server if it is to dial out to the remote hosts (a requirement for multipoint dial-in servers). Chapter 25, Overview of UUCP describes these files in detail. Modifying the /etc/passwd FileTo configure a dial-in server, you must also edit the /etc/passwd and /etc/shadow files. You must add entries to the /etc/passwd file on the dial-in server for each user on a remote host authorized to log in to the server. When a remote host calls the dial-in server, it reads its UUCP databases and passes the server a user name or user ID for the host initiating the call. The server then verifies this user information in its /etc/passwd file. If the user's password is authenticated, the server then logs the user in to a special shell for PPP hosts, /usr/sbin/aspppls. The server gets this information from the login shell entry in its /etc/passwd file. Using the example in Figure 23-1, dial-in server nubian might have the following entries in its /etc/passwd file:
Refer to System Administration Guide, Volume 1 for information about the /etc/passwd file. Note - In addition to the information in the /etc/passwd file, you update the /etc/shadow file with the passwords for the login names used by each endpoint machine permitted to dial in to the server. For more information, refer to System Administration Guide, Volume 1. Editing the /etc/asppp.cf Configuration FileThe /etc/asppp.cf configuration file provides the PPP link manager on one endpoint machine with information about the machine on the other end of the link--or the machines on the other end of a multipoint (or dynamic point-to-point) link. When the machine boots, the link manager uses this information to establish and maintain communication with a remote endpoint. Editing the Configuration File
No other format requirements apply for the placement of the keywords in the file. How to Edit the asppp.cf Configuration File
Turning Off RIPYou can disable RIP on a point-to-point link through the file /etc/gateways. This file does not come with your operating system: you must create it with a text editor. How to Turn Off RIP
Adding PPP SecurityAfter you have completed installing PPP on every machine involved in your configuration, you can add either PAP or CHAP levels of security for the PPP link by modifying the asppp.cf file. Refer to "Editing asppp.cf for PAP/CHAP Security". Configuring Dynamically Allocated PPP LinksA dial-in server with a dynamic point-to-point link gives your site all the advantages of point-to-point communications. Chapter 21, Overview of PPP introduces this configuration type. It consists of remote hosts communicating with at least one dial-in server that dynamically allocates point-to-point links on an as-needed basis. The following sample configuration is used throughout this section. Figure 23-2 Network of Remote Hosts and Dynamic Link Dial-In Servers
Each remote host communicates with the dial-in server using a standard point-to-point link. However, unlike the multipoint dial-in server in Figure 23-1, dial-in server mojave connects to a calling host over a dynamic point-to-point link. The server allocates an available link whenever a remote host attempts to establish a connection. The idea behind a dynamic link is that the server provides the client with an IP address each time a connection is established. When the connection is established, the server allocates an available IP interface to the client. The remote IP address of the interface then becomes the client's IP address for the duration of the connection. When the connection is terminated, the IP interface is returned to the pool of available interfaces, ready to be used for another connection. You use the same generic procedures for configuring dynamic links as you do for the remote host-to-multipoint dial-in server link, as described in "Overview of the Configuration Process". However, the dynamic point-to-point link has its own set of issues and requires slightly different modifications to the files involved in configuration. How to Update a Remote HostWhen configuring the hosts databases on the remote machines, do the following:
How to Update the Dial-In ServerYou do not have to add any PPP-specific address to the hosts database for the dial-in server. The dynamically allocated link must use the server's primary network interface. Therefore, when configuring the hosts database for the dial-in server, do the following:
Editing asppp.cf for PAP/CHAP SecurityYou can edit the asppp.cf file to establish security and to specify whether parts of the link will respond to Password Authentication Protocol (PAP), or Challenge-Handshake Authentication Protocol (CHAP), as described in "PPP Security". The asppp.cf file is edited by adding a series of keywords. In this section, authenticator is the system starting the link or challenge, and is frequently the server. Peer is the other end of the link, and is often the client. The keywords to be added are require_authentication and will_do_authentication. The authenticator or server generally require authentication and the peer or client generally does authentication. Table 23-4 Authenticator Keywords and Associated Strings
Table 23-5 Peer Keywords and Associated Strings
How to Install PAP/CHAP
PAP/CHAP ExamplesThe example below shows the asppp.cf file for the server mojave with PAP and CHAP authentication required. The peers are nomada (PAP) and nomadb (CHAP). Example 23-1 Code Example for Server mojave
The next sample shows mojave's remote host nomada offering to do both PAP and CHAP authentication. Example 23-2 Code Example for Remote Host nomada
The next example shows mojave's remote host nomadb offering to do CHAP authentication. Example 23-3 Code Example for Remote Host nomadb
Ideally, both CHAP and PAP are included in the configuration file, with the server requiring authentication and the remote host willing to do authentication. However this is reversible so that either side can require authentication. CHAP secrets need to be delivered by secure means. This generally involves manually releasing them. Starting Up and Stopping Your New PPP LinkYou can start PPP either automatically, at boot time, or manually from the command line. How to Manually Start PPPYou can start PPP manually, although this is not normally required. How to Verify That PPP Is Running
See "Common Check" for information on troubleshooting and problem solving. How to Stop PPPTo stop PPP operations on your network: Common CheckThe following section contains some common checks that you might need to perform to verify the operation of your PPP setup. Note - You must become superuser to perform these checks. Checking HardwareMake sure that all modem and power cables are tightly seated. If you are having problems with PPP, always check the modems, cables, serial card, and phone lines first. How to Check Interface StatusAfter PPP is started, you can use ifconfig to monitor the current state of the line, using only the PPP interface name as an argument. Example 23-4 shows sample output from ifconfig for PPP links that are running. Note - If a user is privileged (root), and issues an ifconfig command, machine addresses are displayed in the output as shown in the following example. Example 23-4 ifconfig Output for Point-to-Point Link
You receive output similar to that in Example 23-5 for both standard and dynamic point-to-point links. Example 23-5 ifconfig Output for Multipoint Link
If ifconfig does not display UP and RUNNING, you did not configure PPP correctly. For more information on ifconfig, see "ifconfig Command" and the ifconfig(1M) man page. How to Check ConnectivityUse the ping command to verify that the connection is up or can be established. For example, consider the following simple round-trip test:
How to Check Interface ActivityUse the netstat command as follows to check that packets are being sent and received correctly: Refer to "netstat Command" and the netstat(1M) man page. How to Check the Local Routing TablesUse the netstat command to display the local routing tables: The following is sample output:
Make sure a routing table entry exists for each possible destination network. In particular, PPP devices, listed under Interface, should be matched with the appropriate host names listed under Gateway. The Gateway entry should, in turn, be matched with the correct entry under Destination. Otherwise, if you are using static routing, add the appropriate static routes. How to Add Routes Using in.routedIf you are using dynamic routing with in.routed:
Checking PermissionsIf you attempt to use rsh and receive the message Permission denied, the remote system's /etc/hosts.equiv or /.rhosts file does not contain the sending system's host name or does not contain the line +. Checking Packet FlowCheck the packet flow next. Use the snoop command to observe packets from the network and their contents. The example below shows some sample output from snoop. Example 23-6 Sample Output From snoop
The ipdptp0 device name mentioned in the first line of the output Using device ipdptp0 indicates a point-to-point connection. Note - You need to have the link up and some traffic generated in order to use snoop to check the line status. snoop captures packets from the network and displays their contents. It uses both the network packet filter and streams buffer modules to provide efficient capture of packets from the network. Captured packets can be displayed as they are received or saved to a file for later viewing. snoop can display packets in a single-line summary form or in verbose multiline forms. In summary form, only the data pertaining to the highest-level protocol is displayed. For example, an NFS packet will have only NFS information displayed. The underlying RPC, UDP, IP, and Ethernet frame information is suppressed but can be displayed if either of the verbose options is chosen. For more information about the snoop command, refer to the snoop(1M) man page. Using PPP Diagnostics for TroubleshootingIf you have problems with a link after successfully establishing modem connections, you can use PPP-level diagnostics for troubleshooting. PPP-level diagnostics report detailed information about the activities of a link to help you determine where it is failing. To obtain diagnostic information, add the line debug_level 8 to the path section of the asppp.cf file. (If you are very knowledgeable about data communications, you might want to use debug level 9, which provides very detailed information.) Here is a sample configuration file that invokes PPP diagnostics.
For complete details about the aspppd.conf file, refer to "Editing the /etc/asppp.cf Configuration File". How to Set Diagnostics for Your MachineSet diagnostics on the host you want to monitor as follows:
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||