How to do ADSL dialing under Linux!__linux

Source: Internet
Author: User
Installing dial-up Software
First, you must install the corresponding ADSL dialing software. In the usual Redhat release, this RPM package comes with PPPoE.
We implement this through the following command:
[Root@www root]# Rpm-qa|grep PPPoE
Rp-pppoe-3.4-7
The output of this command determines whether the PPPoE package has been installed in the system. RPM-QA is the list of packages that are already installed on your system. Through pipe | The output of this command, as input to the second command. grep PPPoE is a list of rows that contain PPPoE. If the return is empty, the description is not installed. If installed, the version number installed with PPPoE is returned. If you have not installed it, install it using the following command.
[Root@www root]# RPM-IVH redhat/ppp-2.4.1-7.i386.rpm
In this way, you have installed the software needed for dialing.

Configure network adapters
Dial-up requires that the Dial-up network card be set to dynamically acquire IP. and the dynamic acquisition of IP when the machine is started, it will take a long time to obtain IP. Therefore, we'd better not activate the NIC setting without starting.
Set up the network card, using the command netconfig can be related to the configuration of networking information. Of course, you can also do this by modifying the configuration file of the NIC:
[Root@www root]# Vim/etc/sysconfig/network-scripts/ifcfg-eth0

Configuring Dial-up Software
With dial-up software installed, next, set up and tell PPPoE how to dial. Start the settings by following this command:
[Root@www root]# Adsl-setup
First, you will see the welcome message.
Welcome to the ADSL client setup. I'll run some checks on
Your system to make sure the PPPoE client is installed properly ...
Then ask us to enter the login name.
LOGIN NAME
Enter your Login Name (default root):
Next, we are asked to select the network interface to use. At this time, we fill in the network card we just set up. For most friends with only one NIC, the default eth0 is OK.
INTERFACE

Enter the Ethernet interface connected to the ADSL modem
For Solaris, this are likely to be something LIKE/DEV/HME0.
For Linux, it'll be ethx and where ' X ' is a number.
(Default eth0):

Next, the question is whether the ADSL connection will continue to remain connected. Or it is automatically disconnected, at a specified time (in seconds). In most cases, we want to manually turn off the connection. So here you choose the default No.
Do you want the "link to come up" demand, or stay up continuously?
If you are want it to come up on demand, enter the idle time in seconds
After which the link should to be dropped. If you are want the link to
Stay up permanently, enter ' no ' (two letters, lower-case.)
Note:demand-activated links do not interact-with dynamic IP
Addresses. Have some problems with demand-activated links.
Enter the demand value (default NO):
Again, it's DNS. I find that a lot of times, PPPoE is not able to get DNS information correctly. I suggest you enter a DNS address. This information is generally available on the ISP's website.
Dns

Please enter the IP address of your ISP ' s primary DNS server.
If your ISP claims that ' the server would provide dynamic DNS addresses ',
Enter ' server ' (all lower-case) here.
If you just press ENTER, I'll assume you know what you are
Doing and not modify your DNS setup.
Account password is required, entered two times. The password display style is the same as anywhere else and does not appear on the screen. This, I do not know how to fill in the change. Too advanced a question. I hope you will share your answers with me. P
PASSWORD

Please enter your Password:
Please re-enter your Password:
The following setting indicates whether normal users are allowed to enable/turn off ADSL connections. Default is allowed.
Please enter ' Yes ' (two letters, lower-case.) If your want to allow
Normal user to start or stop DSL connection (default Yes):
Let's look at the firewall option. The firewalls provided here can provide you with basic security protection. I do not recommend you to use-you'd better choose the ' NONE ' option. No matter what kind of user you use, I recommend that you use additional tools to configure firewall rules (Iptables is now a very good tool).
Firewalling

Please choose the firewall rules to use. Note this these rules are
Very basic. Are strongly encouraged to use a more sophisticated
Firewall setup; However, these are provide basic security. If You
are running any servers in your machine, you must choose ' NONE ' and
Set up firewalling yourself. Otherwise, the firewall rules would deny
Access to all standard servers like Web, e-mail, FTP, etc. If You
are using SSH, the rules would block outgoing SSH connections which
Allocate a privileged source port.

The firewall choices are:
0-none:this script would not set any firewall rules. You are responsible
For ensuring the security of your machine. You are strongly
Recommended to use some kind of firewall rules.
1-standalone:appropriate for a basic stand-alone web-surfing workstation
2-masquerade:appropriate for a machine acting as an Internet gateway
For a LAN
Choose a type of firewall (0-2): Start This connection at boot time
Whether to turn on this connection when powering on.
Do your want to start this connection at boot time?**
Once all the configuration information has been completed, the system will give a report that fully displays the configuration information you have entered. If you are sure that the configuration information you entered is correct, enter Yes to write to the configuration file. Enter No to discard configuration.
Summary of what you entered * *

Ethernet Interface:eth0
User Name:root
Activate-on-demand:no
Dns:do Not Adjust
Firewalling:none
User Control:yes
Accept These settings and adjust configuration files (y/n)?

Please enter no or Yes (default NO):



Congratulations, it should be all set up!

Type '/sbin/ifup ppp0 ' to bring up your xDSL link and '/sbin/ifdown ppp0 '
To bring it down.
Type '/sbin/adsl-status/etc/sysconfig/network-scripts/ifcfg-ppp0 '
to the link status.

Test dialing
Now we need to test that our dialing is configured correctly.
Enter Adsl-start dialing. In general, I will ping my ISP's primary www server. Like what
Ping www.scmy169.com
If you are not afraid of trouble, open the browser test, you can. If everything is OK. Then we can end our configuration.
Of course, if you close the connection, you can use the command adsl-stop.

End
This article concludes by introducing the general method of ADSL dialing in the command line mode in the Linux operating system. If you have any questions, please feel free to discuss with me.
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.