Setup method of Centos boot up NIC

Source: Internet
Author: User

We do not boot the NIC, so we can only use

Ifup eth0

To start, but every time it feels so inconvenient. I hope to boot up the network card automatically


Then Baidu search for a moment found that you can modify the network card (ifcfg-eth0) parameters to boot, that is, open the Ifcfg-eth0 file

Example

  code is as follows copy code

[root@localhost ~]# vim/etc/sysconfig/network-scripts/ifcfg-eth0  
device=eth0  
HWADDR=08:00:27:fa :47:4c  
nm_controlled=yes  
onboot=yes------------------ Modify the following as Yes to boot automatically .  
bootproto=dhcp  
dns2=222.85.85.85  
type=ethernet  
dns1=222.88.88.88  
userctl=no  
PEERDNS=yes   
ipv6init=no 

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.