Adsl dialing and Internet sharing in linux

Source: Internet
Author: User
Article title: adsl dial-up and Internet sharing 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.

Multiple computers access the Internet through ADSL at the same time. if there is a route, it is too simple. But what if there is no route but a switch? There are two methods.

1. using a dual Nic (one connected to the intranet, one connected to the Internet) to install Proxy server software (winGet in windows), but this method requires two NICs (waste ), at the same time, we also need to install agent software (annoying, and pirated ).
2. solve the problem by using the shared dial-up connection. this method is simple and does not require other software.

For the implementation of the second method in windows, there is a lot of article on the internet and it is very simple. I will not elaborate on it here.

Next, let's take a simple record on how to use the adsl dial-up and Internet sharing in linux (tested in centOS4.4, rhel as 4, and fc5), hoping to help new users.

1. dial-up online
1.1 dial-up software
There are a lot of code pulling software in linux, but the better is rp-pppoe. Generally, the linux system will bring its own code pulling Software. if you haven't installed it, please go to google to find one to install it.
1.2 dial-up settings
Switch to the root user. only the root user can be configured.
$ Su
Password:
#/Sbin/adsl-setup
Follow the prompts to set the user name, password, DNS, and other relevant information. The following is my reference configuration:
Welcome to the ADSL client setup. First, I will run some checks on
Your system to make sure the PPPoE client is installed properly...

The following DSL config was found on your system:

Device: Name:
Ppp0 DSLppp0

Please enter the device if you want to configure the present DSL config
(Default ppp0) or enter 'n' if you want to create a new one:

LOGIN NAME

Enter your Login Name (default xyn0699647 ):

INTERFACE

Enter the Ethernet interface connected to the ADSL modem
For Solaris, this is likely to be something like/dev/hme0.
For Linux, it will be ethX, where 'X' is a number.
(Default eth0 ):

Do you want the link to come up on demand, or stay up continuously?
If you want it to come up on demand, enter the idle time in seconds
After which the link shoshould be dropped. If you want the link
Stay up permanently, enter 'no' (two letters, lower-case .)
NOTE: Demand-activated links do not interact well with dynamic IP
Addresses. You may have some problems with demand-activated links.
Enter the demand value (default no ):

DNS

[1] [2] [3] Next page

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.