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 Argument | Type | Description |
|---|---|---|
| interface | iface_enum | Interface to run the DHCP server on. |
| network | composite { 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. |
| gateway | ipAddr | Default gateway sent to clients. Suggested from the address of the interface. |
| relay | ipAddr | Address of the DHCP relay, when the clients are not directly connected. |
| ippool | multi { 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-dns | bool | Whether the DHCP server sends DNS servers to clients. The setup requires yes or no. |
| dns-servers | multi { address: ipAddr } | DNS servers sent to clients. Leave empty to send the DNS servers from the router's DNS settings (/ip/dns). |
| lease-time | time | Lease time of the new server. Suggested: 1800s. |