# Ubuntu Server 20.04.2 is getting the wrong address

**URL:** <https://community.learnlinux.tv/t/ubuntu-server-20-04-2-is-getting-the-wrong-address/344>\
**Category:** Linux on Servers\
**Created:** [March 27, 2021, 2:22pm UTC](https://community.learnlinux.tv/t/ubuntu-server-20-04-2-is-getting-the-wrong-address/344 "2021-03-27T14:22:37Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![little.dragon](https://community.learnlinux.tv/letter_avatar_proxy/v4/letter/l/e79b87/32.png) [@little.dragon](https://community.learnlinux.tv/u/little.dragon)\
**Post date:** [March 27, 2021, 2:22pm UTC](https://community.learnlinux.tv/t/ubuntu-server-20-04-2-is-getting-the-wrong-address/344/1 "2021-03-27T14:22:37Z")

</div>

Hi, I have problem with Ubuntu Server 20.4 LTS.  
After restarting Ubuntu Server 20.04.2 (clear installation), It obtains the wrong IP address from DHCP server (Windows Server 2012 R2). It use bad MAC address such as this ‘9f6e852400020000ab117b61e29f5a2058bf’. When I run the command:

> sudo dhclient -v -r ens160 && sudo dhclient -v ens160

the server obtains the correct registered IP address (and use MAC address as xx-xx-xx-xx-xx-xx). Both server run on VMware esxi 6.5 and the network uses only IPv4 (IPv6 is disabled).

Does anyone know why this is happening and is there a solution to this?

PS:  
I thought, that problem was in Netplan, because on Ubuntu 16.4LTS wasn’t problem. On Ubuntu 18.4 & 20.4 LTS is problem. BUT, after upgrade Ubuntu 16.4LTS \> Ubuntu 18.4LTS there isn’t problem, but when i Upgrade Ubuntu 16.4\>18.4\>20.4 there is problem with DHCP. So I uninstalled [Netplan.io](http://Netplan.io) and used old setting (/etc/…/interfaces) and use post-up script with dhclient -r and dhclient. But this is not solution.

BTW: sorry for bad english.

---

<div class="post-metadata">

**Author:** ![jay](https://community.learnlinux.tv/user_avatar/community.learnlinux.tv/jay/32/649_2.png) [@jay](https://community.learnlinux.tv/u/jay)\
**Post date:** [March 27, 2021, 5:06pm UTC](https://community.learnlinux.tv/t/ubuntu-server-20-04-2-is-getting-the-wrong-address/344/2 "2021-03-27T17:06:30Z")

</div>

I think this is your culprit:

[https://jaylacroix.com/fixing-ubuntu-18-04-virtual-machines-that-fight-over-the-same-ip-address/](https://jaylacroix.com/fixing-ubuntu-18-04-virtual-machines-that-fight-over-the-same-ip-address/)

---

<div class="post-metadata">

**Author:** ![little.dragon](https://community.learnlinux.tv/letter_avatar_proxy/v4/letter/l/e79b87/32.png) [@little.dragon](https://community.learnlinux.tv/u/little.dragon)\
**Post date:** [April 1, 2021, 10:46am UTC](https://community.learnlinux.tv/t/ubuntu-server-20-04-2-is-getting-the-wrong-address/344/3 "2021-04-01T10:46:50Z")

</div>

Thx, problem solved.
