You can directly use the setup tool to edit the NIC in CentOS6. However, in CentOS7 of the new version, setuptool has no network editing component and is replaced by NetworkManagerTextUserInterface, that is, nmtui. Nmtui is installed with system standards by default. if you use minimal installation, you may not have the software. run the following command to install it manually: yuminstallNetworkMan
Edit the NIC in CentOS 6 and use the setup tool directly. However, in CentOS 7 of the new version, setuptool has no network editing component, and is replaced by NetworkManager Text User Interface (nmtui. Nmtui is installed with the system standard by default. if you use minimal installation, you may not have the software. run the following command to install it manually:
- Yum install NetworkManager-tui
Run nmtui on the command line:
- Nmtui
If NetworkManager is not running, you need to manually start NetworkManager:
- Systemctl start NetworkManager
Run nmtui again to see the network editing interface. here you can edit the connection, activate the new network connection, and set the host name. select as needed:
Reprinted from www. webmaster. me