ubuntu 18.04: not releasing old IPs from DHCP












2















We're running ubuntu 18.04, with the following configuration of netplan:



network:
version: 2
renderer: networkd
ethernets:
ens3:
dhcp4: yes


Currently we're running into an issue with DHCP, seems old IPs are not being freed after assigning a new one:



2: ens3: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000
link/ether 00:1a:4a:X:Y:Z brd ff:ff:ff:ff:ff:ff
inet 10.X.Y.175/23 brd 10.X.Y.255 scope global ens3
valid_lft forever preferred_lft forever
inet 10.X.Y.201/23 brd 10.X.Y.255 scope global secondary dynamic ens3
valid_lft 3136sec preferred_lft 3136sec
inet 10.X.Y.168/23 brd 10.X.Y.255 scope global secondary ens3
valid_lft forever preferred_lft forever
inet6 fe80::21a:4aff:fe97:5f31/64 scope link
valid_lft forever preferred_lft forever


This is generating duplicated IP addresses as some IPs are being reused but not freed, generating to the users a lot of issues.



What is causing this behavior and how can it be solved?










share|improve this question

























  • This is happening only on Ubuntu 18.04. We have thousands of VMs with other OSs like Ubuntu 14.04, CentOS, RedHat and it won't happen here.

    – nKn
    Oct 10 '18 at 13:13
















2















We're running ubuntu 18.04, with the following configuration of netplan:



network:
version: 2
renderer: networkd
ethernets:
ens3:
dhcp4: yes


Currently we're running into an issue with DHCP, seems old IPs are not being freed after assigning a new one:



2: ens3: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000
link/ether 00:1a:4a:X:Y:Z brd ff:ff:ff:ff:ff:ff
inet 10.X.Y.175/23 brd 10.X.Y.255 scope global ens3
valid_lft forever preferred_lft forever
inet 10.X.Y.201/23 brd 10.X.Y.255 scope global secondary dynamic ens3
valid_lft 3136sec preferred_lft 3136sec
inet 10.X.Y.168/23 brd 10.X.Y.255 scope global secondary ens3
valid_lft forever preferred_lft forever
inet6 fe80::21a:4aff:fe97:5f31/64 scope link
valid_lft forever preferred_lft forever


This is generating duplicated IP addresses as some IPs are being reused but not freed, generating to the users a lot of issues.



What is causing this behavior and how can it be solved?










share|improve this question

























  • This is happening only on Ubuntu 18.04. We have thousands of VMs with other OSs like Ubuntu 14.04, CentOS, RedHat and it won't happen here.

    – nKn
    Oct 10 '18 at 13:13














2












2








2








We're running ubuntu 18.04, with the following configuration of netplan:



network:
version: 2
renderer: networkd
ethernets:
ens3:
dhcp4: yes


Currently we're running into an issue with DHCP, seems old IPs are not being freed after assigning a new one:



2: ens3: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000
link/ether 00:1a:4a:X:Y:Z brd ff:ff:ff:ff:ff:ff
inet 10.X.Y.175/23 brd 10.X.Y.255 scope global ens3
valid_lft forever preferred_lft forever
inet 10.X.Y.201/23 brd 10.X.Y.255 scope global secondary dynamic ens3
valid_lft 3136sec preferred_lft 3136sec
inet 10.X.Y.168/23 brd 10.X.Y.255 scope global secondary ens3
valid_lft forever preferred_lft forever
inet6 fe80::21a:4aff:fe97:5f31/64 scope link
valid_lft forever preferred_lft forever


This is generating duplicated IP addresses as some IPs are being reused but not freed, generating to the users a lot of issues.



What is causing this behavior and how can it be solved?










share|improve this question
















We're running ubuntu 18.04, with the following configuration of netplan:



network:
version: 2
renderer: networkd
ethernets:
ens3:
dhcp4: yes


Currently we're running into an issue with DHCP, seems old IPs are not being freed after assigning a new one:



2: ens3: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000
link/ether 00:1a:4a:X:Y:Z brd ff:ff:ff:ff:ff:ff
inet 10.X.Y.175/23 brd 10.X.Y.255 scope global ens3
valid_lft forever preferred_lft forever
inet 10.X.Y.201/23 brd 10.X.Y.255 scope global secondary dynamic ens3
valid_lft 3136sec preferred_lft 3136sec
inet 10.X.Y.168/23 brd 10.X.Y.255 scope global secondary ens3
valid_lft forever preferred_lft forever
inet6 fe80::21a:4aff:fe97:5f31/64 scope link
valid_lft forever preferred_lft forever


This is generating duplicated IP addresses as some IPs are being reused but not freed, generating to the users a lot of issues.



What is causing this behavior and how can it be solved?







networking 18.04 dhcp netplan






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Oct 10 '18 at 13:37







nKn

















asked Oct 10 '18 at 12:56









nKnnKn

1163




1163













  • This is happening only on Ubuntu 18.04. We have thousands of VMs with other OSs like Ubuntu 14.04, CentOS, RedHat and it won't happen here.

    – nKn
    Oct 10 '18 at 13:13



















  • This is happening only on Ubuntu 18.04. We have thousands of VMs with other OSs like Ubuntu 14.04, CentOS, RedHat and it won't happen here.

    – nKn
    Oct 10 '18 at 13:13

















This is happening only on Ubuntu 18.04. We have thousands of VMs with other OSs like Ubuntu 14.04, CentOS, RedHat and it won't happen here.

– nKn
Oct 10 '18 at 13:13





This is happening only on Ubuntu 18.04. We have thousands of VMs with other OSs like Ubuntu 14.04, CentOS, RedHat and it won't happen here.

– nKn
Oct 10 '18 at 13:13










0






active

oldest

votes











Your Answer








StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "89"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1082605%2fubuntu-18-04-not-releasing-old-ips-from-dhcp%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























0






active

oldest

votes








0






active

oldest

votes









active

oldest

votes






active

oldest

votes
















draft saved

draft discarded




















































Thanks for contributing an answer to Ask Ubuntu!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1082605%2fubuntu-18-04-not-releasing-old-ips-from-dhcp%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Human spaceflight

Can not write log (Is /dev/pts mounted?) - openpty in Ubuntu-on-Windows?

張江高科駅