Univention Bugzilla – Bug 57368
Duplicate assignment of IPv6 addresses is possible.
Last modified: 2024-05-29 15:20:28 CEST
UDM does not prevent the user from assigning the same IPv6 address to multiple computers, as it does with IPv4. Script to recreate the situation: ```bash udm dns/forward_zone create --position cn=dns,dc=uttuusch,dc=intranet --set zone=test.test --set nameserver=testserver udm dns/reverse_zone create --position cn=dns,dc=uttuusch,dc=intranet --set subnet=2001:0001:0002:0004 --set nameserver=testserver2 udm dhcp/service create --set service=testservice udm networks/network create --set name=testnetwork --set network=2001:1:2:4:: --set netmask=64 --set dnsEntryZoneForward=zoneName=test.test,cn=dns,dc=uttuusch,dc=intranet --set dnsEntryZoneReverse=zoneName=4.0.0.0.2.0.0.0.1.0.0.0.1.0.0.2.ip6.arpa,cn=dns,dc=uttuusch,dc=intranet --set dhcpEntryZone=cn=testservice,dc=uttuusch,dc=intranet --set 'ipRange=2001:1:2:4::2 2001:1:2:4:0:ffff:ffff:ffff' udm computers/ubuntu create --set mac=01:23:45:67:89:ad --set name=myubuntu1 --set ip=2001:0001:0002:0004:0000:ffff:ffff:1343 --set network=cn=testnetwork,dc=uttuusch,dc=intranet udm computers/ubuntu create --set mac=01:23:45:67:89:ae --set name=myubuntu2 --set ip=2001:0001:0002:0004:0000:ffff:ffff:1343 --set network=cn=testnetwork,dc=uttuusch,dc=intranet udm computers/ubuntu list | grep -E '(ip:|DN:)' DN: cn=myubuntu1,dc=uttuusch,dc=intranet ip: 2001:0001:0002:0004:0000:ffff:ffff:1343 DN: cn=myubuntu2,dc=uttuusch,dc=intranet ip: 2001:0001:0002:0004:0000:ffff:ffff:1343 ``` For IPv4 addresses, this will result in an error of the form "IP address is already in use: [...]."