Skip to content

Instantly share code, notes, and snippets.

@mrngm
Created April 6, 2018 09:34
Show Gist options
  • Save mrngm/02875768cb7d9c3a33a3bc0ce7c43764 to your computer and use it in GitHub Desktop.
Save mrngm/02875768cb7d9c3a33a3bc0ce7c43764 to your computer and use it in GitHub Desktop.
Simple DHCP configuration in dnsmasq
### Specify the interface
interface=enp0s25
### Specify the range
dhcp-range=192.168.10.50,192.168.10.150,12h
### Specify DNS servers (optional)
dhcp-option=6,8.8.4.4,8.8.8.8
@mrngm
Copy link
Author

mrngm commented Apr 6, 2018

Combine it with https://gist.github.com/mrngm/3179142 for NAT.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment