1. Differences in network configuration between CentOS 7 and CentOS 8: CentOS 8.0.1905 is installed in VMware Workstation 15 Pro, but when configuring the IP address, it is found that the network.service is missing and there are no script files in the /etc/sysconfig/network-scripts directory. CentOS 7 supports both network.service and NetworkManager.service (NM for short) to configure the network, while in CentOS 8, network.service has been abandoned and the network must be configured through NetworkManager.service. 2. Simple instructions for using the NetworkManager command line tool nmcli: 1. Check IP (similar to ifconfig, ip a): # nmcli 2. Three ways to activate the network card (equivalent to ifup): (1)# nmcli c up ens33 Note: nmcli c | connection, connection, can be understood as a configuration file, equivalent to ifcfg-ethX or ifcfg-ensX (2)# nmcli d connect ens33 Note: 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 Note: device has 4 states (1) connected: managed by the NM and currently has an active connection (2) disconnected: managed by NM, but currently has no active connection (3) unmanaged: not managed by NM (4) unavailable: unavailable, NM cannot manage, usually occurs when the network card link is down (such as: ip link set ethX down) 8. View all device details: # nmcli d show 9. View the detailed information of the specified device: # nmcli d show ens33 10. Check the NM management status: # nmcli n 11. Enable NM management: # nmcli n on 12. Check whether NM is available online: # nm-online Note: For detailed instructions on the use of the nmcli command, refer to # man nmcli or # nmcli -h . For the usage of specific objects such as device , refer to # man nmcli d or # nmcli d -h. The above is the full content of this article. I hope it will be helpful for everyone’s study. I also hope that everyone will support 123WORDPRESS.COM. You may also be interested in:
|
<<: Real-time refresh of long connection on Vue+WebSocket page
>>: MySQL database migration quickly exports and imports large amounts of data
A brief analysis of rem First of all, rem is a CS...
The function to be implemented today is the follo...
Many times, after we install a web service applic...
Main library binlog: # at 2420 #170809 17:16:20 s...
Table of contents Preface Analysis and solution o...
20200804Addendum: The article may be incorrect. Y...
JS implements a hover drop-down menu. This is a s...
Error occurs: When exporting the database from My...
Read-only and disabled attributes in forms 1. Rea...
1. Add Maria source vi /etc/yum.repos.d/MariaDB.r...
MySQL versions are divided into Enterprise Editio...
Table of contents 1. Traversal Class 1. forEach 2...
The program is executed sequentially from top to ...
1. Import the basic style of external CSS files U...
Several common paging methods: 1. Escalator metho...