In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/01 Report--
Editor to share with you CentOS 8.0 how to configure the network, I believe that most people do not know much about it, so share this article for your reference, I hope you can learn a lot after reading this article, let's go to know it!
1. The difference between CentOS 7 and CentOS 8 network configuration:
CentOS 8.0.1905 is installed in VMware Workstation 15 Pro, but it is found that there is no network.service in the process of configuring IP address, and there are no script files in / etc/sysconfig/network-scripts directory. Both network.service and NetworkManager.service (NM) are supported in CentOS 7, while network.service has been abandoned in CentOS 8, and the network must be configured through NetworkManager.service.
CentOS 8.0 Network configuration 2. Simple instructions for using NetworkManager's command line tool nmcli:
1. Check IP (similar to ifconfig, ip a): # nmcli
CentOS 8.0 Network configuration CentOS 8.0 Network configuration
2. Three ways to activate the Nic (equivalent to ifup):
# nmcli c up ens33
Note: nmcli c | connection, connection, which can be understood as configuration file, which is equivalent to ifcfg-ethX or ifcfg-ensX
# nmcli d connect ens33
Note: nmcli d | device, device, which can be understood as the actual network card (including physical network card and virtual network card)
# nmcli d reapply ens33CentOS 8.0 Network configuration CentOS 8.0 Network configuration
3. Disable the network card (equivalent to ifdown):
# nmcli c down ens33
4. View the connection list:
# nmcli c showCentOS 8.0 Network configuration CentOS 8.0 Network configuration
5. View connection details:
# nmcli c show ens33
6. Reload all ifcfg or route to connection (not effective immediately):
# nmcli c reload
7. View the device list:
# nmcli d
Note: device has 4 statuses
(1) connected: has been managed by NM and currently has an active connection
(2) disconnected: it has been managed by NM, but currently there is no active connection
(3) unmanaged: not managed by NM
(4) unavailable: unavailable, NM cannot be managed, usually occurs when the Nic link is down (e.g. ip link set ethX down)
8. View all device details:
# nmcli d show
9. View the details of the specified device:
# nmcli d show ens33CentOS 8.0 Network configuration CentOS 8.0 Network configuration
10. View the NM management status:
# nmcli nCentOS 8.0 Network configuration CentOS 8.0 Network configuration
11. Enable NM management:
# nmcli n on
12. Check whether NM is available online:
# nm-onlineCentOS 8.0 Network configuration CentOS 8.0 Network configuration these are all the contents of the article "how to configure the Network with CentOS 8.0". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.