Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
only one node need a static ip, and as long as the network exists by minimum 2 nodes this node can also disappear because all the peers are exchanged within the protocol. If you really want to have a dynamically peer network best is setup one static server that is always running with fixed ip (can be ordered from 3$ per month) and all others can be dynamic (for example behind ADSL lines at home).
Apparently, DHCP will work over the VPN. So, you could have a static head node (in this example defined in peervpn-dhclient.conf with initpeers 127.0.0.1 5678) that serves up DHCP addresses.
So, you would only need to specify a static address for one node (so dnsmasq can bind to an address) and each other nodes would need to know at least the head node's (or another node's) address.
This was tested on a local machine but, I could see the DHCP working with tcpdump on the vpn interfaces.