Article directory
foreword
安装CentOS7后无法获取ip地址问题
1. Virtual machine settings
1. Select the network connection mode as bridge mode
Two, solve
Before it is set, the ip address cannot be obtained through the ip addr command
1. Modify the configuration file
# vi /etc/sysconfig/network-scripts/ifcfg-ens33
Change ONBOOT=NO to ONBOOT=YES, save and exit
2. Restart the virtual machine
# reboot
3. Reacquire the ip address
3. Turn off the firewall
1. Check the firewall
# firewall-cmd --list-all
2. Turn off the firewall
single close
# systemctl stop firewalld
permanently closed
# systemctl disable firewalld
Restart the virtual machine
# reboot
3. Firewall off
Summarize
Tip: The above steps can solve the problem that the virtual machine cannot obtain the IP address.