Tested on Ubuntu 21.04
- systemctl disable NetworkManager.service
- install isc-dhcp-server
- add config to '/etc/dhcp/dhcpd.conf'
subnet 172.31.254.0 netmask 255.255.255.0 { range 172.31.254.1 172.31.254.10; option routers 172.31.254.100; }
- run 'sudo ./p2pd'
- run 'sudo ./dhcp-start.sh p2p-wlp0s20-0'