Install the ADSL dial-up program in SUSE Linux

Source: Internet
Author: User
Tags nameserver

 

Anyone who has used ADSL knows that there is a software named WinPPoE on WINDOWS, which can easily connect to the ISP to access the INTERNET. Do you want to know how to access the Internet through ADSL on LINUX? I just tried it, and now I cannot wait to tell you: I am using SuSe Linux 6.4. The reason for choosing it is that it supports a wide range of hardware and is easy to configure.

1. Packege

SuSe 6.4 contains a pppoed-0.46-7.

2. Set the nic and Gateway

# Ifconfig eth0 mtu 1492 (do not set any IP address for eth0) and make sure that your default gateway is empty.

3. Add the user name and password to/etc/ppp/pap-secrets and/etc/ppp/chap-secrets.

Like this: "szmycom@163.gd" * "mypassword"

4. edit/etc/resolve. conf.

Nameserver 202.96.134.133

Nameserver 202.96.128.68

5. Add the following line to/etc/modules. conf:

Alias char-major-144 pppox

(In fact, this row already exists in my Suse)

6. Modify the file/etc/ppp/options.

       
        # general options    idle 600    # this is a must user    szmycom@163.gd    sync    local    nocrtscts    noauth    usepeerdns    mru 1490    mtu 1490    # this is recommended    defaultroute    hide-password    nodetach    #    # switch off all compressions    # this is a must    noaccomp    nopcomp    # this is recommended    novj    novjccomp    nobsdcomp    nodeflate    noccp
       

Note: Use your logon name.

7. Run/usr/sbin/pppoed to start the connection.

Note: Only the root user can start the connection.

If the network device name you are using is not eth0, you need to start

/Usr/sbin/pppoed-I ethX, X is the ID of the NIC.

8. Inspection,

Use tail-f/var/log/messages to track and diagnose the connection status of ADSL. Use ifconfig to view the IP address allocated to your ppp0 device. if the address is allocated successfully, the connection has been established. You can use the route command to view the gateway address specified by the pulling server. You can ping www.163.com. If you cannot ping www.163.com, it may be caused by your DNS settings.

9. install another Nic on the proxy LAN,

Set the IP address to 192.168.1.1. Add an IP Forwarding rule:

/Sbin/ipchains-A forward-j MASQ-s 192.168.1.0/24-d 0.0.0.0/0

In the LAN, the client sets 192.168.1.1 as the default gateway to access the Internet through this LINUX computer.

The above is my experience in Suse Linux. on Redhat, you can refer to: I have also tried, we think that as long as the content of/etc/ppp/options is the same as that set in Suse, it should be successful. Try it.

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.