Linux boot will not start the network card problem

  
Today encountered such a problem, just installed Centos, the boot does not automatically start the network card, you can only use the command ::ifup eth0 to start, but wait until the next boot to repeat this operation I feel particularly troublesome. I checked it and found that it can be modified to boot by modifying the NIC ( ifcfg-eth0) parameter, that is, open the ifcfg-eth0 file.
  • [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 start automatically.
    BOOTPROTO=dhcp
    DNS2 =222.85.85.85
    TYPE=Ethernet
    DNS1=222.88.88.88
    USERCTL=no
    PEERDNS=yes
    IPV6INIT=no


  • Copyright © Windows knowledge All Rights Reserved