Configure ADSL in RedHat

Source: Internet
Author: User
ADSL (RP-pppoe tool) installation, use method (this article based on the original article of linuxcn modified, the original see: http://www.linuxfans.org/nuke/modules.php? Name = forums & file = Viewtopic & t = 218 & Highlight = ADSL)

Configure Nic
Run netconfig and select DHCP to save and exit.

Install RP-pppoe
Download the latest RP-pppoe source code file (search for it in Google) and install it under root. Magic Linux is installed by default.
For example: Enter Linux, unzip the rp-pppoe-3.5.tar.gz:
# Tar-zxf rp-pppoe-3.5.tar.gz
Enter the generated directory:
# Cd rp-pppoe-3.5
Run the script go in the directory:
#./Go
Will be automatically compiled and installed.

Configure dialing
Call/usr/sbin/ADSL-setup for configuration
# ADSL-Setup
When
>>> Enter your pppoe User Name:
Enter the username of the ADSL account
When
>>> 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 ethn, where 'n' is a number.
(Default eth0 ):
Enter eth0, which is the name of the network card connected to ADSL
When
>>> Enter the demand values (default no ):
Enter NO
When
>>> Enter the DNS information here:
Enter the corresponding DNS Server IP address (usually 2). In magic Linux, you usually need to enter the server, that is, let the system automatically allocate the IP address
When
>>> Please enter your pppoe password:
Enter your ADSL account password
When
>>> Choose a type of firewall (0-2 ):
Enter 0 or 1
When
>>> Accept these settings and adjust configuration files (y/n )?
If the entered information is correct, enter y to complete the configuration. Otherwise, enter n to enter again.

Dial-up Internet access
Then run the following command:
ADSL-start starts the pppoe client software for connection. If the connection is successful
Connected;
Disconnect from ISP through ADSL-stop
View the status of the current connection through ADSL-status

Tip
If you want to automatically start the ADSL connection when Linux is started, enter the following command:
# Chkconfig -- add ADSL
The self-starting script of ADSL will be added to the current running level
If you do not want to run it automatically, you can choose to run ADSL-start on the terminal before accessing the Internet!
If you do not know the IP address of the corresponding DNS server, after dialing in windows, run ipconfig/all in the MS-DOS window to view the IP address of the DNS server (usually two ). If windows is not installed on the local machine, you can also operate on other hosts with Windows installed in the local region.

For example:
I:> ipconfig/all

Windows 2000 IP configuration

Host Name ......: Star
Primary DNS suffix .......:
Node Type ......: Broadcast
IP routing enabled...: No
Wins proxy enabled...: No

Ethernet Adapter local connection:

Connection-specific DNS suffix .:
Description ......: RealTek rtl8139 (a) PCI fast etherne
Adapter
Physical address ......: 00-d0-f8-3d-ca-d8
DHCP enabled...: Yes
Autoconfiguration enabled...: Yes
Autoconfiguration IP address...: 169.222.23.123
Subnet Mask ......: 255.255.0.0
Default Gateway .........:
DNS servers ...........:

PPP adapter connection device RealTek rtl8139 (a) PCI Fast Ethernet Adapter:

Connection-specific DNS suffix .:
Description ......: Wan (PPP/slip) Interface
Physical address...: 00-53-45-00-00-00
DHCP enabled...
IP address ......: 221.206.209.250
Subnet Mask ......: 255.255.255.255
Default Gateway ......: 221.206.209.250
DNS servers ......: 202.106.100.213
202.106.87.65
NetBIOS over TCPIP ......: Disabled

We can see that:
DNS servers ......: 202.106.100.213
202.106.87.65'

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.