Linux system installed after the network card configuration, to resolve the Internet can not be connected (restart after the Internet) (novice)

Source: Internet
Author: User

After installing the system, the network card will not set the novice more headaches, then follow the following steps to set


First log in to the system ifcongif see if there is a network card IP

650) this.width=650; "Src=" Http://s5.51cto.com/wyfs02/M00/82/2E/wKiom1dNYl-DocSJAAA_DcneyLg309.png-wh_500x0-wm_3 -wmp_4-s_907879304.png "title=" qq picture 20160531180637.png "alt=" Wkiom1dnyl-docsjaaa_dcneylg309.png-wh_50 "/>


No then dhclient automatically get one, will be stuck, and there will be no information output

Then ifconfig generate Eth0, and with IP, remember addr

650) this.width=650; "Src=" Http://s4.51cto.com/wyfs02/M02/82/2E/wKiom1dNYw7Bxzh-AAAnldnUh2s352.png-wh_500x0-wm_3 -wmp_4-s_1320818312.png "title=" 2.png "alt=" Wkiom1dnyw7bxzh-aaanldnuh2s352.png-wh_50 "/>


Route-n View Gateways also remember


Edit the NIC profile Vi/etc/sysconfig/network-scripts/ifcfg-eth0 (press A or I to enter the edit state)


Follow the configuration as follows (7 lines open on the existing, modify the Red section, and add the following line)


Device=eth0

hwaddr=00:0c:29:98:a6:56

Type=ethernet

uuid=5bc57dd5-94d8-42f4-87ec-b08f99d4c308

Onboot change to Yes whether booting up

Nm_controlled=yes

Bootproto modified to static meaning


ipaddr= increase ip,ifconfig out of IP

netmask=255.255.255.0 Add Subnet mask

gateway= route-n View Add Gateway

Peerdns=no will not be affected by RESOLV command after increase

dns1=8.8.8.8 adding DNS

dns2=4.4.4.4 add DNS, want to write can write multiple


650) this.width=650; "Src=" Http://s1.51cto.com/wyfs02/M02/82/2C/wKioL1dNZ0PgxGXlAAApj04AEDo924.png-wh_500x0-wm_3 -wmp_4-s_2058616387.png "title=" 30.png "alt=" Wkiol1dnz0pgxgxlaaapj04aedo924.png-wh_50 "/>

Finally, press ESC to exit edit mode, then shift plus: Enter WQ save to exit


Restart Network Service/etc/init.d/network restart


Ping www.baidu.com can be configured correctly to ping the Internet

This article is from the Linux system Learning extension blog, so be sure to keep this source http://zhangxiaoxiong.blog.51cto.com/11657691/1784961

Linux system installed after the network card configuration, to resolve the Internet can not be connected (restart after the Internet) (novice)

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.