Community discussions

MikroTik App
 
forne
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 65
Joined: Tue Feb 15, 2011 3:18 pm

dhcp-client: problem with broadcast flag

Tue Feb 15, 2011 3:32 pm

dhcp-client always sends DHCP:DISCOVER packets with the broadcast flag turned on. Some DHCP servers (not MikroTik) can't deal correctly with that flag and don't send any answer at all. So dhcp-client stays in "searching" state forever. Is there any way to not turn on the broadcast flag in the dhcp-client requests like dhcp clients in the most versions of Windows do?
 
User avatar
sergejs
MikroTik Support
MikroTik Support
Posts: 6697
Joined: Thu Mar 31, 2005 3:33 pm
Location: Riga, Latvia
Contact:

Re: dhcp-client: problem with broadcast flag

Mon Feb 21, 2011 1:26 pm

Yes, it is correct.
Broadcast flag is set for MikroTik DHCP client.

RFC states that broadcast flag should be set,
A client that cannot receive unicast IP datagrams until its protocol
software has been configured with an IP address SHOULD set the
BROADCAST bit in the 'flags' field to 1 in any DHCPDISCOVER or
DHCPREQUEST messages that client sends. The BROADCAST bit will
provide a hint to the DHCP server and BOOTP relay agent to broadcast
any messages to the client on the client's subnet. A client that can
receive unicast IP datagrams before its protocol software has been
configured SHOULD clear the BROADCAST bit to 0. The BOOTP
clarifications document discusses the ramifications of the use of the
BROADCAST bit
However we could add a workaround, when DHCP client will switch off broadcast after 15 sec of not getting the address;
- 15sec broadcast;
- 15sec without broadcast, when broadcast messages fail.
 
forne
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 65
Joined: Tue Feb 15, 2011 3:18 pm

Re: dhcp-client: problem with broadcast flag

Sat Mar 05, 2011 8:08 am

sergejs, is this workaround not added to v5rc11 yet?
 
forne
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 65
Joined: Tue Feb 15, 2011 3:18 pm

Re: dhcp-client: problem with broadcast flag

Thu Mar 10, 2011 9:16 am

It was added, thanks.
 
sovereignty68
just joined
Posts: 6
Joined: Fri Dec 16, 2011 6:02 am

Re: dhcp-client: problem with broadcast flag

Thu May 03, 2012 3:32 am

Broadcast flag could be the case that my routerboard is stuck in "searching..." when it attempts to get an IP address from the modem. However, I don't see the workaround was added in changelog.