System Administration Guide: Network Services

ProcedureHow to Create the Instructions for Calling a Peer

Before the dial-out machine can initiate a PPP link, you must collect information about the dial-in server that is to become the peer. Then, you use this information to create the chat script, which describes the actual conversation between the dial-out machine and the peer.

  1. Determine the speed at which the dial-out machine's modem needs to run.

    For more information, see Configuring Modem Speed for a Dial-up Link.

  2. Obtain the following information from the dial-in server's site.

    • Server's telephone number

    • Authentication protocol that is used, if appropriate

    • Login sequence that is required by the peer for the chat script

  3. Obtain the names and IP addresses of name servers at the dial-in server's site.

  4. In a chat script, provide instructions for initiating calls to the particular peer.

    For example, you might create the following chat script, /etc/ppp/mychat, to call the dial-in server myserver.

    SAY "Calling the peer\n"
            TIMEOUT 10
            ABORT BUSY
            ABORT 'NO CARRIER'
            ABORT ERROR
            REPORT CONNECT
            "" AT&F1&M5S2=255
            TIMEOUT 60
            OK ATDT1-123-555-1234 
            CONNECT \c
            SAY "Connected; logging in.\n"
            TIMEOUT 5
            ogin:--ogin: pppuser
            TIMEOUT 20
            ABORT 'ogin incorrect'
            ssword: \qmypassword
            "% " \c
            SAY "Logged in.  Starting PPP on peer system.\n" 
            ABORT 'not found'
            "" "exec pppd"
            ~ \c

    The script contains instructions for calling a Solaris dial-in server that requires a login sequence. For a description of each instruction, refer to Basic Chat Script Enhanced for a UNIX-Style Login. For complete details about creating a chat script, read the section Defining the Conversation on the Dial-up Link.

    Note –

    You do not invoke the chat script directly. Rather, you use the file name of the chat script as an argument to the chat command, which invokes the script.

    If a peer runs Solaris or a similar operating system, consider using the previous chat script as a template for your dial-out machines.