Community discussions

MikroTik App
 
Josephny
Member
Member
Topic Author
Posts: 434
Joined: Tue Sep 20, 2022 12:11 am

Assign Hostnames to DHCP Leases?

Wed Feb 01, 2023 1:31 pm

Out of 54 DHCP leases, less than half have an "Active Host Name."

I believe that info comes from the client.

Is there a way for RouterOS to assign a name? Preferably based on MAC address?

That way, I can glance at the list and understand which devices are connected without either memorizing MAC addresses or looking them up each time.

Thanks!
 
User avatar
Ca6ko
Member
Member
Posts: 498
Joined: Wed May 04, 2022 10:59 pm
Location: Kharkiv, Ukraine

Re: Assign Hostnames to DHCP Leases?

Wed Feb 01, 2023 1:42 pm

If the device does not report the host name
Winbox/IP/DHCP Server/Leases
Make a static, fill in comment
 
User avatar
rextended
Forum Guru
Forum Guru
Posts: 11967
Joined: Tue Feb 25, 2014 12:49 pm
Location: Italy
Contact:

Re: Assign Hostnames to DHCP Leases?

Wed Feb 01, 2023 2:06 pm

Is there a way for RouterOS to assign a name?
No, is a device problem, not RouterOS function,
expanded reply: but if you make static leases, you can add a comment to the lease for remember what is it.
 
Josephny
Member
Member
Topic Author
Posts: 434
Joined: Tue Sep 20, 2022 12:11 am

Re: Assign Hostnames to DHCP Leases?

Wed Feb 01, 2023 2:23 pm

Thanks guys!

I'll go the statis/comment route.
 
ConradPino
Member
Member
Posts: 337
Joined: Sat Jan 21, 2023 12:44 pm
Contact:

Re: Assign Hostnames to DHCP Leases?

Wed Feb 01, 2023 7:14 pm

This may not be what was asked but is related.

IANA Dynamic Host Configuration Protocol (DHCP) and Bootstrap Protocol (BOOTP) Parameters

DHCP supports options at (1) server level, (2) subnet level, (3) static lease level.
Adding Option 12 (hostname) to static lease specifies hostname client should use.

Who is online

Users browsing this forum: Bing [Bot], TeWe, UkRainUa and 91 guests