Linux Summary application three installation and configuration serial, parallel link

Source: Internet
Author: User

(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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.