Sun Microsystems, Inc.
spacerspacer
spacer www.sun.com docs.sun.com |
spacer
black dot
 
 
31.  Setting Up a Dial-up PPP Link (Tasks) Configuring the Dial-in Server How to Configure Users of the Dial-in Server  Previous   Contents   Next 
   
 

Where to Go From Here

Task

For Instructions

Set up more users of the dial-in server

"How to Configure Users of the Dial-in Server"

Configure communications over the dial-in server

"How to Define Communications Over the Serial Line (Dial-in Server)"

Configuring Communications Over the Dial-in Server

The next task shows how to enable the dial-in server to open communications with any dial-out machine, based on options that are defined in the following PPP configuration files:

  • /etc/ppp/options

  • /etc/ppp/options.ttyname

For detailed information about these files, refer to "Using PPP Options in Files and on the Command Line".

Before you proceed, you should have done the following:

How to Define Communications Over the Serial Line (Dial-in Server)

  1. Become superuser on the dial-in server.

  2. Create the /etc/ppp/options file with the following entry.
    nodefaultroute

    nodefaultroute indicates that no route is defined for the server.


    Note - If the dial-in server does not have an /etc/ppp/options file, only the superuser can run the pppd command. However, the /etc/ppp/options file can be empty.


  3. Create the file /etc/options.ttyname to define how calls that are received over serial port ttyname should be handled.

    The following /etc/options.ttya file defines how the dial-in server's serial port /dev/ttya should handle incoming calls.

    :10.0.0.80
    xonxoff

    :10.0.0.80

    Assigns the IP address 10.0.0.80 to all peers that are calling in over serial port ttya

    xonxoff

    Allows the serial line to handle communications from modems with software flow control enabled

Where to Go From Here

If you have followed all the procedures in this chapter, you have completed the configuration of the dial-up link.

Task

For Instructions

Test modem connectivity by dialing out to another computer

cu(1C) andtip(1) man pages. These utilities can help you test if your modem is properly configured and can establish a connection with another machine.

Configure more options for the dial-in server

"Configuring the Dial-in Server"

Configure more dial-out machines

"Configuring the Dial-out Machine"

Have the remote machine call the dial-in server

"Calling the Dial-in Server"

Calling the Dial-in Server

You establish a dial-up PPP link by having the dial-out machine call the dial-in server. You can instruct the dial-out machine to call the server by specifying the demand option in the PPP configuration files on the dial-out machine. But the most common method for establishing the link is for the user to run the pppd command on the dial-out machine.

Before you proceed to the next task, you should have done either or both of the following:

How to Call the Dial-in Server

  1. Log in to the dial-out machine by using your regular user account, not root.

  2. Call the dial-in server by running the pppd command.

    For example, the following command initiates a link between the dial-out machine and dial-in server myserver:
    % pppd 57600 call myserver

    pppd

    Starts the call by invoking the pppd daemon

    57600

    Sets the speed of the line between host and modem

    call myserver

    Invokes the call option of pppd. pppd then reads options in the file /etc/ppp/peers/myserver, which was created in "How to Define the Connection With an Individual Peer"

  3. Contact a host on the server's network, for example, the host lindyhop that is shown in Figure 30-1:
    ping lindyhop

    If the link is working correctly, the standard Telnet login sequence should be displayed in the terminal window. If the link is not working correctly, refer to Chapter 35, Fixing Common Problems (Tasks).

  4. Terminate the PPP session:
    % pkill -TERM -x pppd

Where to Go From Here

If you have followed all the procedures in this chapter, you have completed the configuration of the dial-up link.

Task

For Instructions

Have users start working on their dial-out machines

"How to Call the Dial-in Server"

Fix problems on the link

Chapter 35, Fixing Common Problems (Tasks)

Learn more about the files and options that are used in this chapter

"Using PPP Options in Files and on the Command Line"

 
 
 
  Previous   Contents   Next