Many DrayTek layer 2+ VigorSwitches, such as the VigorSwitch P2280x, support DHCP server feature. It allows the switch to assign IP addresses to its local clients. It can be beneficial for the uplink between the core switch and your router. The allocation of IP addresses will still work, if the router is offline. In addition to the DHCP services, the Bind IP to MAC function is available to assign a static IP address for printers, servers, IP phones and other local devices.
These can be useful if we want to stop DHCP services on the router so that it can handle more important tasks.
This article demonstrates how to configure a DHCP Server on a VigorSwitch. The setup will be completed with the Bind IP to MAC feature setup.
It is important to check that a static IP address is configured on the switch first.
It is also important to have DHCP services disabled on your router. Here is how to do this on the DrayTek Vigor routers.
Now your router does not provide DHCP services and should not conflict with a new server enabled on your VigorSwitch. Note that you may need to configure your computer with a static IP address as illustrated here so that access to the switch during the configuration process is available.
1. Go to [Switch] > [VLAN Management] > [Create VLAN]
* - note that VLAN ID is required and will allow your switch to offer DHCP services to ports that are part of defined VLAN ID
2. Navigate to [VLAN Routing] > [Interface Settings]
3. In the [Switch LAN] > [DHCP Server Settings] section
The DHCP Server Status should become green as illustrated below
4. The DHCP Server should be working. This can be tested with a computer connected to a selected port of our switch.
Go to [Switch LAN] > [VLAN Management] > [Interface Settings]
You can capture the packets to confirm that the DHCP handshake has occurred. Below, our switch on 192.168.100.2 responds to the DHCP Discover packets and assigns an IP address to the computer.
DrayTek layer 2+ VigorSwitches also support the Bind IP to MAC feature. This can be used to reserve LAN IP addresses for certain clients.
5. Link a MAC address of your device(s) with a selected IP address on [Switch LAN] > [DHCP Server/Relay] > [Bind IP to MAC] page
How do you rate this article?