Community discussions

MikroTik App
 
wildfrustration
just joined
Topic Author
Posts: 1
Joined: Fri Jul 02, 2021 7:37 pm

2 VLANs and DHCP only for 1

Fri Jul 02, 2021 7:52 pm

Hi folks I am new to VLANs, and I really need your help here, I am also willing to buy beer for the one who wants to help - I AM SERIOUS!
1) my router is: rb4011iGS+5HacQ2HnD-IN - it has wireless - 2 of them as well as 2 switches - total 10 ports + 2 wireless
2) My internet provider is using 2 VLANs 1101 for internet and 1110 for IPTV
- 1101 is working with static IP and MAC - and I want to have DHCP server for ports 2,3,4,5 + wifi1 and wifi2 - I believe I need to untag the VLAN
- 1110 is for IPTV they have DHCP server that is giving the ip addresses to the IPTV boxes so it is like forward and untag I believe. I would like to use the second switch for that - ports 6,7,8,9,10

I followed few tutorials and the best I've got was for the ISP to see me and I had ping from the router to internet but no internet on any port or wifi.
Again Thank you so much in advance and I am willing to get you beer as soon as I have working config
 
sindy
Forum Guru
Forum Guru
Posts: 10205
Joined: Mon Dec 04, 2017 9:19 pm

Re: 2 VLANs and DHCP only for 1

Sat Jul 03, 2021 6:29 pm

Untagging vlan 1101 alone won't give you anything. To simplify things, I would recommend to start from the default configuration "DHCP client on WAN", and modify it the following way:
/interface vlan add name=bridge.wan.1101 interface=bridge vlan-id=1101
/interface list member add list=WAN interface=bridge.wan.1101
/ip dhcp-client set [find interface=ether1] interface=bridge.wan.1101
/interface list member disable [find list=WAN interface=ether1]
/interface bridge port add bridge=bridge interface=ether1 edge=yes
/interface bridge vlan
add vlan-ids=1101 bridge=bridge tagged=ether1,bridge
add vlan-ids=1110 bridge=bridge tagged=ether1
/interface bridge port set [find interface~"ether([6789]|10)"] pvid=1110
/interface bridge set bridge vlan-filtering=yes
 
Guscht
Member Candidate
Member Candidate
Posts: 236
Joined: Thu Jul 01, 2010 5:32 pm

Re: 2 VLANs and DHCP only for 1

Mon Jul 05, 2021 12:43 am

1. Set-up the ISP as the gateway for your router
1a. create a bridge, create the VLANs, create VLAN interfaces and bind these to your bridge

2. create a VLAN for your home-LAN, including a DHCP which points the clients to your router (as their gateway).

3. create on your bridge (step 1a) another VLAN for ID1110 and untag on your desired ports

Who is online

Users browsing this forum: Ahrefs [Bot], Batterio, godel0914, sebus46, toffline and 71 guests