diff options
author | Christian Poessinger <christian@poessinger.com> | 2021-05-27 19:40:22 +0200 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2021-05-27 19:40:22 +0200 |
commit | b0e1c8a9c9ef470297bf3c9f5059ad7c720c46ff (patch) | |
tree | f5d5c19ba07279e69481cfc9ce0603c4926a9ccf /src/validators/dotted-decimal | |
parent | ed55e23822c847225b304c06836713617cf61fd5 (diff) | |
download | vyos-1x-b0e1c8a9c9ef470297bf3c9f5059ad7c720c46ff.tar.gz vyos-1x-b0e1c8a9c9ef470297bf3c9f5059ad7c720c46ff.zip |
dhcp-server: T2669: do not allow overlapping ranges to be created
set service dhcp-server shared-network-name NET01 authoritative
set service dhcp-server shared-network-name NET01 subnet 10.0.0.0/24 default-router '10.0.0.1'
set service dhcp-server shared-network-name NET01 subnet 10.0.0.0/24 lease '86400'
set service dhcp-server shared-network-name NET01 subnet 10.0.0.0/24 range RNG01 start '10.0.0.60'
set service dhcp-server shared-network-name NET01 subnet 10.0.0.0/24 range RNG01 stop '10.0.0.70'
set service dhcp-server shared-network-name NET01 subnet 10.0.0.0/24 range RNG02 start '10.0.0.55'
set service dhcp-server shared-network-name NET01 subnet 10.0.0.0/24 range RNG02 stop '10.0.0.65'
Will result in a dhcpd.conf:
shared-network NET01 {
authoritative;
subnet 10.0.0.0 netmask 255.255.255.0 {
option routers 10.0.0.1;
default-lease-time 86400;
max-lease-time 86400;
range 10.0.0.60 10.0.0.70;
range 10.0.0.55 10.0.0.65;
}
on commit {
set shared-networkname = "NET01";
}
}
This is not allowed by ISC DHCPd:
dhcpd[3307]: /run/dhcp-server/dhcpd.conf line 25: lease 10.0.0.63 is declared twice!
dhcpd[3307]: range 10.0.0.55 10.0.0.65;
Diffstat (limited to 'src/validators/dotted-decimal')
0 files changed, 0 insertions, 0 deletions