16.04 static IP wierdness

Tom H tomh0665 at gmail.com
Fri Apr 22 13:56:19 UTC 2016


On Fri, Apr 22, 2016 at 2:36 PM, Mark Haney <mark.haney at vifprogram.com> wrote:
>
> I just finished building a spanking new 16.04 server VM install. Typically,
> I have DHCP assign an IP when doing the install, then going into the console
> (on a VMWare cluster) and editing /etc/network/interfaces for the static IP
> I want to assign it.
>
> That part was no different that a thousand others I've done. But I noticed,
> when I brought the interface back up after assigning a static IP, running
> ifconfig still displays the old DHCP address originally assigned. Has
> anyone else noticed this?
>
> It's using the correct IP, I can SSH to it by the static IP, but ifconfig
> isn't updating properly. It's not a serious problem, but this never
> happened in previous versions.

I've had problems editing /e/n/i and restarting the network, when I
switch from dhcp to static or vice-versa, or when I have
{pre-,,post-}up and/or {pre-,,post-}down statements..

So, when using ifupdown, I stop the network, edit /e/n/i, start the
network. It works every time.




More information about the ubuntu-users mailing list