Configure the NIC for CentOSlinuxadsl

Source: Internet
Author: User
1. check the NIC status: ifconfig to check whether the network cable is plugged in: ethtoolem1 (em1 is set to intranet by default). check the line of Speed,

1. view the NIC status: ifconfig

Check whether the network cable is plugged in: ethtool em1 (em1 defaults to intranet). check the line of Speed. if it is Unknown, the network cable is not plugged in. if it is 1000 Mb/s, the network cable is plugged in.

2. check whether the system has installed ppp: rpm-qa | grep pppoe, or check whether the pppd file exists in/usr/sbin/pppd. if not:

(1) network:

(Use and configure an intranet gateway:

Add GATEWAY = 192.168.0.10 to modify vi/etc/sysconfig/network-scripts/ifcfg-em1 (em1 is intranet by default) or comment it on,

In this case, the server will access the Internet through the Intranet without adsl. After configuring adsl, log off or delete GATEWAY = 192.168.0.10.

)

Install with yum: sudo yum install pppoe or sudo yum install rp-pppoe.

(2) without a network:

Download: rp-pppoe

Ftp://ftp.muug.mb.ca/mirror/centos/5.10/ OS /x86_64/CentOS/rp-pppoe-3.5-33.el5.x86_64.rpm

When rpm-ivh is used for installation, an error is reported: ppp cannot be found.

Then, download the dependency package ppp.

Ftp://ftp.muug.mb.ca/mirror/centos/5.10/ OS /x86_64/CentOS/ppp-2.4.4-2.el5.x86_64.rpm

When rpm-ivh is used for installation, an error is reported: ppp cannot be found.

Then, download the dependent package libpcap.

ftp://ftp.muug.mb.ca/mirror/centZ ??" http://www.2cto.com/kf/ware/vc/ "Target =" _ blank "class =" keylink "> encrypt/uo6zIw7KmusXX1Lavu/HIoc34udg8L3A + encrypt/decrypt + CjxwPgogICDM4cq + decrypt" N' is a number. (default em1): Enter the adsl network card name. The default value is em1 (intranet network card). it is best to start from em2.

Prompt input: Enter the demand value (default no): Enter no

Enter the DNS information here: Enter the server, which indicates the IP address of the DNS server automatically obtained through ADSL dialing.

Prompt: Please enter your PPPoE password: enter the password of the ADSL account

Prompt input: Choose a type of firewall (0-2): Input 0 (0 indicates no firewall is used)

Prompt: 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 input again.

5. start ADSL

Pppoe-connect starts PPPOE. if the connection is successful, Connected is displayed. if the connection fails, check the network cable, adsl modem, and other physical devices and view the information in/var/log/messages.

Pppoe-stop: disconnect an ISP

Pppoe-status view the current connection status

If you want to start ADSL at startup: chkconfig -- add adsl







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.