Configuring NetworkManager
Linux allows you to use NetworkManager to automatically configure the VM network. You are advised to use NetworkManager for new OS versions.
Alternatively, you can use the native network management service of the OS.
Red Hat, Oracle, CentOS 6.x, CentOS 7.x, EulerOS 2.x, Fedora 22, or Later
Install NetworkManager and use it for automatic network configuration.
- Run the following command to install NetworkManager:
- Delete ifcfg-eth1 to ifcfg-eth11 from the /etc/sysconfig/network-scripts/ directory and retain only ifcfg-eth0.
- Run the following command to disable the network:
- Run the following command to disable automatic startup of the network:
- Run the following commands to restart messagebus and NetworkManager and enable NetworkManager to start automatically at startup:
service NetworkManager restart
chkconfig NetworkManager on
Debian 9.0 or Later
Install NetworkManager and use it for automatic network configuration.
- Run the following command to install NetworkManager:
- Change the value of managed in the /etc/NetworkManager/NetworkManager.conf file to true.
- Modify /etc/network/interfaces and retain only eth0.
- Run the following commands to disable the network, restart messagebus and NetworkManager, and enable NetworkManager to start automatically at startup:
service network-manager restart
chkconfig network-manager on
service networking stop
service messagebus restart
service network-manager restart
Ubuntu 14 or Later
Install NetworkManager and use it for automatic network configuration.
- Run the following command to install NetworkManager:
- Change the value of managed in the /etc/NetworkManager/NetworkManager.conf file to true.
- Modify /etc/network/interfaces and retain only eth0.
- Run the following command to disable the network:
- Run the following command to disable automatic startup of the network:
- Run the following commands to restart D-Bus and NetworkManager:
service network-manager restart
SUSE 11 SP3 and openSUSE 13 or Later
Install NetworkManager and use it for automatic network configuration.
- Delete ifcfg-eth1 to ifcfg-eth11 from the /etc/sysconfig/network-scripts/ directory and retain only ifcfg-eth0.
- Run the following command to install NetworkManager:
- Start YaST, choose Network Devices in the navigation pane on the left, and select Network Settings in the right pane. In the Network Setup Method area of the Global Options page, change Traditional Method with ifup to User Controlled with NetworkManager.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.