1.2.0-rc6 [[service dhcp-server]] failed

Hiya,

Just DL rc6 (into GNS3 and vmware), setup single interface which committed fine, configure a DHCP server using the following and got the error below. Is this a bug or is it just me?

set interfaces ethernet eth0 address '10.1.1.1/24'
set interfaces ethernet eth0 description 'LAN'
set service dhcp-server shared-network-name LAN subnet 10.1.1.0/24 default-router '10.1.1.1'
set service dhcp-server shared-network-name LAN subnet 10.1.1.0/24 dns-server '10.1.1.1'
set service dhcp-server shared-network-name LAN subnet 10.1.1.0/24 domain-name 'internal-network'
set service dhcp-server shared-network-name LAN subnet 10.1.1.0/24 range LOCAL start 10.1.1.10
set service dhcp-server shared-network-name LAN subnet 10.1.1.0/24 range LOCAL stop 10.1.1.20

Error:

vyos@vyos# commit
[ service dhcp-server ]
Traceback (most recent call last):
  File "/usr/libexec/vyos/conf_mode/dhcp_server.py", line 801, in <module>
    apply(c)
  File "/usr/libexec/vyos/conf_mode/dhcp_server.py", line 790, in apply
    os.mknod(lease_file)
FileNotFoundError: [Errno 2] No such file or directory

[[service dhcp-server]] failed
Commit failed
[edit]

Thanks,
James

This is not reproducible. Even when I delete the dhcp lease files in /config directory.

Sorry, figured it out. User error!

It seems GNS3 blows away the installed image after a power cycle (at least that’s what i found), and so i was attempting to setup config prior to installing a vyos image. After install image and a reboot it works!

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