Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I've hear mixed things about how to handle setting IP parameters in Ubuntu. There's several sources that say if a GUI is installed like KDE or Gnome, that you should only use the network manager to set or change IP settings. This is added to the already complicated problem of changing the IP address during a remote session. There are times where RDP or VNC is just not an option. What should be consider?

share|improve this question

1 Answer 1

up vote 1 down vote accepted

NetworkManager, the default network manager for Ubuntu, does not play well with headless/ssh setups. It has a command-line interface called nmcli but with limited capabilities.

One solution would be to disable NetworkManager and directly control the network settings through the /etc/network/interfaces file. The man page man interfaces is a good starting point for understanding its syntax.

Every time you modify the /etc/network/interfaces file you can apply the settings by running:

sudo service networking restart

Your ssh connection will very likely drop and you will have to reconnect.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.