Ubuntu Server 19.04: Unable to assign a DHCP reserved IP

Asked by Diego Marino Monetti on 2019-08-27

I am attempting to assign a reserved IP from my modem/router/DHCP ServerTG799v2 router to a VMWARE virtual machine installed with Ubuntu server 19.04. When I go to make the reservation the router seems to do everything right but the reservation is not made. I don't believe is router problem because I have about twenty virtual machines where the operation works perfectly including an Xubuntu 19.04.

Of course I solved the problem with a Static IP but I would like to understand what is happening.

Diego

Question information

Language:
English Edit question
Status:
Expired
For:
Ubuntu netplan.io Edit question
Assignee:
No assignee Edit question
Last query:
2019-08-28
Last reply:
12 hours ago

If you run wireshark on the DHCP system (if possible), do you see the request coming in?

Diego Marino Monetti (zep22) said : #2

Sorry but I can't install wireshark on the Internet Provider's Legacy
router where the DHCP server runs. I can install it on the Ubuntu Server
and try to log the traffic.
Or install the DHCP server on a Windows server I have and test.
But not before of the weekend.

Diego

Il mar 27 ago 2019, 18:22 actionparsnip <
<email address hidden>> ha scritto:

> Your question #683407 on netplan.io in Ubuntu changed:
> https://answers.launchpad.net/ubuntu/+source/netplan.io/+question/683407
>
> Status: Open => Needs information
>
> actionparsnip requested more information:
> If you run wireshark on the DHCP system (if possible), do you see the
> request coming in?
>
> --
> To answer this request for more information, you can either reply to
> this email or enter your reply at the following page:
> https://answers.launchpad.net/ubuntu/+source/netplan.io/+question/683407
>
> You received this question notification because you asked the question.
>

How did you specify DHCP on the troublesome server?

Diego Marino Monetti (zep22) said : #4

The default installation of Ubuntu Server at the beginning. So the default
Cloud configuration in /etc/netplan.
Trying and trying I have in a second moment disabled the cloud
configuration with anyway no valid results.

Il mar 27 ago 2019, 21:42 actionparsnip <
<email address hidden>> ha scritto:

> Your question #683407 on netplan.io in Ubuntu changed:
> https://answers.launchpad.net/ubuntu/+source/netplan.io/+question/683407
>
> Status: Open => Needs information
>
> actionparsnip requested more information:
> How did you specify DHCP on the troublesome server?
>
> --
> To answer this request for more information, you can either reply to
> this email or enter your reply at the following page:
> https://answers.launchpad.net/ubuntu/+source/netplan.io/+question/683407
>
> You received this question notification because you asked the question.
>

If you set the interface to DHCP in /etc/network/interfaces does it work OK?

Diego Marino Monetti (zep22) said : #6

I didn't try. I knew that for servers the correct method to configure is
netplan and I used netplan. To configure static IP I have disable the cloud
configuration and renamed the 50-cloud-init.yaml file in
50-cloud-init.yaml.origin file and created a new netplan file that I named
10-netcfg.yaml that sounds like
>
> network:
> version: 2
> renderer: networkd
> ethernets:
> ens33:
> dhcp4: no
> addresses: [192.168.1.100/24]
> gateway4: 192.168.1.1
> nameservers:
> addresses: [192.168.1.1]
>
> And it works. I am confident that using the network interface the
reservation works because the desktop uses the Network interface and it
works. However I will try for you. But the question remains the same. Why
is netplan not working for reserved IPs?

Does this help :
https://ubuntu.com/blog/ubuntu-bionic-netplan

Do you have anything in the traditional interfaces file that may cause a conflict?

Launchpad Janitor (janitor) said : #8

This question was expired because it remained in the 'Needs information' state without activity for the last 15 days.