1.2.0-rc1 DHCP range syntax


#1

Reading through the release notes for 1.2 It looks like the range syntax was updated. I am testing the 1.2 rc and it still has the old range syntax. No start or stop option. Was this just missed?

vyos@vyos# set service dhcp-server shared-network-name LAN subnet 172.16.2.0/24 start 172.16.2.100 stop 172.16.2.200

  Configuration path: service dhcp-server shared-network-name LAN subnet 172.16.2.0/24 [start] is not valid
  Set failed


dhcp-server {
        shared-network-name LAN {
            subnet 172.16.2.0/24 {
                default-router 172.16.2.1
                dns-server 8.8.8.8
                lease 86400
                range 0 {
                    start 172.16.2.100
                    stop 172.16.2.200
                }
            }
        }
    }

I had to use the old range syntax to apply the config.

vyos@vyos:~$ show version
Version:          VyOS 1.2.0-rc1
Built by:         maintainers@vyos.net
Built on:         Mon 08 Oct 2018 12:40 UTC
Build ID:         9c7c00b6-ee11-4dfb-b9f8-7ba2c2c0af83

#3

It’s the syntax is release notes that was messed up, the range syntax in VyOS didn’t change from nightly builds to rc1. I fixed the release notes, thanks for catching it!


#4

Indeed that woks for me now. Thanks for the clarification. Just getting started with VyOS and noticed that difference.


#5

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