(a) Remote station settings:
The simplest approach is to establish a PPP login for a dial-up connection on a remote machine:
PPP:OFF:700:700:PPP Acount:/home/ppp:home/ppp/ppplogin
Establish the starting directory for the account;
# MKDIR/HOME/PPP
# chown PPP. /home/ppp
Note in the newly added line, the following program is used as the landing shell:
/home/ppp/ppplogin
In fact, it's not a shell program. Instead, the script used to start the PPPD daemon on the remote machine.
Its typical form is as follows:
#!/bin/sh
EXEC/USR/SBIN/PPPD 38400 Modem asyncmap 0 proxyarp 194.61.21.2:194.61.21.49
Modem parameter: When the local side hangs up the phone, PPPD should completely disconnect the link with the modem control line of the RS232 interface.
Asyncmap 0: Depending on the serial connection to the remote machine, the connection may use the ASCII control Code (0~31) for a special purpose.
TCP/IP network Ethernet does not directly utilize IP addresses, but instead uses Ethernet hardware addresses to transmit data
Package. The protocol that translates an IP address into an Ethernet hardware address is called an address Resolution protocol.
(b) Local station settings:
(1): Write a shell script, run the PPPD daemon on the local machine, then connect the remote machine via the modem and log in to the PPP account.
Method: With PPPD and dialer chat, when installing PPP packages from Linux Publishing, PPPD and Char, along with other useful programs and script, are loaded from the east.
Scripts to connect to remote machines:
/USR/SBIN/PPPD Connect '/usr/sbin/chat "" ATDT334566
CONNECT "" ' Ogin:ppp Word:pa55word '/dev/modem 38400
Modem Defaultroute IP 194.61.21.49;194.61.21.233
Linux Summary application three installation and configuration serial, parallel link