Page 1 of 1
DHCP client on bridge does not work?
Posted: Sat Apr 14, 2018 6:48 pm
by buddie02
RB951Ui-2nD, versions 6.42rc56, 6.41.4, 6.40.7, 6.39.2, 6.38.5, winbox to MAC server on ether5.
(1) On a clean system (after a full config reset without defaults) do:
/ip dhcp-client
add disabled=no interface=ether5
Address successfully acquired.
(2) After rollback do it with bridge:
/interface bridge
add name=bridge1
/interface bridge port
add bridge=bridge1 interface=ether5
/ip dhcp-client
add disabled=no interface=bridge1
And... Fail. No address. Server-side Mikrotik wrote "offering lease without success".
Torch in (2) on ether5 shows both client request and server answer. Torch on bridge1 shows client request only.
The situation was repetable on several versions of software.
Re: DHCP client on bridge does not work?
Posted: Mon Apr 16, 2018 12:43 pm
by solar77
Does your bridge have an IP address assigned to it? Does the bridge have ARP enabled? (by default it should be)
Re: DHCP client on bridge does not work?
Posted: Mon Apr 16, 2018 4:06 pm
by 2frogs
On your bridge, change to protocol-mode=none. The default is RSTP and I think it is broken!
Re: DHCP client on bridge does not work?
Posted: Fri Apr 20, 2018 4:48 pm
by buddie02
All tests are performed on a clean configuration, i.e.:
- there are no IP address on the bridge and ARP is "enabled";
- bridge setting is default "protocol-mode=rstp". The "stp" and "none" protocol-mode also probed without success.
Re: DHCP client on bridge does not work?
Posted: Fri Apr 20, 2018 5:02 pm
by BartoszP
DHCP client should be set for bridge1 itself.
When any interface is assigned to bridge then it losts its identity and becomes just pure "electrical socket" of bridge interface. All funcionalty then should be set for bridge.
Re: DHCP client on bridge does not work?
Posted: Mon Apr 23, 2018 9:12 pm
by maxsaf
I have a same issue. DHCP client on Vlan100 - got IP. But if Vlan100 is a part of Bridge1 and DCHP client on Bridge1 - no IP. arp enabled stp disabled. Bridge1 has only one interface - Vlan100 nothing else
Re: DHCP client on bridge does not work?
Posted: Fri Jun 29, 2018 3:26 pm
by sveno
I have the exact same problem on many devices using latest ROS
Default config + ports in bridge = doesn't accept IP from DHCP server. Tried non MT DHCP server too, same result.
Re: DHCP client on bridge does not work?
Posted: Fri Jun 29, 2018 3:42 pm
by Zwe
Hi
Does your bridge have an IP address assigned to it? Does the bridge have ARP enabled?
Re: DHCP client on bridge does not work?
Posted: Fri Jun 29, 2018 10:21 pm
by sveno
Hi
Does your bridge have an IP address assigned to it? Does the bridge have ARP enabled?
The DHCP client interface is the bridge yes. Everything is default and by default ARP is enabled everywhere. How come it works for some hours and then doesn't work for some hours? If I hard reset the device it gets an IP immediately.
Re: DHCP client on bridge does not work?
Posted: Tue Jul 17, 2018 2:15 pm
by arasjac
Go to the bridge and try untick fast forward.
Re: DHCP client on bridge does not work?
Posted: Mon Mar 04, 2019 10:03 pm
by andrzej1k1
I waste so many hours and finally found this thread. @2frogs solution works for me - just disabled RSTP!
Re: DHCP client on bridge does not work?
Posted: Tue Apr 16, 2019 5:35 pm
by olivier2831
I waste so many hours and finally found this thread. @2frogs solution works for me - just disabled RSTP!
How did you exactly do this ?
protocol-mode=none in bridge setting ?
Loop-protect in interface ?
Something else ?
Re: DHCP client on bridge does not work?
Posted: Sun Apr 21, 2019 12:22 pm
by msatter
Fast Forward depends on many other setting to be active. See the manual.
https://wiki.mikrotik.com/wiki/Manual:I ... st_Forward
Re: DHCP client on bridge does not work?
Posted: Sat Jul 20, 2019 10:34 pm
by vanyo
Try to disable stp on the bridge, if you don't need it, othervise you shall set it up correctly.
Re: DHCP client on bridge does not work?
Posted: Sat Feb 08, 2020 1:56 am
by tm3558
Maybe WAN port in bridge should be marked as "Trusted" ?
Re: DHCP client on bridge does not work?
Posted: Sat Feb 08, 2020 12:12 pm
by bpwl
It's very unclear why STP and RSTP stop DHCP client from functioning on the bridge itself, and everything behind that bridge.
Fact is that setting the protocol to "none" fixes the problem in many occasions, for Mikrotik but also other DHCP servers.
The STP is slow, and waits quite long (30s?) after an interface on the bridge becomes active to start transmitting. The DHCP handshke may be over yet.
However later renew attempts also fail.
It is known that some reserved MAC adresses are blocked when STP or RSTP is active (
https://wiki.mikrotik.com/wiki/Manual:L ... _addresses).
Is there anything else that is triggered by this being compliant with IEEE 802.1D and IEEE 802.1Q ???
Re: DHCP client on bridge does not work?
Posted: Mon Apr 20, 2020 1:22 pm
by nevolex
HI guys, I'm having the same issue, my Mikrotik is connected to the main router via wifi (wireless bridge (pseudobridge mode).
Wlan and all ethernet ports are moved to the bridge.
I do see a lease in the client section of the ros for the brdige, there is internet available for the router - I can ping google dns from there.
However that IP lease is not passed over to the ethernet ports, so clients connected to the router via cable don't have access to the Internet ( ipconfing shows windows 169.x.x.x. IP)
I have tried a few things:
Removing Rstp
make interfaces trusted
Nothing works, is it a fault or work as designed?
Re: DHCP client on bridge does not work?
Posted: Tue Aug 11, 2020 3:13 pm
by bolean
try set new priority.
/interface bridge add name=bridge1 priority=0x9000
Re: DHCP client on bridge does not work?
Posted: Sun Aug 30, 2020 4:36 pm
by kehrlein
It's very unclear why STP and RSTP stop DHCP client from functioning on the bridge itself, and everything behind that bridge.
Fact is that setting the protocol to "none" fixes the problem in many occasions, for Mikrotik but also other DHCP servers.
try set new priority.
/interface bridge add name=bridge1 priority=0x9000
Same issue here on a bridge with activated DHCP client.
Setting protocol mode to 'none' or setting the priority to '9000' both fixed it.
Does anyone have further bachround information regarding this behaviour?