This is an old revision of the document!
DHCP-Server on the external interface (EXTIF)
Since AstLinux version 1.1.1 there is a simple way to use dnsmasq as a DHCP-server on the external interface (EXTIF), or if you have only one NIC (e.g. in a VM), you need to add the following configuration:
in user.conf
:
EXTDHCP="yes"
If you need a different DHCP range than the default (), you also need add it to your
user.conf
:
DHCPRANGE="10:120"
If you need other DHCP values that differ from the defaults, you can add them as usual in dnsmasq.static
. Example:
dhcp-option=ext,option:ntp-server,192.168.30.10
Firewall
If you use the firewall (AIF), you need to open the respective ports for the services you'd like to allow
(e.g. DNS, TFTP, NTP) with “Pass EXT→Local”. DHCP traffic is already allowed through the EXTDHCP variable.