Two ways of starting manually and booting the network card automatically
Start the network card with the image above: # ifup eth0 #
With the picture above: it shows that the network card has been started successfully and can surf the Internet.
[root@localhost ~] # cat / etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth0
HWADDR=00:0C:29:BD:78:EB
TYPE=Ethernet
UUID=13a9bdf9-d87e-40c9-be52-15aad3bd4bf5
ONBOOT=no
NM_CONTROLLED=yes
BOOTPROTO=dhcp
[root@localhost ~] # echo "ONBOOT=yes" > > / etc/sysconfig/network-scripts/ifcfg-eth0
# set the Nic to boot automatically