Jump to content United States-English
HP.com Home Products and Services Support and Drivers Solutions How to Buy
» Contact HP
More options
HP.com home
HP 9000 Networking: Installing and Administering PPP > Chapter 2 Setting Up PPP Connections

Configuring Outbound Connections

» 

Technical documentation

Complete book in PDF
» Feedback
Content starts here

 » Table of Contents

 » Glossary

 » Index

The following files are used for outbound calls:

  • /etc/ppp/Devices associates dialer types with physical devices and speeds. pppd examines the file when it places a call. If no suitable speed is found or if all devices associated with that speed are busy, pppd tries again later.

  • /etc/ppp/Dialers describes how to dial each type of modem attached to the HP-UX system that is to be made available for outbound calls.

  • /etc/ppp/Systems contains the hostname or IP address of peers and how to connect with peers.

  • /etc/ppp/Autostart starts pppd for on-demand outbound calls.

/etc/ppp/Devices

The Devices file associates dialer types with physical devices and speeds. Entries in the file have the following format:

dialer  device  speed  [optional_parameters]

If the PPP connection is a direct connection, the dialer field should be "Direct." Refer to the ppp.Devices(4) man page for more information.

In our example, the following entry is made to robin's Devices file:

T1600     cuh00     19200 

This line provides this configuration for robin's connection to lark:

Use what modem:

T1600 (Telebit model 1600)

On which system device:

cuh00 (outbound device)

At what speed:

19200 (19200 bps)

/etc/ppp/Dialers

The Dialers file describes how to dial each modem that is attached to the local system. The file Dialers is installed with PPP. Entries in the file have the following format:

dialer   chat_script

Refer to the ppp.Dialers(4) man page for more information.

In our example, the Dialers file is already installed on robin. Here is what the entry for the Telebit model 1600 looks like:

T1600   ABORT NO\sCARRIER ABORT NO\sDIALTONE ABORT BUSY \
ABORT RRING\r\n\r\nRRING\r\n\r\nRRING ABORT ERROR \
TIMEOUT 5 "" AT OK-AT-OK ATS111=0DT\T TIMEOUT 60 CONNECT

his elaborate dialer string will cause pppd to abort the connection attempt if anything goes wrong with the telephone call, then will disable UUCP spoofing in the modem before dialing the destination telephone number. Look through the Dialers file for modem entries for your type of modem. If none are defined, use the dialer entry "GENERIC".

You can create a separate list of modem descriptions in a file named Dialers.local. Entries in Dialers.local take precedence over entries in Dialers. You can use the entries from the Dialers file to guide you as you create new entries in Dialers.local. See the ppp.Dialers(4) man page for more information about setting up dialer entries.

Since your modem may be used for other purposes besides PPP (for example, UUCP or for interactive users), it is best to set the modem's default parameters to accommodate dial-in applications and have outgoing UUCP or PPP dialers change them if necessary. The PPP-specific register settings in Dialers or Dialers.local ensure that an otherwise general-purpose modem will work as well as possible with PPP for the duration of the PPP session.

/etc/ppp/Systems

The Systems file contains the hostname or IP address of peer systems and how to connect to them. Entries in the file have the following format:

name  when  device  speed   phone_number  chat_script

Refer to the ppp.Systems(4) man page for more information.

For our example, the following line is added to the Systems file on robin to connect to lark:

lark Any ACU 19200 5551212 in:--in: Probin word: mypasswd

This line provides this configuration for robin's connection to lark:

Call what host:

lark

When:

Any (any day and at any time).

Using what device:

ACU (any call unit that matches the speed listed in the next field).

At what DTE speed:

19200 (19200 bps)

At what telephone #:

5551212

Expect what string:

in: substring of login: if true, send next field. If false, send string between dashes followed by carriage return and expect in: Can be used to elicit a response out of peer.

Send what string:

Probin (followed by an implicit carriage return).

Expect what string:

word (a substring of password).

Send what string:

mypasswd (followed by an implicit carriage return).

/etc/ppp/Autostart

All outbound PPP connections are started through the user-generated /etc/ppp/Autostart file. When the local system is booted, a pppd process is started for the outbound link to the remote system. There is no example Autostart file; you must create it. It contains the command line necessary to start pppd:

pppd local_host:remote_host daemon_mgt_opt link_mgt_opt idle_timer

Refer to the pppd(1) man page for information on command line options.

In our example, here is the Autostart entry on robin for connecting to lark:

pppd	 robin:lark  auto  idle  150

The pppd started here has this connection configuration:

Local and remote hosts:

robin and lark, respectively

Daemon mgmt. option:

Auto (respond to the arrival of a packet by initiating a connection to peer).

Link management option:

Idle (idle timer in effect).

Idle timer value:

150 (shut down the link if 150 seconds pass without receiving or transmitting a packet.

Printable version
Privacy statement Using this site means you accept its terms Feedback to webmaster
© 1997 Hewlett-Packard Development Company, L.P.