centos6 minimize default installation does not install NetworkManager service Centos6 minimize network card set the default startup

Reprinted Centos6 minimize network card installed in the default startup settings

 
Centos 6.0 version provides a "minimization" (Minimal) installation option. This is a very good improvement since the system no longer exist those unnecessary files and services, so that we can implement server resource capacity to provide the greatest service we need.
 
Minimal installation also brings some disadvantages, network management tools provided by default NetworkManager system is not actually installed on Minimal system. So we have to manually edit the configuration file card. A typical card configuration file (/ etc / sysconfig / network-script / ifcfg-X) in the following format:
 
IPADDR=192.168.0.33 
BOOTPROTO=none 
NETMASK=255.255.255.0 
GATEWAY=192.168.0.1 
DNS1=192.168.0.1 
DNS2=192.168.0.2 
USERCTL=yes 
ONBOOT="yes"
Under Minimal Centos 6, the default onboot = "no", and set options depend on the NetworkManager, NM_CONTROLLED = "yes". This configuration looks a bit ridiculous, because the case has not NetworkManger minimal installation. So we need to be modified as follows:
ONBOOT="yes" MM_Controlled="no"
Meanwhile, if you need to automatically obtain IP, we should also add 
 
          BOOTPROTO="dhcp"
 
Now restart it, the card will be randomly started.
Centos 6.0 version provides a "minimization" (Minimal) installation option. This is a very good improvement since the system no longer exist those unnecessary files and services, so that we can implement server resource capacity to provide the greatest service we need.
 
Minimal installation also brings some disadvantages, network management tools provided by default NetworkManager system is not actually installed on Minimal system. So we have to manually edit the configuration file card. A typical card configuration file (/ etc / sysconfig / network-script / ifcfg-X) in the following format:
 
IPADDR=192.168.0.33 
BOOTPROTO=none 
NETMASK=255.255.255.0 
GATEWAY=192.168.0.1 
DNS1=192.168.0.1 
DNS2=192.168.0.2 
USERCTL=yes 
ONBOOT="yes"
Under Minimal Centos 6, the default onboot = "no", and set options depend on the NetworkManager, NM_CONTROLLED = "yes". This configuration looks a bit ridiculous, because the case has not NetworkManger minimal installation. So we need to be modified as follows:
ONBOOT="yes" MM_Controlled="no"
Meanwhile, if you need to automatically obtain IP, we should also add 
 
          BOOTPROTO="dhcp"
 
Now restart it, the card will be randomly started.

Guess you like

Origin www.cnblogs.com/xiaofeng666/p/10948936.html