CentOS7.0 network configuration

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

1. Virtual machine configuration information#

First understand the relevant information about net8 in VMware

Click NAT settings to enter

2. Specific configuration#

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<( ̄▽ ̄)/

3. Other commonly used commands#

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

CentOS7.0 network configuration
CentOS 7.0 network configuration
Implementation of CentOS8.0 Network Configuration
CentOS8 network card configuration file
CentOS6.5 network settings
CentOS7 basic configuration
Detailed examples of Centos6 network configuration
Centos MySQL8 configuration
Linux Network Foundation (CentOS7)
Xfs configuration on centos7
Centos kernel compilation configuration
Ubuntu 18.04 network card configuration
Network configuration under Ubuntu
Mysql8.0.15 installation configuration (centos7)
CentOS 7 network settings --- connectivity
Centos7.6 dual network card configuration and switching test
CentOS 8 (2)
Centos7.4 deployment configuration Elasticsearch5.6 cluster
Centos7 installation and configuration prometheus
CentOS 7 installation and configuration PPTP
Centos6.5 desktop version network settings
CentOS installation and configuration cmake
CentOS 7 user account configuration original
Centos7.5 installation and configuration MongoDB4.0.4
CentOS 7 installation and configuration PPTP
CentOS mysql configuration master-slave replication
CentOS 8 (1)
CentOS 7 Redis 5.0.8 sentinel mode configuration
Tencent cloud centos 8.0 single network card configuration multiple IP
Centos network settings in virtualbox
Centos7 installation and configuration of Jenkins
CentOS 8 install Git and basic configuration
Centos7 hadoop cluster installation and configuration
CentOS configuration git server in VirtualBox
CentOS7 modify the network card name
CentOS7.2 and Nginx configuration virtual host
Java-JDK installation and configuration under CentOS
CentOS 7 Tomcat service installation and configuration
Centos 7 RAID 5 detailed explanation and configuration
Centos7 change the network card name
CentOS configuration swap exchange area method
CentOS NTP server installation and configuration
Centos7 mysql database installation and configuration
CentOS6/CentOS7 dual network card configuration bonding
Tomcat configuration JMX in centos 6.5 environment
CentOS 7 system installation and configuration graphic tutorial
Configure iSCSI network storage under CentOS 7.x
centos7 python3.7+vi
Tomcat installation and configuration under CentOS 7 (Tomcat startup)
MySQL 8.0 installation, deployment and configuration under CentOS 6/7
Centos7.5 configuration java environment installation tomcat explanation
CentOS7 modify network card name and network repair
Five minutes to learn centos configuration gitlab
Installation and configuration of redis under centos7
CentOS + Python3.6+
CentOS + Jenkins
Centos7 hive stand-alone mode installation and configuration
1.5 Install Centos7
Encountered network configuration traps during centos-ubuntu intercommunication
Ubuntu 18.04 LTS configuration network tutorial through Netplan
2019-07-09 CentOS7 installation