Due to the use of Internet broadband connections, the dial-up modem is outdated, but there are still some situations that require dial-up access. a ppp server in the Office provides another method for users to access email and Internet when they are on a business trip. when a server or network problem occurs, the dial-up modem also provides an emergency connection for the system administrator. the following describes how to configure a PPP server to allow the system administrator to use Red Hat Enterprise Linux, Microsoft Windows, OS
Due to the use of Internet broadband connections, the dial-up modem is outdated, but there are still some situations that require dial-up access. a ppp server in the Office provides another method for users to access email and Internet when they are on a business trip. when a server or network problem occurs, the dial-up modem also provides an emergency connection for the system administrator. the following describes how to configure a PPP server to allow remote access by the system administrator when using the Red Hat Enterprise Linux, Microsoft Windows, OS X, or other operating systems that support PPP dialing. on the remote client's dialing software, you only need to enter the modem's phone number, user name, and password. On the client side, no additional configurations are required for Red Hat Enterprise Linux and other operating systems.
Follow these steps to configure a Red Hat Enterprise Linux PPP Server:
1. In the/etc/mgetty + sendfax/login. config file, remove the comment of the row where 'autoppp 'is located:
/AutoPPP/-a_ppp/usr/sbin/pppd auth-chap + pap login debug
2. Adjust the port speed in the/etc/mgetty + sendfax/mgetty. config file to match the modem parameters.
Speed57600
3. Add the following lines to the/etc/inittab file:
Ppp0: 345: respawn:/sbin/mgetty-x 3 ttyS0
Change ttyS0 (ttyS0 is the first serial port) to the port connecting to the modem. each modem requires one line. if multiple modems are used, each modem requires a unique terminal name (ppp0 here is the name), and ttyS0 needs to be changed to an appropriate serial port. if you are not sure which port the modem is connected to, use the following port query command:
Wvdialconf/tmp/wvdialtest. conf
The output of this command will show which port the modem connects to. The display is similar:
"Found a modem on/dev/ttyS0, using link/dev/modem in config"
4. add the following content to the/etc/ppp/options file. do not forget to delete any existing options in this file and add the real DNS server to the row where ms-dns is located:
# Don't fork to become a background process (otherwise pppd will do so
# If a serial device is specified ).
-Detach
# Async character map -- 32-bit hex; each bit is a character
# That needs to be escaped for pppd to receive it. 0 x0 00000001
# Represents '\ x01', and 0x80000000 represents '\ x1f '.
Asyncmap 0
# Set the interface netmask to, a 32 bit netmask in "decimal dot"
# Notation (e.g. 255.255.255.0 ).
Netmask 255.255.255.0
# Add an entry to this system's ARP [Address Resolution Protocol]
# Table with the IP address of the peer and the Ethernet address of this
# System.
Proxyarp
# Specifies that pppd shoshould use a UUCP-style lock on the serial device
# To ensure exclusive access to the device.
Lock
# Use hardware flow control (I. e. RTS/CTS) to control the flow of data
# On the serial port.
Crtscts
# Use the modem control lines. On Ultrix, this option implies hardware
# Flow control, as for the crtscts option. (This option is not fully
# Implemented .)
Modem
# This machine does not authenticate callers
Noauth
# Set DNS servers. Replace aa. bb. cc. dd and ee. ff. gg. hh with the actual
# DNS servers for your environment.
Ms-dns aa. bb. cc. dd
Ms-dns ee. ff. gg. hh