Even with simple setup of vlans the dhcp doesn't work on my mikrotik. Setting IP manually doesnt help. There is no ping to the gateway. Can you tell what cause the issue ?
Code: Select all
2025-03-11 11:46:24 by RouterOS 7.19beta5
# software id = ZN6H-3881
#
# model = L009UiGS
# serial number = HF309AEZ492
/interface vlan
add interface=ether2 name=vlan20 vlan-id=20
add interface=ether3 name=vlan30 vlan-id=30
/interface wireless security-profiles
set [ find default=yes ] supplicant-identity=MikroTik
/iot lora servers
add address=eu1.cloud.thethings.industries name="TTS Cloud (eu1)" protocol=UDP
add address=nam1.cloud.thethings.industries name="TTS Cloud (nam1)" protocol=UDP
add address=au1.cloud.thethings.industries name="TTS Cloud (au1)" protocol=UDP
add address=eu1.cloud.thethings.network name="TTN V3 (eu1)" protocol=UDP
add address=nam1.cloud.thethings.network name="TTN V3 (nam1)" protocol=UDP
add address=au1.cloud.thethings.network name="TTN V3 (au1)" protocol=UDP
/ip pool
add name=poolVlan20 ranges=192.168.20.10-192.168.20.254
add name=poolVlan30 ranges=192.168.30.10-192.168.30.254
/ip dhcp-server
add address-pool=poolVlan20 interface=vlan20 name=dhcpVLAN20
add address-pool=poolVlan30 interface=vlan30 name=dhcpVLAN30
/port
set 0 name=serial0
