DHCP Not Assigning IP Addresses to WiFi Network on MikroTik Router VLAN40
In this article, we will discuss how to configure VLAN (VLAN40) on a MikroTik router that includes Ethernet ports (ether3, ether4) and a WiFi network. We will cover the key concepts related to this topic and provide a detailed guide on how to resolve the issue of devices not receiving IP addresses from the DHCP server.
What is VLAN?
A Virtual Local Area Network (VLAN) is a network technology that allows network administrators to partition a physical network into isolated logical networks. VLANs can be used to improve network security, simplify network management, and reduce broadcast traffic.
Configuring VLAN on MikroTik Router
To configure VLAN on a MikroTik router, follow these steps:
- Log in to the MikroTik router's web interface.
- Go to the
/interface vlanmenu. - Click the
Add Newbutton. - Enter a name for the VLAN, such as
VLAN40. - Select the
parentinterface, which is the physical interface that the VLAN will be associated with, such asether3orether4. - Enter a
VLAN ID, such as40. - Click the
Applybutton to save the changes.
Configuring WiFi Network on MikroTik Router
To configure a WiFi network on a MikroTik router, follow these steps:
- Go to the
/interface wirelessmenu. - Click the
Add Newbutton. - Enter a name for the WiFi network, such as
MyWiFiNetwork. - Select the
modeof the WiFi network, such asap-bridgeorstation-bridge. - Enter the
SSIDof the WiFi network, such asMyWiFiNetwork. - Configure the WiFi network's security settings, such as WPA2-PSK.
- Click the
Applybutton to save the changes. - Go to the
/interface bridgemenu. - Click the
Add Newbutton. - Enter a name for the bridge, such as
MyBridge. - Add the VLAN interface and the WiFi interface to the bridge.
- Click the
Applybutton to save the changes.
Configuring DHCP Server on MikroTik Router
To configure the DHCP server on a MikroTik router, follow these steps:
- Go to the
/ip dhcp servermenu. - Click the
Add Newbutton. - Select the
interfaceon which the DHCP server will be enabled, such as the bridge interfaceMyBridge. - Configure the DHCP server's settings, such as the
rangeof IP addresses that will be assigned to clients. - Click the
Applybutton to save the changes.
Troubleshooting DHCP Issues
If devices are not receiving IP addresses from the DHCP server, check the following:
- Make sure that the DHCP server is enabled.
- Make sure that the DHCP server's settings match the network configuration, such as the subnet mask and default gateway.
- Check the DHCP lease database to see if any leases have been assigned to the devices.
- Check the firewall rules to make sure that DHCP traffic is not being blocked.
- VLAN is a network technology that enables network administrators to partition a physical network into isolated logical networks.
- Configuring VLAN on a MikroTik router involves creating a VLAN interface and associating it with a physical interface.
- Configuring a WiFi network on a MikroTik router involves creating a WiFi interface and adding it to a bridge interface.
- Configuring the DHCP server on a MikroTik router involves enabling the DHCP server on the desired interface and setting the range of IP addresses that will be assigned to clients.
- If devices are not receiving IP addresses from the DHCP server, check the DHCP server's settings and the firewall rules to make sure that DHCP traffic is not being blocked.
References
- MikroTik, "VLAN Configuration," https://wiki.mikrotik.com/wiki/Manual:Interface/VLAN
- MikroTik, "Wireless Setup," https://wiki.mikrotik.com/wiki/Manual:Wireless
- MikroTik, "DHCP Server," https://wiki.mikrotik.com/wiki/Manual:IP/DHCP_Server