YoLinux Tutorial - Configuring Linux PPP Dial-in

Configuration of Linux system to provide PPP for dial-in services. It would be wise to have a dedicated phone line as the modem will be configured to answer all calls.

Piece in work - Still trying to figure it all out - don't believe a word I say on this page!!!


General PPP Info:

Point to Point Protocol, or ppp, is used to create your connection over one's analog telephone modem. Your computer will use communication ports, known as "COM" ports to access your modem. Linux will refer to these hardware COM ports as Unix devices as follows:

Linux DeviceDOS com port numberI/O AddressIRQMajor Device #Minor Device #
/dev/ttyS0COM1 (Incomming)3F84464
/dev/cua0COM1 (Outgoing)3F84564
/dev/ttyS1COM2 (Incomming)
(Typically used for external modems)
2F83465
/dev/cua1COM2 (Outgoing)2F83565
/dev/ttyS2COM3 (Incomming)3E84466
/dev/cua2COM3 (Outgoing)3E84566
/dev/ttyS3COM4 (Incomming)2E83467
/dev/cua3COM4 (Outgoing)2E83567


Manual configuration:

This example is the manual configuration specific to Red Hat 5.2 /6.0/6.1/6.2 and a US Robotics 56k modem.

Perform the following configuration as user root.

  1. Configure modem and serial line:

    Edit the following files:

  2. PPP configuration:

    /etc/ppp/options - File should look like this:
           debug                   - log transactions to /var/log/messages
           auth -chap +pap login
           modem                   - Serial link is connected to a modem
           crtscts                 - Use hardware flow control
           asyncmap 0              - Choice of mapping of control characters
           netmask 255.255.255.0
           proxyarp                - Answer arp requests
           ms-dns XXX.XXX.XXX.XXX - DNS name server
           lock                    - Don't let other processes besides PPP use the device
       

    Other options to look at: ms-wins, login, mtu, mru, deflate ...

    /etc/ppp/options.ttyS1 - Assign an IP address to dial in client.

          XXX.XXX.XXX.XX1:XXX.XXX.XXX.XX2
       

    Where the first IP address is the address of the server and the second is the IP address assigned to the dial in user.

    See file /var/log/messages for diagnostic messages. Requires "debug" option in /etc/ppp/options file.

  3. Configuration Done!


Alternate login configuration (Previous method is better):

Alternately one can give the mode the command: ATE1Q0V1&C1&S0S0=1&W
It is stored it with the modem comand AT&W

Configure user account for auto ppp:

   user1:x:901:901::/home/user1:/opt/bin/run-dial-in-ppp

/opt/bin/run-dialin-ppp - File should look like this:

   exec /usr/sbin/pppd -detach


Modem Standards:

Standard NameBits Per Second (BPS)
V.90 (V.PCM)56,600
V.34 (V.PCM)28,800
V.32 (turbo)19,200
V.32 (bis)14,400
V.32 9,600
V.22 (bis)2,400
V.22 1,200
V.21 300
V.29 (Group III FAX) 9,600
V.27ter (Group III FAX) 4,800
V.17ter (Group III FAX) 14,400


More Info and Links:

mgetty Links:


Copyright © 2001 by Greg Ippolito