Community discussions

 
medharrak
newbie
Topic Author
Posts: 40
Joined: Tue Feb 13, 2018 7:27 pm

Mikortik DHCP Option 43

Thu Jul 18, 2019 11:13 am

Hi all,
I configured DHCP server on Mikrotik for my Ruckus APs.
I have two questions :
First : When I display the distributed addresses I see no MAC address Only zeros, why? :
Example :
Address 192.168.11.130
MAC Address 00:00:00:00:00:00
Client ID
Server dhcp2

Second: How can I configure Option 43 on Mikrotik to point APs to the Ruckus controller IP address?

Thank you
 
kamillo
Member Candidate
Member Candidate
Posts: 154
Joined: Tue Jul 15, 2014 5:44 pm

Re: Mikortik DHCP Option 43

Thu Jul 18, 2019 12:32 pm

 
medharrak
newbie
Topic Author
Posts: 40
Joined: Tue Feb 13, 2018 7:27 pm

Re: Mikortik DHCP Option 43

Thu Jul 18, 2019 2:35 pm

the link does not talk about option 43.
any idea why the DHCP leases display the source MAC with zeros ??
Regards
 
sindy
Forum Guru
Forum Guru
Posts: 3803
Joined: Mon Dec 04, 2017 9:19 pm

Re: Mikortik DHCP Option 43

Thu Jul 18, 2019 3:25 pm

the link does not talk about option 43.
The link talks about how to add any user-provided option into DHCPOFFER and DHCPACK in general. It is your task to find the required contents and its format for this option in the Ruckus documentation and set the the IP address (or domain name?) in the necessary format in the /ip dhcp-server option add code=43 name=O43-for-ruckus value=???? command.

any idea why the DHCP leases display the source MAC with zeros ??
None, but if you set the destination file name under /tool sniffer and then run /tool sniffer quick interface=xxx ip-protocol=udp port=68 and let the client ask for address, you can use Wireshark to see the contents of the DHCPDISCOVER / DHCPREQUEST. If everything else works, I assume the client-mac-address field in there will be 00:00:00:00:00:00.
Instead of writing novels, post /export hide-sensitive. Use find&replace in your favourite text editor to systematically replace all occurrences of each public IP address potentially identifying you by a distinctive pattern such as my.public.ip.1.
 
medharrak
newbie
Topic Author
Posts: 40
Joined: Tue Feb 13, 2018 7:27 pm

Re: Mikortik DHCP Option 43

Thu Jul 18, 2019 3:35 pm

Thank you for your replay .
For DHCP option I did this : /ip dhcp-server option add code=43 name=Ruckus value='192.168.11.253' , is that correct?
for MAC with zeros , I'm not talking about one client, leases display all the client's MAC are with zeros ( for info the client are Ruckus WAP).
please note that in the same router I have a second dhcp pool for GUEST and it's working fine (the dhcp display the correct MAC address), the issue is only happen with the pool for Ruckus APs.is that related to ruckus APs or something wrong in the mikrotik configuration?
 
sindy
Forum Guru
Forum Guru
Posts: 3803
Joined: Mon Dec 04, 2017 9:19 pm

Re: Mikortik DHCP Option 43

Thu Jul 18, 2019 4:02 pm

For DHCP option I did this : /ip dhcp-server option add code=43 name=Ruckus value='192.168.11.253' , is that correct?
I have neither the Ruckus documentation nor a crystal ball, so I can't say, but likely not as Option 43 is for vendor specific information so I'd expect its internal structure to be more complex.
But wait, there's Google search, and a search for "ruckus dhcp option 43" reveals this page.

for MAC with zeros , I'm not talking about one client, leases display all the client's MAC are with zeros ( for info the client are Ruckus WAP).
please note that in the same router I have a second dhcp pool for GUEST and it's working fine (the dhcp display the correct MAC address), the issue is only happen with the pool for Ruckus APs.is that related to ruckus APs or something wrong in the mikrotik configuration?
Please note that there is no setting which would make Mikrotik's /ip dhcp-server or /ip pool behave in a special way in this regard. But from what you wrote it comes out that all the clients which are reported as having MAC address 00:00:00:00:00:00 have two things in common:
  • they use the same server and pool
  • they are Ruckus WAPs
. So what about connecting one of the WAPs to the port served by the server/pool which doesn't show any problem and see whether the issue follows the WAP or not?
Instead of writing novels, post /export hide-sensitive. Use find&replace in your favourite text editor to systematically replace all occurrences of each public IP address potentially identifying you by a distinctive pattern such as my.public.ip.1.
 
medharrak
newbie
Topic Author
Posts: 40
Joined: Tue Feb 13, 2018 7:27 pm

Re: Mikortik DHCP Option 43

Thu Jul 18, 2019 4:20 pm

I tried different way, some no Ruckus devices taking and displaying their real MAC on the same Pool, and also few Ruckus WAP also displaying their MAC, but majority display zeros. So I think it's related to the device not the DHCP Server. I thought in the beginning that maybe it's something related to the ARP inspection or something else.
 
ilkogd
just joined
Posts: 16
Joined: Wed Sep 05, 2018 3:48 pm

Re: Mikortik DHCP Option 43

Fri Jul 19, 2019 11:54 am

I use DHCP option 43 but for Ubiquiti UAPs. Your mistake is - IP address in option 43 should be in hex, for example 192.168.0.15 in hex is c0a8000f. Also for UAP you need to add 0104 in front of hex IP address, in my example the value for option 43 should be 0104c0a8000f
 
R1CH
Forum Veteran
Forum Veteran
Posts: 883
Joined: Sun Oct 01, 2006 11:44 pm

Re: Mikortik DHCP Option 43

Fri Jul 19, 2019 12:34 pm

Has anyone figured out how to use the undocumented vendor-class-id CLI? It doesn't seem to have anything to match on the class identifier in the request so I have no idea how it's supposed to work.
 
sindy
Forum Guru
Forum Guru
Posts: 3803
Joined: Mon Dec 04, 2017 9:19 pm

Re: Mikortik DHCP Option 43

Fri Jul 19, 2019 12:34 pm

IP address in option 43 should be in hex
It's not that simple. The contents is as per vendor specification, so one vendor may require just an ip address as 4 bytes while another one may require a text string to be interpreted as fqdn or IP number.
Instead of writing novels, post /export hide-sensitive. Use find&replace in your favourite text editor to systematically replace all occurrences of each public IP address potentially identifying you by a distinctive pattern such as my.public.ip.1.
 
ilkogd
just joined
Posts: 16
Joined: Wed Sep 05, 2018 3:48 pm

Re: Mikortik DHCP Option 43

Fri Jul 19, 2019 12:45 pm

I understand, thanks sindy. My experience is only with UniFi APs.

Who is online

Users browsing this forum: No registered users and 53 guests