userdoc:tt-ext-dhcp-server-old

This is an old revision of the document!


DHCP-Server on the external interface (EXTIF) - old version

This information is valid up to Astlinux version 1.1.0.

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 dnsmasq.static as an example, assuming a network of 192.168.30.0/24 and NIC static IPv4 address of 192.168.30.10:

dhcp-authoritative
read-ethers
dhcp-leasefile=/var/db/dnsmasq.leases

dhcp-range=ext,192.168.30.128,192.168.30.250,24h
dhcp-option=ext,option:router,192.168.30.10
dhcp-option=ext,option:dns-server,192.168.30.10
dhcp-option=ext,option:tftp-server,"192.168.30.10"
dhcp-option=ext,150,192.168.30.10  # TFTP server Cisco
dhcp-option=ext,option:ntp-server,192.168.30.10

Firewall

You can additionally use the firewall (AIF), then you need to add the following variable too:

in user.conf:

EXTERNAL_DHCP_SERVER=1

to allow external services, you need to open the respective ports for the services you'd like to allow
(e.g. DNS, TFTP, NTP) with “Pass EXT→Local”.


  • userdoc/tt-ext-dhcp-server-old.1360770477.txt.gz
  • Last modified: 2013/02/13 09:47
  • by droemel