Community discussions

MikroTik App
 
buddie02
just joined
Topic Author
Posts: 6
Joined: Tue Jan 20, 2015 7:44 pm

DHCP client on bridge does not work?

Sat Apr 14, 2018 6:48 pm

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.
 
solar77
Long time Member
Long time Member
Posts: 586
Joined: Thu Feb 04, 2016 11:42 am
Location: Scotland

Re: DHCP client on bridge does not work?

Mon Apr 16, 2018 12:43 pm

Does your bridge have an IP address assigned to it? Does the bridge have ARP enabled? (by default it should be)
 
2frogs
Forum Veteran
Forum Veteran
Posts: 713
Joined: Fri Dec 03, 2010 1:38 am

Re: DHCP client on bridge does not work?

Mon Apr 16, 2018 4:06 pm

On your bridge, change to protocol-mode=none. The default is RSTP and I think it is broken!
 
buddie02
just joined
Topic Author
Posts: 6
Joined: Tue Jan 20, 2015 7:44 pm

Re: DHCP client on bridge does not work?

Fri Apr 20, 2018 4:48 pm

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.
 
User avatar
BartoszP
Forum Guru
Forum Guru
Posts: 2880
Joined: Mon Jun 16, 2014 1:13 pm
Location: Poland

Re: DHCP client on bridge does not work?

Fri Apr 20, 2018 5:02 pm

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.
 
maxsaf
Frequent Visitor
Frequent Visitor
Posts: 71
Joined: Tue Mar 06, 2018 8:47 pm

Re: DHCP client on bridge does not work?

Mon Apr 23, 2018 9:12 pm

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
 
sveno
newbie
Posts: 41
Joined: Mon May 14, 2012 8:29 pm

Re: DHCP client on bridge does not work?

Fri Jun 29, 2018 3:26 pm

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.
 
Zwe
just joined
Posts: 13
Joined: Thu Jan 11, 2018 11:19 am
Location: Myanmar,Mandalay
Contact:

Re: DHCP client on bridge does not work?

Fri Jun 29, 2018 3:42 pm

Hi
Does your bridge have an IP address assigned to it? Does the bridge have ARP enabled?
 
sveno
newbie
Posts: 41
Joined: Mon May 14, 2012 8:29 pm

Re: DHCP client on bridge does not work?

Fri Jun 29, 2018 10:21 pm

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.
 
arasjac
just joined
Posts: 2
Joined: Tue Jul 17, 2018 2:11 pm
Location: Dublin

Re: DHCP client on bridge does not work?

Tue Jul 17, 2018 2:15 pm

Go to the bridge and try untick fast forward.
You do not have the required permissions to view the files attached to this post.
 
andrzej1k1
just joined
Posts: 1
Joined: Mon Mar 04, 2019 9:59 pm

Re: DHCP client on bridge does not work?

Mon Mar 04, 2019 10:03 pm

I waste so many hours and finally found this thread. @2frogs solution works for me - just disabled RSTP!
 
olivier2831
Member Candidate
Member Candidate
Posts: 296
Joined: Fri Sep 08, 2017 6:53 pm

Re: DHCP client on bridge does not work?

Tue Apr 16, 2019 5:35 pm

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 ?
 
msatter
Forum Guru
Forum Guru
Posts: 2912
Joined: Tue Feb 18, 2014 12:56 am
Location: Netherlands / Nīderlande

Re: DHCP client on bridge does not work?

Sun Apr 21, 2019 12:22 pm

Fast Forward depends on many other setting to be active. See the manual.

https://wiki.mikrotik.com/wiki/Manual:I ... st_Forward
 
vanyo
just joined
Posts: 8
Joined: Tue Nov 24, 2015 12:19 am

Re: DHCP client on bridge does not work?

Sat Jul 20, 2019 10:34 pm

Try to disable stp on the bridge, if you don't need it, othervise you shall set it up correctly.
 
tm3558
just joined
Posts: 3
Joined: Fri Sep 28, 2018 1:54 am

Re: DHCP client on bridge does not work?

Sat Feb 08, 2020 1:56 am

Maybe WAN port in bridge should be marked as "Trusted" ?
 
User avatar
bpwl
Forum Guru
Forum Guru
Posts: 2994
Joined: Mon Apr 08, 2019 1:16 am

Re: DHCP client on bridge does not work?

Sat Feb 08, 2020 12:12 pm

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 ???
 
nevolex
Member Candidate
Member Candidate
Posts: 167
Joined: Mon Apr 20, 2020 1:09 pm

Re: DHCP client on bridge does not work?

Mon Apr 20, 2020 1:22 pm

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?
 
bolean
just joined
Posts: 7
Joined: Fri Apr 13, 2018 2:45 pm

Re: DHCP client on bridge does not work?

Tue Aug 11, 2020 3:13 pm

try set new priority.
/interface bridge add name=bridge1 priority=0x9000
 
User avatar
kehrlein
newbie
Posts: 48
Joined: Tue Jul 09, 2019 1:35 am

Re: DHCP client on bridge does not work?

Sun Aug 30, 2020 4:36 pm

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?

Who is online

Users browsing this forum: complexxL9, sotahe9145, tdw and 208 guests