Hi, I’ve the following hardware setup:
Router (192.168.1.1 with DHCP) <> Ether1 of Mikrotik RB4011 (v6.48.3) <> LAN-Clients (Eth2: IP-phone, Eth3, Debian server with Virtual Machine running Asterisk)
I’ve read https://help.mikrotik.com/docs/display/ROS/Bridge+VLAN+Table and tried to adapt it.
- I should create a bridge for the router and the IP-phone, adding dhcp-client for MikroTik at bridge_wan (no pvid?):
/interface bridge
add name=bridge_wan
/interface bridge port
add bridge=bridge_wan comment=defconf interface=ether2
add bridge=bridge_wan comment=defconf interface=ether1
/ip dhcp-client
add disabled=no interface=bridge_wan use-peer-dns=no
With this configuration, the IP-phone and the MikroTik should get an IP address (192.168.1.x) from the router.
But how do I add the virtual server? Since I want to add the Asterisk server, which is a virtual machine, I came up with the idea to add a VLAN tagged virtual adapter “ens3.111” (VLAN ID 111).
2. Hence, I guess, I need to add a VLAN to bridge_wan, for example with ID 111.
3. Since the router and the IP-phone do not send VLAN-tags, I’ll add ether1 and ether2 as untagged and vlan_wan as tagged?
/interface vlan
add interface=bridge_wan name=vlan_wan vlan-id=111
/interface bridge vlan
add bridge=bridge_wan tagged=vlan_wan untagged=ether1,ether2 vlan-ids=111
Not sure if I have to add bridge_wan. If so, as tagged or untagged?
- Last but not least, I have to activate VLAN Filtering
/interface bridge set bridge_wan vlan-filtering=yes
Result: MikroTik, IP-phone and the Asterisk virtual server get an IP address from range 192.168.1.0/24.
This should be it, right? I’ve read some tutorial where ether1 and ether2 had pvid assigned but I think there is no need for in my scenario.
Hopefully, someone can verify or comment on my idea. If all correct, I will implement it.
Thanks in advance.
Side note: Due to unknown reasons, not all my VoIP-provider configured on my Asterisk server are accessible through the MikroTik router. Hence, I came up with the outlined idea.


