after changing static ip: old ip still exists.

Bug #1584682 reported by asche
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
ifupdown (Ubuntu)
Confirmed
Medium
Unassigned

Bug Description

i set a static ip address in /etc/network/interfaces:

auto eno1
iface eno1 inet static
        address 172.17.2.110
        netmask 255.255.0.0
        gateway xxx.xxx.xxx.xxx
        dns-nameserver xxx.xxx.xxx.xxx

ip a shows:
2: eno1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000
    link/ether xx:xx:xx:xx:xx:xx brd ff:ff:ff:ff:ff:ff
    inet 172.17.2.110/16 brd 172.17.255.255 scope global eno1
       valid_lft forever preferred_lft forever

after changing address from 172.17.2.110 to 172.17.2.111 in /etc/network/interfaces and executed systemctl restart networking.service the system has the old and the new ip address:

ip a:
2: eno1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000
    link/ether xx:xx:xx:xx:xx:xx brd ff:ff:ff:ff:ff:ff
    inet 172.17.2.110/16 brd 172.17.255.255 scope global eno1
       valid_lft forever preferred_lft forever
    inet 172.17.2.111/16 brd 172.17.255.255 scope global secondary eno1
       valid_lft forever preferred_lft forever

ip addr flush eno1 && systemctl restart networking.service is a workaround.

Ubuntu 16.04 Server
fresh install
packages up to date

Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. It seems that your bug report is not filed about a specific source package though, rather it is just filed against Ubuntu in general. It is important that bug reports be filed about source packages so that people interested in the package can find the bugs about it. You can find some hints about determining what package your bug might be about at https://wiki.ubuntu.com/Bugs/FindRightPackage. You might also ask for help in the #ubuntu-bugs irc channel on Freenode.

To change the source package that this bug is filed about visit https://bugs.launchpad.net/ubuntu/+bug/1584682/+editstatus and add the package name in the text box next to the word Package.

[This is an automated message. I apologize if it reached you inappropriately; please just reply to this message indicating so.]

tags: added: bot-comment
asche (j-launchpad-u)
affects: ubuntu → systemd (Ubuntu)
Martin Pitt (pitti)
affects: systemd (Ubuntu) → ifupdown (Ubuntu)
tags: added: xenial
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in ifupdown (Ubuntu):
status: New → Confirmed
Revision history for this message
Ryan Grange (ryantg) wrote :

This bug forces me to reboot new clones of a Ubuntu templates to get rid of the template IP address. Not a show stopper, but slows down deployment process.

Changed in ifupdown (Ubuntu):
importance: Undecided → Medium
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.