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