Network Configuration after CentOSminimal installation
Source: Internet
Author: User
After CentOSminimal is installed, the network configuration has always felt that many things that I don't need will always be installed in each Linux release version, and the default graphic interface also makes me too lazy to knock on the command line, so I always want to try a simple linux. Just as CentOS provides the minimal installation version, it's okay today...
After CentOS minimal is installed, the network configuration has always felt that many things that I don't need will always be installed in each Linux release version, and the default graphic interface also makes me too lazy to knock on the command line, so I always want to try a simple linux. CentOS provides the minimal installation version. it's okay to install it in the vmvm today. It is really simple enough, not even gcc, so I want to install yum install gcc after the installation, only to find that the network is not configured, the default Nic is not started. Which of the following is the version of minimal ~ Www.2cto.com configuration process is very simple, edit the configuration file vi/etc/sysconfig/network-script/ifcfg-eth0 1 DEVICE = "eth0" 2 BOOTPROTO = "dhcp" # default automatic configuration IP3HWADDR = "00: 0C: 29: 0D: 07: 43 "4NM_CONTROLLED =" no "# Modify to no depending on NetworkManager control 5 ONBOOT =" yes "# Change to yes to set startup 6 TYPE =" Ethernet "7 UUID = "*** -*** "this is my configuration, networkManager is the default network management tool provided by the full version. because minimal is not installed, 1NM_CONTROLLED = "no" is set. of course, it is not accessible. now it is changed to 'no ', remember that if the graphic interface is installed and NetworkManager is installed in the future, modify yes again. . Otherwise, the network may become unavailable. ONBOOT = 'yes' does not need to be detailed. after the configuration is complete, yum can be used. In addition, yum uses the school image, pai.neu.edu.cn. The location of the configuration is/etc/yum. repos. d/CeontOS-Base.repo, comment out the default repository list, then uncomment the baseurl, and change the address
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