Just for record, I found that there are still huge differences between CentOS9 and my most commonly used CentOS7.X, such as the location of the network card file, the command to restart the network card, the content of the network configuration file, etc., so I recorded it so that I can look it up next time I encounter it, so that I don’t have to use the search engine every time, especially when most of the search results are useless information. The CentOS9 network card configuration file path is in the /etc/NetworkManager/system-connections/ directory, similar to files such as enp2s0.nmconnection (where enp2s0 is the name of the network card) As shown above, you can see all the files in the folder. There are as many files as there are network cards on the machine. You can select the corresponding file to modify. For example, the network card we are using here is enp2s0 [connection] id=enp2s0 uuid=17562457-5af0-1137-4cea-637e1f345447 type=ethernet autoconnect-priority=-999 interface-name=enp2s0 [ethernet] [ipv4] address1=192.168.1.2/29,192.168.1.1 dns=8.8.8.8; method=manual [ipv6] addr-gen-mode=eui64 method=auto After modification, save, exit, and restart the network card. nmcli c reload # Reload the configuration file nmcli c up enp2s0 # Restart the enp2s0 network card Note that service and systemctl in centos9 system can no longer be used to operate network cards |
edgeNAT is a Chinese VPS host established in 2019...
The sun and the moon are moving forward, the rhyt...
On March 21, Huawei China Ecosystem Partner Confe...
The coexistence of multiple standards and frequen...
HTTPS As the cost of building a HTTPS website dec...
How fast is 5G? The upgrade from 4G to 5G is comp...
1. Introduction Hello everyone, I recently encoun...
On March 12, 2019, Zoho Corporation announced the...
Recently, the three major operators released thei...
What is Fiber Optic? This is a form of internet t...
AlphaVPS is a foreign hosting company founded in ...
Large and medium-sized enterprises adopt SDN as a...
[[415786]] In the late 1950s, during the Cold War...
HostYun is a Chinese VPS host provider that focus...