Linux allows you to access the Internet easily-configure a dial-up network in Linux

Source: Internet
Author: User
Article title: Linux allows you to access the Internet easily-configure a dial-up network in Linux. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.
1. Bash Shell (character interface) configuration
  
  
1. install Modem
  
To facilitate memory usage, connect your Modem to the/dev/modem device. for example, if your Modem is installed in COM2 under DOS, you can use the following command: # ln-s dev/cau1 spd. hi
  
Then set the maximum Modem rate:
  
# Setserial/dev/cau1 spd. hi or # setserial/dev/cau1 spd. vhi
  
The difference between the two commands is that the former can set the maximum rate of Modem to 57600bps, while the latter can set the maximum rate of Modem to 115200bps.
  
2. set the dialing Script
  
PPP software packages are included in all Linux versions. pppd, chat, and some useful programs and scripts are automatically loaded. A typical Script for dial-up calling is as follows:
  
/Usr/sbin/pppd connect '/usr/sbin/chat "" ATDT163 CONNECT "" ogin: username word: password'/dev/modem 38400 modem defaultrout
  
This text must be saved as a line in a text file. Then, run the chmod command to grant it executable attributes. you 'd better put it in the Sbin directory or Bin directory for direct execution.
  
However, if you are not a Linux expert, it is difficult for you to create a suitable dialing Script. we can use the Bash Shell tool pppsetup to set it. this is a very convenient tool, just put the compressed file in a temporary directory and run/pppsetup.
  
Phone number atdt163
  
Modem com2
  
Modem init str default
  
Callback no
  
Service provider domain name: lyg.js.cn
  
Provider's nameserver ip address: 202.102.12.141
  
Service provider CHAP
  
After filling in, this program will automatically generate a ppp-go program in your Sbin Directory. you just need to run it.
  
  
II. configuration in X-Window
  
  
1. install Modem
  
Installing Modem in X-Window is very easy. click the Modem icon on the control panel, select the line where your Modem is located, and click OK.
  
2. configure the Network
  
Click the Network configuration icon in the control panel. The Network Configurator panel is displayed. There are four main menus: Names, Hosts, Interfaces, and Routing.
  
Names: enter the host name in the HostName field, for example, info.
  
Enter the Domain name in the Domain, for example, lyg.js.cn.
  
Enter DNS in NameServer, for example, 202.102.12.141.
  
HostName: enter the host's IP address. do not need to use the host Name or NickName.
  
Interfaces: click the ADD button, select ppp from the displayed device menu, and click "OK". enter "163 (169)", "UserName", and "Password ". Click Customize to enter Networking. because it is a dynamic IP address, select Defaultroute and click "Done" for storage configuration.
  
Routing: skip it.
  
Then, the system will display your Interface Table, with an additional ppp0 account on it, which is your configured dial-up network device. click the Activate button under "activate" to use it. Okay. Have you heard the dial tone? Congratulations, otherwise, try again.
  
  
Related Article

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.