Community discussions

MikroTik App
 
S8T8
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 81
Joined: Thu Sep 15, 2022 7:15 pm

VoIP VLAN, how?

Thu Sep 15, 2022 7:30 pm

Dear MikroTik experts,
currently using an hAP ac2 with a pair of VLANs to the bridge, connected to ISP via VLAN835, an analog phone is configured to an external VoIP gateway,
/interface vlan add interface=ether1 name=ISP-VLAN vlan-id=835
/interface pppoe-client add add-default-route=yes default-route-distance=1 interface=ISP-VLAN...
now I'm in the process of changing ISP and they use VLAN 835 for internet and 836 for phone service, what is the best way to connect the VoIP gateway to the VLAN 836?

Hope was clear.

Thanks!
 
S8T8
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 81
Joined: Thu Sep 15, 2022 7:15 pm

Re: VoIP VLAN, how?

Sat Sep 17, 2022 1:11 pm

any hint is the solution could be like add a second Bridge with WAN port + untagged VLAN836 to LAN port, losing the hardware offload due to multiple bridges or add the VLAN 836 to one LAN port in the main bridge...
Sorry not very techical
 
User avatar
soonwai
Member Candidate
Member Candidate
Posts: 186
Joined: Mon Feb 06, 2012 10:50 pm
Location: Kuala Lumpur

Re: VoIP VLAN, how?

Sun Sep 18, 2022 5:53 pm

This is how my friend's office has it set up. RouterOS 6.49.6.

400 is VOIP vlan
500 is internet vlan
ether1 to ISP's modem
ether5 to VOIP gateway
/interface vlan
add interface=ether1 name=vlan400 vlan-id=400
add interface=ether1 name=vlan500 vlan-id=500

/interface pppoe-client
add add-default-route=yes disabled=no interface=vlan500 name=pppoe-out1 password=xxxxxxx use-peer-dns=yes user=ilovemikrotik

/interface bridge
add name=bridge400

/interface bridge port
add bridge=bridge400 interface=vlan400
add bridge=bridge400 interface=ether5
Last edited by soonwai on Tue Sep 20, 2022 8:27 am, edited 1 time in total.
 
Dude2048
Member Candidate
Member Candidate
Posts: 212
Joined: Thu Sep 01, 2016 4:04 pm

Re: VoIP VLAN, how?

Sun Sep 18, 2022 9:18 pm

Just read this first. If you have questions afterwards, I will be happy to answer them.
viewtopic.php?t=143620
 
S8T8
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 81
Joined: Thu Sep 15, 2022 7:15 pm

Re: VoIP VLAN, how?

Mon Sep 19, 2022 6:00 pm

Thanks a lot @soonwai!
@Dude2048 I read all the pcunite's guide, my question was specific, if the only and best way to use VoIP VLAN is to have a second bridge losing the hardware offload.
If useful for someone, I used a very similar solution suggested by @soonwai for PPPoE passtrough.
 
User avatar
soonwai
Member Candidate
Member Candidate
Posts: 186
Joined: Mon Feb 06, 2012 10:50 pm
Location: Kuala Lumpur

Re: VoIP VLAN, how?

Tue Sep 20, 2022 8:26 am

No problem. There's also an alternative way to do this using bridge vlan processing.

50 is LAN vlan
400 is VOIP vlan
500 is internet vlan
ether1 to ISP's modem
ether5 to VOIP gateway
/interface pppoe-client add add-default-route=yes disabled=no interface=vlan500 name=pppoe-out1 user=ilovemikrotik@unifi password=xxxxx

/interface vlan
add interface=bridge1 name=vlan50 vlan-id=50
add interface=bridge1 name=vlan400 vlan-id=400
add interface=bridge1 name=vlan500 vlan-id=500

/interface bridge add name=bridge1 vlan-filtering=yes

/interface bridge vlan
add bridge=bridge1 tagged=bridge1 untagged=ether2,ether3,ether4 vlan-ids=50
add bridge=bridge1 tagged=ether1,bridge1 untagged=ether5 vlan-ids=400
add bridge=bridge1 tagged=ether1,bridge1 vlan-ids=500

Who is online

Users browsing this forum: No registered users and 56 guests