RedHat-based ADSL internet access Configuration Guide
Source: Internet
Author: User
Article title: RedHat-based ADSL internet access Configuration Guide. 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.
This article describes how to use ADSL dial-up to access the Internet in Red Hat from the perspective of installing an instance with the command line prompt, hope you can help your friends who encounter this problem.
First, determine whether you have installed the pppoe application. If the installation is complete, run the adsl-setup command on the terminal to start the adsl configuration. the prompt is in English. Probably:
[Root @ localhost root] # adsl-setup
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: ppp0 // The default value is ppp0.
LOGIN NAME
Enter your Login Name (default SJ00411210A1): anthrax // use your own username to replace my anthrax :)
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): eth0 // The default Nic device is 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 to 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): no // you can use the default no here, and do not automatically dial after disconnection.
DNS
Please enter the IP address of your ISP's primary DNS server. if your ISP claims that 'the server will provide dynamic DNS address', enter 'server' (all lower-case) here. if you just press enter, I will assume you know what you are doing and not modify your DNS setup. enter the DNS information here: 202.96.134.133 // set the primary DNS address and replace it according to your actual situation.
Please enter the IP address of your ISP's secondary DNS server.
If you just press enter, I will assume there is only one DNS server.
Enter the secondary DNS server address here: 202.96.134.133 // set the second DNS address.
PASSWORD
Please enter your Password: // Set the Password here. like unix rules, the Password does not display back, so do not think your keyboard is faulty :)
Please re-enter your Password:
// Confirm the password
USERCTRL
Please enter 'yes' (two letters, lower-case .) if you want to allow normal user to start or stop DSL connection (default yes): yes // whether common users are allowed to share ADSL.
FIREWALLING
Please choose the firewall rules to use. note that these rules are very basic. you are stronugly encouraged to use a more sophisticated firewall setup; however, these will provide basic security. if you are running any servers on your machine, you must choose 'none' and set up firewalling yourself. otherwise, the firewall rules will deny access to all standard servers like Web, e-mail, ftp, etc. if you are using SSH, the rules will block outgoing SSH connections which allocate a privileged source port.
The firewall choices are:
0-NONE: This script will not set any firewall rules. You are responsible for ensuring the security of your machine. You are stronugly 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): 1 // Configure the firewall level based on your needs.
Start this connection at boot time
Do you want to start this connection at boot time?
Please enter no or yes (default no): no // whether to allow automatic loading upon startup. select no here; otherwise, the system starts too slowly!
** Summary of what you entered **
Ethernet Interface: eth0
User name: anthrax
Activate-on-demand: No
Primary DNS: 202.96.134.20.
Secondary
DNS: 202.96.134.20.
Firewalling: STANDALONE
User Control: yes
Accept these settings and adjust configuration files (y/n )?
Select y. The configuration is complete. You can use the adsl-start command to start the instance, or use the adsl-stop command to stop the instance.
For convenience, you can create an application link on the desktop and use the adsl-start command. In this way, you can create an adsl link by double-clicking the shortcut icon, which is as convenient as in windows.
Now, let's start your network journey. (Tip: If you cannot connect to the network according to the operations described in this article, you can try to delete the current network card in "System Settings-> Network" and reconfigure the adsl item .)
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