Hello. I have a hex -s router where all ports are bridged together TO A SINGLE BRIDGE with a dhcp server running at 192.168.4.0/24 for my internal network
Eth2 of the router is now connected to a mikrotik cloud router switch with switch os. Eth2 of the router is connected to eth1 of the managed switch.
I would like to create a vlan ,lets call it IOT20, vlan id 20, for ports 5 and 7 of the switch in order to connect iot stuff.
Steps I have taken at the router : At Interfaces, I have created a new interface at the VLAN tab , named IOT20 and selected Eth2 as interface
AT IP-ADDRESSES, I have added a new Address 10.10.10.1 /24 , network 10.10.10.0 and selected the interface as IOT20 (NOT Eth2)
I added a new dhcp server at DHCP SERVER-NETWORKS 10.10.10.0/24 (A 192.168.4.0/24 network is already present) .
On the switch side of things , I have added in the tab vlans a new vlan with ID=20 and included the 5,7 ports only.
In the VLAn tab of the switch I have had ports 5 and 7 checked, vlan mode as strict (also tried optional) and set their default vlan id as 20 .
This setup does not work , the devices in ports 5, 7 do not get an ip at the desired 10.10.10.0/24 range .
I tried adding a dhcp server at the router side for a 10.10.10.0/24 network but still no results.
I am unsure on whether my setup is faulty at the router side, managed switch side, or both ![]()
Any helpful suggestions are more than welcome . thank you
My config
\
model = RB760iGS
serial number = 87F209A41194
/interface bridge
add admin-mac= auto-mac=no comment=defconf name=bridge
/interface pppoe-client
add add-default-route=yes disabled=no interface=ether1 name=pppoe-out1
use-peer-dns=yes user=
/interface vlan
add interface=ether2 name=IOT20 vlan-id=20
/interface list
add comment=defconf name=WAN
add comment=defconf name=LAN
/interface wireless security-profiles
set [ find default=yes ] supplicant-identity=MikroTik
/ip hotspot profile
set [ find default=yes ] html-directory=flash/hotspot
/ip pool
add name=dhcp ranges=192.168.4.10-192.168.4.254
add name=vpn ranges=192.168.89.2-192.168.89.255
add name=dhcp_pool2 ranges=192.168.10.2-192.168.10.254
/ip dhcp-server
add address-pool=dhcp disabled=no interface=bridge lease-time=50m name=
defconf
/ppp profile
set *FFFFFFFE local-address=192.168.89.1 remote-address=vpn
/interface bridge port
add bridge=bridge comment=defconf interface=ether2
add bridge=bridge comment=defconf interface=ether3
add bridge=bridge comment=defconf interface=ether5
add bridge=bridge comment=defconf interface=sfp1
add bridge=bridge interface=ether4
/ip neighbor discovery-settings
set discover-interface-list=LAN
/interface detect-internet
set detect-interface-list=all
/interface l2tp-server server
set enabled=yes use-ipsec=yes
/interface list member
add comment=defconf interface=bridge list=LAN
add comment=defconf interface=ether1 list=WAN
add interface=pppoe-out1 list=WAN
/interface pptp-server server
set enabled=yes
/interface sstp-server server
set default-profile=default-encryption enabled=yes
/ip address
add address=192.168.4.1/24 comment=defconf interface=bridge network=
192.168.4.0
add address=10.10.10.1/24 interface=IOT20 network=10.10.10.0
/ip cloud
set ddns-enabled=yes
/ip dhcp-client
add comment=defconf interface=ether1
/ip dhcp-server lease
add address=192.168.4.154 client-id=1:e8:39:35:2c:9e:3d mac-address=
E8:39:35:2C:9E:3D server=defconf
/ip dhcp-server network
add address=10.10.10.0/24 dns-server=195.170.0.1 gateway=10.10.10.1 netmask=
24
add address=192.168.4.0/24 comment=defconf dns-server=195.170.0.1 gateway=
192.168.4.1 netmask=24
/ip dns
set allow-remote-requests=yes
/ip dns static
add address=192.168.4.1 comment=defconf name=router.lan
/ip firewall filter
add action=accept chain=input comment=
"defconf: accept established,related,untracked" connection-state=
established,related,untracked
add action=accept chain=input comment="allow IPsec NAT" dst-port=4500
protocol=udp
add action=accept chain=input comment="allow IKE" dst-port=500 protocol=udp
add action=accept chain=input comment="allow l2tp" dst-port=1701 protocol=udp
add action=accept chain=input comment="allow pptp" dst-port=1723 protocol=tcp
add action=accept chain=input comment="allow sstp" dst-port=443 protocol=tcp
add action=drop chain=input comment="defconf: drop invalid" connection-state=
invalid
add action=accept chain=input comment="defconf: accept ICMP" protocol=icmp
add action=accept chain=input comment=
"defconf: accept to local loopback (for CAPsMAN)" dst-address=127.0.0.1
add action=drop chain=input comment="defconf: drop all not coming from LAN"
in-interface-list=!LAN
add action=accept chain=forward comment="defconf: accept in ipsec policy"
ipsec-policy=in,ipsec
add action=accept chain=forward comment="defconf: accept out ipsec policy"
ipsec-policy=out,ipsec
add action=fasttrack-connection chain=forward comment="defconf: fasttrack"
connection-state=established,related
add action=accept chain=forward comment=
"defconf: accept established,related, untracked" connection-state=
established,related,untracked
add action=drop chain=forward comment="defconf: drop invalid"
connection-state=invalid
add action=drop chain=forward comment=
"defconf: drop all from WAN not DSTNATed" connection-nat-state=!dstnat
connection-state=new in-interface-list=WAN
/ip firewall nat
add action=masquerade chain=srcnat comment="defconf: masquerade"
ipsec-policy=out,none out-interface-list=WAN
add action=masquerade chain=srcnat comment="masq. vpn traffic" src-address=
192.168.89.0/24
/ip firewall service-port
set ftp disabled=yes
set tftp disabled=yes
set irc disabled=yes
set dccp disabled=yes
set sctp disabled=yes
/ppp secret
add disabled=yes name=vpn
add name=
/system clock
set time-zone-name=
/system identity
set name="MikroTik hex s"
/tool graphing interface
add
/tool mac-server
set allowed-interface-list=LAN
/tool mac-server mac-winbox
set allowed-interface-list=LAN

