System Administration Guide: Network Services

ProcedureHow to Define the Connection With an Individual Peer

  1. Become superuser on the dial-out machine or assume an equivalent role.

    Roles contain authorizations and privileged commands. For more information about roles, see Configuring RBAC (Task Map) in System Administration Guide: Security Services.

  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 and nameserver 10.10.130.8

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

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


    hosts:      dns [NOTFOUND=return] files 
  4. Create a file for the peer.

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


    # cat /etc/ppp/peers/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 must time out after an idle period of 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.

See Also

The following list provides references to related information.