i need help BAD.
When setting up macvlan im having issues with docker assigning ip below specified range.
as example i have subnet of 10.1.1.0/24
gatewat of 10.1.1.1
i set ip range to 10.1.1.50/28 expecting 16 addresses that start at 10.1.1.50
docker assigns 10.1.1.48
help i have set up through docker network create and portainer with same outcome
Your expectation is not correct. The ip in your cidr range is not the starting ip, it could have been any ip between 10.1.1.48 and 10.1.1.63 and you would still have the same ip range.
Here is a translation of the ip representation to bit representation:
10.1.1.48/28 = 00001010.00000001.00000001.0011 0000 (ip range marked in bold).
10.1.1.50/28 = 00001010.00000001.00000001.0011 0010 (ip range marked in bold).
10.1.1.63/28 = 00001010.00000001.00000001.0011 1111 (ip range marked in bold).