IP address of the secondary NTP server, assigned by the DHCP server IP address of the second DNS resolver, assigned by the DHCP server IP address of the primary NTP server, assigned by the DHCP server IP address of the first DNS resolver, that was assigned by the DHCP server IP address of the gateway which is assigned by DHCP server Time when the lease expires (specified by the DHCP server). IP address and netmask, which is assigned to DHCP Client from the Server (Will override the settings put in the /system ntp client submenu)Ĭommand /ip dhcp-client print detail will show current status of dhcp client and read-only properties listed in table below: Whether to accept the NTP settings advertised by DHCP Server. (Will override the settings put in the /ip dns submenu. Whether to accept the DNS settings advertised by DHCP Server.
If not specified, client's MAC address will be sentĭefault-route-distance ( integer:0.255 Default: )ĭistance of default route. special-classless - adds both classless route if received and default route (MS style)Ĭorresponds to the settings suggested by the network administrator or ISP.yes - adds classless route if received, if not then add default route (old behavior).To force client not to ignore option 3 set special-classless. By default RouterOS client complies to RFC and ignores option 3 if classless option 121 is received.
Whether to install default route in routing table received from dhcp server. Note: If interface used by DHCP client is part of VRF configuration, then default route and other received routes from DHCP server will be added to VRF routing table.Īdd-default-route ( yes | no | special-classless Default: yes) ip dhcp-client add interface=ether1 disabled=noĪfter interface is added, you can use "print" or "print detail" command to see what parameters DHCP client ip dhcp-client> print detailĠ interface=ether1 add-default-route=yes use-peer-dns=yes use-peer-ntp=yes Starting from v5.9, DHCPv6 client configuration was moved to /ipv6 sub-menu. Starting from v5.8 DHCP Client can receive delegated prefixes from DHCPv6 server.Ĭurrently received prefix is added to IPv6 pool, which later can be used for example in pppoe server configuration. In conformance with rfc4361ĭHCP client default options include these default Options: CLIENT_DUID - client DIUD of the router, same as used for the DHCPv6 client.CLIENT_MAC - client interface MAC address.Note: This feature is available since RouterOS 6.0Ĭurrently, there are three variables that can be used in options: Syntax is same as for DHCP server options. RouterOS DHCP cilent asks for following options:ĭHCP client has a possibility to set up options that are sent to DHCP server.
If there is already a default route installed prior the DHCP client obtains one, the route obtained by the DHCP client would be shown as invalid. Should the DHCP client be disabled or not renew an address, the dynamic default route will be removed. The default gateway will be added to the routing table as a dynamic entry. The received IP address will be added to the interface with the respective netmask. The client will accept an address, netmask, default gateway, and two dns server addresses. The MikroTik RouterOS DHCP client may be enabled on any Ethernet-like interface at a time. 6.2 Resolve default gateway when 'router' (option3) is from different subnet.