Change IP address of ethernet device while system is running
Liam Proven
lproven at gmail.com
Thu Dec 8 13:01:12 UTC 2016
On 8 December 2016 at 12:53, Christoph Pleger
<Christoph.Pleger at cs.tu-dortmund.de> wrote:
> on a computer running Ubuntu 16.04, I am trying to change the static IP
> address of an ethernet device, while the system is running. Therefore, I
> edit the file /etc/network/interfaces.d/${IFNAME} and then execute the
> command 'service networking restart'. But with that, the ethernet device
> is not switched to the new IP address, but it keeps the old address and
> gets the "new" address as secondary IP address. In former versions of
> Ubuntu, with the same steps as above, the old IP address was replaced by
> the new one.
>
> What do I have to do now to switch the IP address without a reboot?
I believe, but am not sure, that you either have to do it via
NetworkManager, or remove NetworkManager and either do everything
manually (addressing + subnet masking, gateways, routing, hostnames,
&c) or switch to a different tool such as WICD.
--
Liam Proven • Profile: https://about.me/liamproven
Email: lproven at cix.co.uk • Google Mail/Talk/Plus: lproven at gmail.com
Twitter/Facebook/Flickr: lproven • Skype/LinkedIn/AIM/Yahoo: liamproven
UK: +44 7939-087884 • ČR/WhatsApp/Telegram/Signal: +420 702 829 053
More information about the ubuntu-users
mailing list