Dhcp server not working

I’ve made a setup with standard config ; pc client doesn’t connect to the vyos box with DHCP but I have to do a static address setup on it

Followinf the commands I’ve used:

set service dhcp-server shared-network-name LAN subnet 192.168.2.0/24 lease ‘86400’
set service dhcp-server shared-network-name LAN subnet 192.168.2.0/24 option default-router ‘192.168.2.1’
set service dhcp-server shared-network-name LAN subnet 192.168.2.0/24 option domain-name ‘vyos.net
set service dhcp-server shared-network-name LAN subnet 192.168.2.0/24 option name-server ‘192.168.2.1’
set service dhcp-server shared-network-name LAN subnet 192.168.2.0/24 range 0 start ‘192.168.2.9’
set service dhcp-server shared-network-name LAN subnet 192.168.2.0/24 range 0 stop ‘192.168.2.99’
set service dhcp-server shared-network-name LAN subnet 192.168.2.0/24 subnet-id ‘1’

@gianry that looks ok, additionally I would set it as the authoritative server it there are no other DHCP server in that subnet.

set service dhcp-server shared-network-name LAN authoritative

How is the LAN interface configured and how is your client connected to the VyOS router? What VyOS version are you using and what client OS?

client has successfully received an ip from DHCP server after " restart dhcp server " command

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.