Community discussions

MikroTik App
 
Fatzke87
just joined
Topic Author
Posts: 1
Joined: Thu Aug 26, 2021 12:27 pm

dhcp client different hostname on WAN Interface

Thu Aug 26, 2021 9:04 pm

Hello dear Forum-Members,

I hope that someone can help me.
I would like to implement dhcp client to connect my CCR2004 router to the Internet. My ISP is expecting a certain MAC-Address and Hostname, but I dont to name my router to the wanted hostname. So my question is... Is it possible to "fake" a hostname on an Interface and/or dhcp-client?
Thank you in advance and I am sorry for any inconviencies cause by my bad english.

best regards

Kurshad
 
ConnyMercier
Forum Veteran
Forum Veteran
Posts: 723
Joined: Tue Dec 17, 2019 1:08 pm

Re: dhcp client different hostname on WAN Interface

Sun Nov 07, 2021 11:09 pm

Good Evening Kurshad,

Of course you can =)

Step 1: Create DHCP-Option
/ip dhcp-client option
add code=12 name=FakeName value="'abcdef'"
Step 2: Assign option to DHCP-Client
/ip dhcp-client
add dhcp-options=FakeName,clientid disabled=no interface=ether1

Who is online

Users browsing this forum: Cmon169, dioeyandika and 29 guests