Implementation of CentOS8.0 Network Configuration

1. The difference between CentOS 7 and CentOS 8 network configuration:

CentOS 8.0.1905 is installed in VMware Workstation 15 Pro, but network.service is not found in the process of configuring the IP address, and there is no script file in the /etc/sysconfig/network-scripts directory. CentOS 7 also supports network. There are two ways to configure the network: service and NetworkManager.service (NM for short), but network.service has been deprecated in CentOS 8. You must configure the network through NetworkManager.service.

**2. Simple instructions for use of NetworkManager's command line tool nmcli: **

1、 View IP (similar to ifconfig, ip a): # nmcli

2、 3 ways to activate the network card (equivalent to ifup):

(1)# nmcli c up ens33

Remarks: nmcli c | connection, connection, can be understood as a configuration file, equivalent to ifcfg-ethX or ifcfg-ensX

(2)# nmcli d connect ens33

Remarks: nmcli d | device, device, can be understood as the actual network card (including physical network card and virtual network card)

(3)# nmcli d reapply ens33

3、 Disable the network card (equivalent to ifdown): # nmcli c down ens33

4、 View the connection list: # nmcli c show

5、 View connection details: # nmcli c show ens33

6、 Reload all ifcfg or route to connection (will not take effect immediately): # nmcli c reload

7、 View the device list: # nmcli d

Remarks: device has 4 states

(1) connected: It has been managed by NM and currently has an active connection

(2) disconnected: has been managed by NM, but there is no active connection currently

(3) unmanaged: not managed by NM

(4) unavailable: unavailable, NM cannot manage, usually when the network card link is down (eg: ip link set ethX down)

8、 View all device details: # nmcli d show

9、 View detailed information of the specified device: # nmcli d show ens33

10、 View NM management status: # nmcli n

11、 Open NM management: # nmcli n on

12、 Check whether NM is available online: # nm-online

Note: For detailed instructions on nmcli commands, please refer to # man nmcli or # nmcli -h. For specific object usage such as device, please refer to # man nmcli d or # nmcli d -h

The above is the whole content of this article, I hope it will be helpful to everyone's study.

Recommended Posts

Implementation of CentOS8.0 Network Configuration
CentOS7.0 network configuration
CentOS 7.0 network configuration
Detailed examples of Centos6 network configuration
Explain the implementation of Centos8 static IP configuration
CentOS8 network card configuration file
Centos7 installation and configuration of Jenkins
Simple implementation of creating centos rootfs
CentOS7 basic configuration
CentOS8 yum/dnf configuration method of domestic sources
Centos MySQL8 configuration
Installation and configuration of JDK in CentOS 7 system
Centos7.6 dual network card configuration and switching test
Installation and configuration of rsync server under CentOS 6.5
Installation and configuration of CentOS 7 in VMware Workstation
IP and network settings of CentOS Linux 7 VMware
Distributed deployment of Apollo configuration center under CentOS8
Xfs configuration on centos7
Centos kernel compilation configuration
Ubuntu 18.04 network card configuration
Network configuration under Ubuntu
Graphical installation of CentOS8
Mysql8.0.15 installation configuration (centos7)
CentOS 7 network settings --- connectivity
Tencent cloud centos 8.0 single network card configuration multiple IP
Environment configuration of JDK, mysql and tomcat under Centos7
Detailed explanation of CentOS7 network setting tutorial in vmware
Centos mysql installation and configuration
Centos7.4 deployment configuration Elasticsearch5.6 cluster
Centos7 installation and configuration prometheus
Detailed explanation of Spark installation and configuration tutorial under centOS7
CentOS 7 installation and configuration PPTP
Deployment of graphite on centos7
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
Python implementation of gomoku program
CentOS mysql configuration master-slave replication
CentOS 7 Redis 5.0.8 sentinel mode configuration
CentOS environment installation of Docker
Centos network settings in virtualbox
Using Elastic Stack on CentOS 8: Deployment and authentication configuration of Elasticsearch/Kibana 7.8
Analysis of Hyper-V installation CentOS 8 problem
Detailed implementation of Python plug-in mechanism
Implementation of reverse traversal of python list
CentOS 8 install Git and basic configuration
Python implementation of IOU calculation case
Centos7 installation of Dameng database tutorial
Centos6.5 installation and deployment of KVM
CentOS 8 installation of MariaDB detailed tutorial
Python preliminary implementation of word2vec operation
Installation under centos6.9 of jenkins learning
Three methods of Centos kernel upgrade
Centos7 hadoop cluster installation and configuration
CentOS7 installation and maintenance of Gitlab
CentOS configuration git server in VirtualBox
Implementation of python selenium operation cookie
Performance comparison of MySQL centos 6 vs 7
CentOS7.2 and Nginx configuration virtual host