Community discussions

MikroTik App
 
stleoric
just joined
Topic Author
Posts: 7
Joined: Thu Jul 25, 2013 7:47 pm

[SOLVED] DHCP over a wireless bridge link

Tue Jul 05, 2016 6:58 pm

Hey guys, I'm hoping somebody might be able to point me in the right direction. I'm having problems getting a DHCP client to get an IP.
I'm trying to get a Set-top Box (STB) to receive an IP from ISP's DHCP.

This is the setup:

ISP --- DSL modem --- Mikrotik1 (((--))) Mikrotik2 --- Set-top Box
  • Mikrotik1 (M1) is a Router/wireless AP. The physical wireless interface is in "ap bridge" mode. Standard configuration for internet access. I created a VirtualAP interface, which is used just for M2.
  • M2 is in "station pseudobridge" mode. M2 is connected to M1 over the wifi link.
  • On M2, I created a bridge interface (bridge-iptv) and added the port that the STB is connected to (ether1-gateway) and the wlan physical interface (wlan-iptv).
The problem:
  • STB (or a PC), connected to ether1-gateway on M2 does not receive an IP from ISP
  • A DHCP client created on M2's bridge-iptv does not receive an IP from ISP
  • A DHCP client created on M2's wlan-iptv DOES receive an IP from ISP
So everything ok all the way from ISP to M2, I just can't get the last part (from M2 to STB) to work. It feels like I have a very simple mistake in my M2's bridge/port configuration, but I can't figure it out.

This is M2's bridge/port configuration:
/interface bridge
add name=bridge-iptv
add admin-mac=XX:XX:XX:XX:XX:XX auto-mac=no name=bridge-local

/interface bridge port
add bridge=bridge-local interface=ether2-master-local
add bridge=bridge-iptv interface=wlan-iptv
add bridge=bridge-iptv interface=ether1-gateway
It feels like I'm missing something very basic, but can't see where I went wrong. Is the problem using "station pseudobridge" mode on M2 and can't bridge this wlan interface with an ethernet interface?

Any help will be greatly appreciated. Thanks.

EDIT: Solved with razortas' help. The correct mode on M2 was "station bridge".
My bad for not trying it in the first place. I had problems establishing a connection in another/different setup, and got it working with pseudobridge, that's why I started with it.
Last edited by stleoric on Wed Jul 06, 2016 5:13 pm, edited 1 time in total.
 
razortas
newbie
Posts: 40
Joined: Tue Nov 20, 2012 1:07 am

Re: DHCP over a wireless bridge link

Wed Jul 06, 2016 8:07 am

I think you nailed it already - Use station-bridge mode on M2
 
stleoric
just joined
Topic Author
Posts: 7
Joined: Thu Jul 25, 2013 7:47 pm

Re: DHCP over a wireless bridge link

Wed Jul 06, 2016 5:10 pm

I think you nailed it already - Use station-bridge mode on M2
Yup, that was it. Had to use "station bridge" mode. Thank you.
My bad for not trying it in the first place. I had problems establishing a connection in another/different setup, and got it working with pseudobridge, that's why I started with it.
Now I'm trying to figure out why I only have a 1/1 Mbps link between the two mikrotiks. The signal is good , around -45 dBm for Rx and Tx and no manual Tx/Rx rates are set...
 
brusezot
just joined
Posts: 2
Joined: Fri Mar 19, 2021 1:00 pm

Re: [SOLVED] DHCP over a wireless bridge link

Thu Dec 30, 2021 5:51 pm

Hi everybody,

I have a question for you, i need to create a bridge between two devices Mikrotik :

DHCP Server by ISP Router <<<===>>> Omnitik M1 all ports on the bridge (Wlan1 ap bridge) <<<=====>>> Audience M2 all ports on the bridge (Wlan3 station bridge)


Omnitik M1 :
PC or other devices by ether1/2/... port DHCP Ok

Audience M2
iPad or other device by Wlan (ap bridge 1&2) or Ether 2

All interface on the same bridge, DHCP Server only on ISP Router. On my Omnitik M1 I receive all IP address on all interfaces but not for Audience M2
Last edited by brusezot on Thu Dec 30, 2021 5:53 pm, edited 1 time in total.