Because I want to use docker
recently, I plan to operate on centOS7
. This article records the content of the network configuration on centOS7. First, you need to install the centOS7 virtual machine, what I installed is
CentOS-7-x86_64-Minimal-1810.iso
streamlined version. Don’t say much, just start
First understand the relevant information about net8 in VMware
Click NAT settings to enter
Then we can set the static IP specifically
Enter the following command
vi /etc/sysconfig/network-scripts/ifcfg-ens33
Note
: The content in the option must be uppercase
Need to restart the network service after the configuration is complete
service network restart
Then test ping Baidu, if the network is configured well~
It's done~ Now you can connect to the virtual machine through the client<( ̄▽ ̄)/
View ip
ip addr
Firewall
View firewall status
firewall-cmd --state
Stop firewall
systemctl stop firewalld.service
Prohibit firewall startup
systemctl disable firewalld.service
Recommended Posts