Change IP address of ethernet device while system is running

Tom H tomh0665 at gmail.com
Thu Dec 29 13:17:38 UTC 2016


On Wed, Dec 28, 2016 at 4:18 AM, Karl Auer <kauer at biplane.com.au> wrote:
> On Wed, 2016-12-28 at 03:44 -0500, Tom H wrote:
>> On Thu, Dec 8, 2016 at 6:53 AM, 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.
>
> Provided that NetworkManager (or similar) is not trying to change
> things dynamically on the interface as well (and it should not be, if
> you have an entry in /etc/network/interfaces for it), then the
> following procedure will work.

The OP posted about editing "/etc/network/interfaces.d/$ifname" so I
had to assume that he was using ifupdown. But you're right; he'd have
to ensure that NM isn't running although I'm not sure that NM can use
"/etc/network/interfaces.d/*" (it can of course use
"/etc/network/interfaces") so if his NICs were configured that way,
it's more or less guaranteed that ifupdown's in charge.




More information about the ubuntu-users mailing list