System Administration Guide: Resource Management and Network Services

How to Define the Connection With an Individual Peer

  1. Become superuser on the dial-out machine.

  2. Update DNS databases by creating the following /etc/resolv.conf file:


    domain bigcompany.com
    nameserver 10.10.111.15
    nameserver 10.10.130.8
    

    domain bigcompany.com

    Specifies that the peer's DNS domain is bigcompany.com.

    nameserver 10.10.111.15

    nameserver 10.10.130.8

    Lists the IP addresses of name servers at bigcompany.com.

    For complete details on DNS implementation, refer to “DNS Administrtaion (Reference)” in System Administration Guide: Naming and Directory Services (DNS, NIS, and LDAP).

  3. Edit the /etc/nsswitch.conf file to have the DNS database searched first for host information.


    hosts:      dns [NOTFOUND=return] files 
  4. Create the /etc/ppp/peers directory, and then add a file for the peer.

    For example, you would create the following file to define the dial-in server myserver:


    # cd /etc/ppp
    # mkdir peers
    # cd peers
    # vi myserver
    /dev/cua/a
    57600
    noipdefault
    defaultroute
    idle 120
    noauth
    connect "chat -U 'mypassword' -T 1-123-555-1213 -f /etc/ppp/mychat"
    

    /dev/cua/a

    Specifies that the device /dev/cua/a should be used as the serial interface for calls to myserver.

    57600

    Defines the speed of the link. 

    noipdefault

    Specifies that for transactions with peer myserver, the dial-out machine initially has an IP address of 0.0.0.0. myserver assigns an IP address to the dial-out machine for every dial-up session.

    idle 120

    Indicates that the link is to time out after it is idle for 120 seconds. 

    noauth

    Specifies that the peer myserver does not need to provide authentication credentials when negotiating the connection with the dial-out machine.

    connect "chat -U 'mypassword' -T 1-123-555-1213 -f /etc/ppp/mychat"

    Specifies the connect option and its arguments, including the phone number of the peer, and the chat script /etc/ppp/mychat with calling instructions.

Where to Go From Here

Task 

For Instructions 

Configure another dial-out machine 

How to Configure the Modem and Serial Port (Dial-out Machine).

Test modem connectivity by dialing out to a another computer 

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

Get detailed information about the PPP configuration files 

Using PPP Options in Files and on the Command Line.

Begin configuring the dial-in server 

Configuring Devices on the Dial-in Server.