Created
August 2, 2019 00:30
-
-
Save leveled/ee4bdeb851c989fece484fa9269b44c0 to your computer and use it in GitHub Desktop.
Setup DHCP server with dnsmasq
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo apt-get install dnsmasq | |
sudo systemctl stop systemd-resolved | |
sudo systemctl disable systemd-resolved | |
# /etc/dnsmasq.d/vnet | |
dhcp-range=10.10.10.3,10.10.10.100,12h | |
dhcp-option=option:dns-server,10.10.10.2 | |
sudo systemctl start dnsmasq | |
sudo systemctl enable dnsmasq |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment