If DHCP isn't smart enough to avoid those collisions I need to move the pool to avoid it. According to the manual
I am using client-to-client.For example, --server 10.8.0.0 255.255.255.0 expands as follows:
mode server
tls-server
if dev tun:
ifconfig 10.8.0.1 10.8.0.2
ifconfig-pool 10.8.0.4 10.8.0.251
route 10.8.0.0 255.255.255.0
if client-to-client:
push "route 10.8.0.0 255.255.255.0"
else
push "route 10.8.0.1"
If I simply add "ifconfig-pool 10.8.0.200 10.8.0.250" to my server config I get errors that it conflicts with the already existing "server 10.8.0.0 255.255.255.0" entry in the config.
Following the example in the quote above if I change my config to look like this;
Code: Select all
;server 10.8.0.0 255.255.255.0
ifconfig 10.8.0.1 10.8.0.2
ifconfig-pool 10.8.0.200 10.8.0.250
route 10.8.0.0 255.255.255.0
push "route 10.8.0.0 255.255.255.0"
Seems I'm not getting something about the explanation in that manual.