Page MenuHomeVyOS Platform

DHCP SERVER (kea)allows some device to bypass static mappings
Open, LowPublicBUG

Description

dhcp server gives same ip to 2 devices ,so i made ststic mappings

the funny thing is i set static ip for 3 devices like 2 nvidia shield they respond properly as per static table ,but the router even though it has a static ip it doesnt respect it ,but takes a complete new ip address,how does vyos dhcp server allow it.

name

Details

Difficulty level
Unknown (require assessment)
Version
-
Why the issue appeared?
Will be filled on close
Is it a breaking change?
Perfectly compatible
Issue type
Bug (incorrect behavior)

Event Timeline

himurae created this object in space S1 VyOS Public.

Provide the set of commands to reproduce

 show dhcp server leases
IP Address    MAC address        State    Lease start          Lease expiration     Remaining    Pool    Hostname             Origin
------------  -----------------  -------  -------------------  -------------------  -----------  ------  -------------------  --------
10.255.10.2   48  active   2024/10/12 15:21:10  2024/10/13 15:21:10  20:55:09     LAN     nvidia-hall          local
10.255.10.3   00:04:4b:48:af:3d  active   2024/10/12 06:39:14  2024/10/13 06:39:14  12:13:13     LAN     nvidia-bedroom       local
10.255.10.5   9c:9d:7e:7c:b7:14  active   2024/10/12 18:12:07  2024/10/13 18:12:07  23:46:06     LAN     miwifi-ra70          local
10.255.10.50  80:d2:1d:c6:f1:ed  active   2024/10/12 18:12:05  2024/10/13 18:12:05  23:46:04     LAN     himura.              local
10.255.10.51  38:xx:00:xx:e4:bd  active   2024/10/12 18:25:12  2024/10/13 18:25:12  23:59:11     LAN     sonytv               local
10.255.10.52  3a:c5:73:9a:ca:27  active   2024/10/12 17:58:32  2024/10/13 17:58:32  23:32:31     LAN     redmi-note-9         local


 show dhcp server static-mappings
Pool    Subnet          Name            IP Address    MAC Address        DUID    Description
------  --------------  --------------  ------------  -----------------  ------  -------------
LAN     10.255.10.0/24  Sonytv          10.255.10.2   38:t8:y0:nh:e4:bd  N/A     N/A

As you see here this mac id is already in static but it still is given random ip address 10.255.10.51

set service dhcp-server shared-network-name xxxxxx subnet xxx.xxx.10.0/24 option default-router 'xxx.xxx.10.1'
set service dhcp-server shared-network-name xxxxxx subnet xxx.xxx.10.0/24 option domain-name xxxxxx
set service dhcp-server shared-network-name xxxxxx subnet xxx.xxx.10.0/24 option name-server 'xxx.xxx.10.1'
set service dhcp-server shared-network-name xxxxxx subnet xxx.xxx.10.0/24 range 0 start 'xxx.xxx.10.50'
set service dhcp-server shared-network-name xxxxxx subnet xxx.xxx.10.0/24 range 0 stop 'xxx.xxx.10.100'
set service dhcp-server shared-network-name xxxxxx subnet xxx.xxx.10.0/24 static-mapping xxxxxx ip-address 'xxx.xxx.10.2'
set service dhcp-server shared-network-name xxxxxx subnet xxx.xxx.10.0/24 static-mapping xxxxxx mac 'xx:xx:xx:xx:xx:bd'
set service dhcp-server shared-network-name xxxxxx subnet xxx.xxx.10.0/24 static-mapping xxxxxx ip-address 'xxx.xxx.10.5'
set service dhcp-server shared-network-name xxxxxx subnet xxx.xxx.10.0/24 static-mapping xxxxxx mac 'xx:xx:xx:xx:xx:14'
set service dhcp-server shared-network-name xxxxxx subnet xxx.xxx.10.0/24 static-mapping xxxxxx ip-address 'xxx.xxx.10.3'
set service dhcp-server shared-network-name xxxxxx subnet xxx.xxx.10.0/24 static-mapping xxxxxx mac 'xx:xx:xx:xx:xx:3d'
set service dhcp-server shared-network-name xxxxxx subnet xxx.xxx.10.0/24 subnet-id '1'
Viacheslav changed the subtype of this task from "Task" to "Bug".Sun, Oct 13, 8:02 AM
vyosbot added a project: Restricted Project.Mon, Oct 14, 8:05 AM
dmbaturin edited projects, added VyOS Rolling; removed Restricted Project.Mon, Oct 14, 10:42 AM
dmbaturin changed Is it a breaking change? from Unspecified (possibly destroys the router) to Perfectly compatible.
dmbaturin changed Issue type from Unspecified (please specify) to Bug (incorrect behavior).
vyosbot added a project: Restricted Project.Mon, Oct 14, 11:32 AM