Community discussions

MikroTik App
 
Ameeno
just joined
Topic Author
Posts: 22
Joined: Sun Apr 29, 2018 1:25 am

DHCP Server - Some Hosts do not provide hostname

Wed Mar 10, 2021 9:01 pm

Hello.

Mikrotik is my dhcp server and some hosts especially Linux VM's do not provide a hostname when picking up an IP lease.

(My lease time is 10 mins) as I want to be able to arp via my dhcp2dns script this is a problem. why does mikrotik sometimes get hostname and sometimes not?

its really weird. I have noticed on Linux/debian VM's that the hostname is not put into dhcp leases.
 
nescafe2002
Forum Veteran
Forum Veteran
Posts: 897
Joined: Tue Aug 11, 2015 12:46 pm
Location: Netherlands

Re: DHCP Server - Some Hosts do not provide hostname

Wed Mar 10, 2021 9:11 pm

MikroTik reads hostname (client option 12 ) from DHCP DISCOVER, some client devices provide host name in DHCP REQUEST.
 
Ameeno
just joined
Topic Author
Posts: 22
Joined: Sun Apr 29, 2018 1:25 am

Re: DHCP Server - Some Hosts do not provide hostname

Wed Mar 10, 2021 9:45 pm

hiya, thanks for the explanation. is there a guide somewhere so I can make my Linux VM do dhcp discover?
 
nescafe2002
Forum Veteran
Forum Veteran
Posts: 897
Joined: Tue Aug 11, 2015 12:46 pm
Location: Netherlands

Re: DHCP Server - Some Hosts do not provide hostname

Wed Mar 10, 2021 10:17 pm

Try send host-name "hostname" in dhclient.conf.

Who is online

Users browsing this forum: Guntis, rarlup, Rox169 and 31 guests