name.number.mycompany.com
where number is between 2-65536
For each CN I add config file which looks like so:
Code: Select all
$ cat name.65501.mycompany.com
ifconfig-push 10.22.255.221 255.255.0.0
conversion from number to ip logic:
Code: Select all
$ python3 -c "print('10.22.{}.{}'.format(*divmod(65501, 256)))"
10.22.255.221