Skip to main content
Version: current

setup


ip/dhcp-server/setup​

Type: Command

Interactive setup that creates an IP pool, a DHCP network and a DHCP server in one step. It asks for each value in turn, and suggests the network, gateway and address range from the address of the interface and the lease time from the server default. For an example, see DHCP Server.

Read-only ArgumentTypeDescription
interfaceiface_enumInterface to run the DHCP server on.
networkcomposite { address: ipAddr , netmask: num [ .. 32] }Network to give out addresses in, for example 192.168.88.0/24. Suggested from the address of the interface.
gatewayipAddrDefault gateway sent to clients. Suggested from the address of the interface.
relayipAddrAddress of the DHCP relay, when the clients are not directly connected.
ippoolmulti { range: composite { min: ipAddr , max: ipAddr } }Address range to give out, for example 192.168.88.2-192.168.88.254. The setup creates an IP pool with this range.
send-dnsboolWhether the DHCP server sends DNS servers to clients. The setup requires yes or no.
dns-serversmulti { address: ipAddr }DNS servers sent to clients. Leave empty to send the DNS servers from the router's DNS settings (/ip/dns).
lease-timetimeLease time of the new server. Suggested: 1800s.