RouterOS manual

Dhcp Client



ip/dhcp-client

Type: Directory

ParameterTypeDescription
Xdisableddisabled
Iinvalidinvalid
Ddynamicdynamic
ParameterTypeDescription
namestring
interface (mandatory)iface_enum
add-default-routeenum (no | yes | special-classless)
default-route-distancenum
default-route-tables
check-gatewayenum (none | arp | ping | bfd)
use-peer-dnsbool
use-peer-ntpbool
allow-reconfigurebool
vlan-prioritynumPriority of outgoing packets; applicable for VLAN interface only
dscpnumDSCP of outgoing packets
use-broadcastenum (always | never | both)Controls BROADCAST flag of DHCPDISCOVER and DHCPREQUEST (during requesting and rebinding only) messages
dhcp-options
script
ParameterTypeDescription
custom-source-mac-addressmacAddr
custom-hostname-suffixstring
statusenum (stopped | searching... | requesting... | bound | renewing... | rebinding... | error) { stopped:0, searching...:1, requesting...:2, bound:3, renewing...:4, rebinding...:5, error:6 }
address
netmaskipAddr
gatewayipAddr
dhcp-serveripAddr
primary-dnsipAddr
secondary-dnsipAddr
primary-ntpipAddr
secondary-ntpipAddr
caps-managers
reconfigure-keystring
reconfigure-last-counterstring
expires-aftertime

Source

Updated 2026-08-22.