Community discussions

MikroTik App
 
smi96
just joined
Topic Author
Posts: 3
Joined: Mon Sep 18, 2023 8:24 am

Switch RB260GS, VLANs, DHCP not working

Mon Sep 18, 2023 8:44 am

Hi All!

The problem: DHCP does not work if the client is in a certain VLAN on the switch
I have a software router (it has 6 Ethernet, one is WAN, the rest in the bridge are LAN)
I decided to move it to another place. I bought two RB260GS switches and configured VLANs for the provider and LAN
The scheme is simple: the provider is in VLAN 10 (Untag port 5), the remaining ports are LAN (Untag vlan 3). The first port of the switch is PoE and uplink to another switch (i.e. on the first port: 3 Untag, 10 Tag). On the second switch, the settings are similar (10 Untag VLAN on port 5, the WAN port of the router goes to it).
Everything works fine, there are PING everywhere. Except DHCP on clients. The DHCP server is located on the router (bind to interface br0). If the client connects directly to one of the router ports, then the DHCP works correct. But if reconnect a client to any other LAN port of the switch (where VLAN id: 3), then it cannot finally get DHCP address. In the logs I have:
Sep 18 00:02:32 ubuntu dhcpd[128309]: DHCPDISCOVER from 94:de:80:0d:81:fb via br0
Sep 18 00:02:32 ubuntu dhcpd[128309]: DHCPOFFER on 192.168.1.3 to 94:de:80:0d:81:fb via br0
Sep 18 00:02:34 ubuntu dhcpd[128309]: DHCPDISCOVER from 94:de:80:0d:81:fb via br0
Sep 18 00:02:34 ubuntu dhcpd[128309]: DHCPOFFER on 192.168.1.3 to 94:de:80:0d:81:fb via br0
Sep 18 00:02:38 ubuntu dhcpd[128309]: DHCPDISCOVER from 94:de:80:0d:81:fb via br0
Sep 18 00:02:38 ubuntu dhcpd[128309]: DHCPOFFER on 192.168.1.3 to 94:de:80:0d:81:fb via br0
constantly loop the DHCPDISCOVER/DHCPOFFER... etc
But here are the logs when directly to the router
Sep 18 08:26:52 ubuntu dhcpd[128309]: DHCPDISCOVER from 94:de:80:0d:81:fb via br0
Sep 18 08:26:52 ubuntu dhcpd[128309]: DHCPOFFER on 192.168.1.3 to 94:de:80:0d:81:fb via br0
Sep 18 08:26:52 ubuntu dhcpd[128309]: DHCPREQUEST for 192.168.1.3 (192.168.1.1) from 94:de:80:0d:81:fb via br0
Sep 18 08:26:52 ubuntu dhcpd[128309]: DHCPACK on 192.168.1.3 to 94:de:80:0d:81:fb via br0
normal scheme DHCPDISCOVER/DHCPOFFER/DHCPREQUEST/DHCPACK

I tried different versions of the DHCP server (dnsmasq and isc-dhcpd) - the result is the same.
At the same time, everything works fine with static ip-addresses. I can see ARP of any device on the LAN. IPv6 worked and still works fine.
On desktop computers, of course, I can set static ip-addresses, but what to do with WiFi? WiFi clients cannot connect (at the stage of obtaining an address from DHCP)

Does anyone know what the problem might be?
 
smi96
just joined
Topic Author
Posts: 3
Joined: Mon Sep 18, 2023 8:24 am

Re: Switch RB260GS, VLANs, DHCP not working

Mon Sep 18, 2023 10:18 pm

In Changelog for version 2.13 I see
What's new in v2.13:
*) CSS106: fixed IGMP, PPPoE & DHCP snooping of VLAN tagged packets;
But I can't find any "DHCP snooping" option in menu
Does anybody know where is it?
 
tangent
Forum Guru
Forum Guru
Posts: 1404
Joined: Thu Jul 01, 2021 3:15 pm
Contact:

Re: Switch RB260GS, VLANs, DHCP not working

Mon Sep 18, 2023 10:44 pm

I can't find any "DHCP snooping" option in menu

The low-end MikroTik hardware leaves out some features. This is clearest to see in the RouterOS switch chip features page. I realize you have a SwOS-only device here, but the point is, even at the higher end of the product line, you don't get every feature on every device.

Another way to see this is to compare the CSS106 SwOS manual to that of a more up-to-date device like the CSS610, where its manual does mention DHCP snooping. Implicitly, the CSS106 doesn't have that feature.

I expect this is a good thing in terms of your original question because if DHCP snooping is missing, it cannot be causing your symptom.
 
User avatar
k6ccc
Forum Guru
Forum Guru
Posts: 1500
Joined: Fri May 13, 2016 12:01 am
Location: Glendora, CA, USA (near Los Angeles)
Contact:

Re: Switch RB260GS, VLANs, DHCP not working

Tue Sep 19, 2023 7:56 pm

I have a half dozen SwitchOS devices and DHCP on VLANs works just fine, so you have something amiss. I am not able to connect to my switches right now, but when I get back to the home network, I will poke around. In the mean time, there screen captures might help you get started: These are all from one of my RB260 switches...
Image

Image

Image
 
smi96
just joined
Topic Author
Posts: 3
Joined: Mon Sep 18, 2023 8:24 am

Re: Switch RB260GS, VLANs, DHCP not working

Wed Sep 20, 2023 8:16 am

I have a half dozen SwitchOS devices and DHCP on VLANs works just fine, so you have something amiss. I am not able to connect to my switches right now, but when I get back to the home network, I will poke around. In the mean time, there screen captures might help you get started: These are all from one of my RB260 switches...
Image

Image

Image
Thank you for reply!
I solved my problem - I cut one ethernet out of the bridge and wake routing on it
It works (but the clients are in different network segments)

Who is online

Users browsing this forum: No registered users and 0 guests