Cainiao's self-taught Linux --- full introduction to ADSL settings

Source: Internet
Author: User
Tags nameserver
1. Install RP-pppoe
To Http://www.roaringpenguin.com/pppoe/#downloadDownload the source code of the latest version of RP-pppoe.

Tar xzvf rp-pppoe-3.5.tar.gz
Then go to the decompressed directory:
CD rp-pppoe-3.5
CD SRC

The next step is to compile and install the regular configuration, and you can follow the default settings:

./Configure
Make
Make install

So far, the installation is complete. The following is the setup process.

Ii. Settings
1. Configure your Nic and run: ifconfig eth0
Do not set an IP address for this NIC (the NIC connected to the ADSL modem) or activate the NIC when the system is started.
2. Run ADSL-setup # ADSL-Setup
Welcome to the roaring penguin ADSL Client Setup. First, I will run some checks on your system to make sure the pppoe client is installed properly... looks good! Now, please enter some information:

User Name
>;>;>; Enter your pppoe User Name (default XXX): Enter the ADSL user name here.

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 ethn, where 'n' is a number. (default eth0): If a NIC is set to 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 need to write anything

DNS
Please enter the IP address of your ISP's primary DNS server. if your ISP claims that 'the server will provide 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: Enter the primary DNS address: 202.106.0.20
The next backup DNS address is 202.106.196.115 // the DNS server address of Beijing CNC. You can set different DNS server addresses based on your region.

Password
>;>;>; Please enter your pppoe password: enter the password
>;>;>; Please re-enter your pppoe password: enter the password again.

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): Add 2 here.

** Summary of what you entered **
Ethernet interface: eth0
User name: XXX
Activate-on-demand: No
DNS: Do not adjust
Firewalling: Masquerade
>;>;>; Accept these settings and adjust configuration files (y/n )?

3. Check/etc/PPP/PAP-secrets, which should contain the account and password you just set (the password is *).

4. edit/etc/PPP/pppoe. conf.
Eth = eth1 change eth1 to eth0 (if you only have one Nic) user = bxxxnxnx@sympatico.ca change bxxxnxnx@sympatico.ca to the ADSL account you just set other don't touch.

5. View/etc/resolv. conf
Nameserver XXX. XXX (it should be your first DNS address)
Nameserver XXX. XXX (it should be your second DNS address)

6. Run ADSL-connect & connection. You can view the status of your link during this period: ADSL-status.

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.