Manual:IP/DHCP Server

From MikroTik Wiki
Revision as of 09:31, 23 October 2009 by Marisb (talk | contribs) (Created page with '{{Versions|v3, v4}} <div class=manual> <h2>Summary</h2> <p> </p> <h2>General</h2> <p><b>Sub-menu:</b> <code>/ip dhcp-server</code></p> <p> <table class="styled_table"> <tr> …')
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Applies to RouterOS: v3, v4

Summary

General

Sub-menu: /ip dhcp-server

Property Description
add-arp (yes | no; Default: no) Whether to add dynamic ARP entry. If set to no either ARP mode should be enabled on that interface or static ARP entries should be administratively defined in /ip arp submenu
address-pool (string | static-only; Default: static-only) IP pool, from which to take IP addresses for clients. If set to static-only, then only the clients that have a static lease (i.e. no dynamic addresses will be given to clients, only the ones added in lease submenu) will be allowed
always-broadcast (yes | no; Default: no) Always send replies as broadcasts
authoritative (after-10sec-delay | after-2sec-delay | no | yes; Default: after-2sec-delay) Whether the DHCP server is the only one DHCP server for the network:
  • after-10sec-delay - to clients request for an address, dhcp server will wait 10 seconds and if there is another request from the client after this period of time, then dhcp server will offer the address to the client or will send DHCPNAK, if the requested address is not available from this server
  • after-2sec-delay - to clients request for an address, dhcp server will wait 2 seconds and if there is another request from the client after this period of time, then dhcp server will offer the address to the client or will send DHCPNAK, if the requested address is not available from this server
  • yes - to clients request for an address that is not available from this server, dhcp server will send negative acknowledgment (DHCPNAK)
  • no - dhcp server ignores clients requests for addresses that are not available from this server
boot-support (none | static | dynamic; Default: static) Support for BOOTP clients
  • none - do not respond to BOOTP requests
  • static - offer only static leases to BOOTP clients
  • dynamic - offer static and dynamic leases for BOOTP clients
delay-threshold (time; Default: none) If secs field in DHCP packet is smaller than delay-threshold, then this packet is ignored. If set to none - there is no threshold (all DHCP packets are processed)
interface (string; Default: ) Interface on which server will be running
lease-time (time; Default: 72h) the time that a client may use the assigned address. The client will try to renew this address after a half of this time and will request a new address after time limit expires
name (string; Default: ) Reference name
relay (IP; Default: 0.0.0.0) the IP address of the relay this DHCP server should process requests from:
  • 0.0.0.0 - the DHCP server will be used only for direct requests from clients (no DHCP really allowed)
  • 255.255.255.255 - the DHCP server should be used for any incomming request from a DHCP relay except for those, which are processed by another DHCP server that exists in the /ip dhcp-server submenu
src-address (IP; Default: 0.0.0.0) The address which the DHCP client must send requests to in order to renew an IP address lease. If there is only one static address on the DHCP server interface and the source-address is left as 0.0.0.0, then the static address will be used. If there are multiple addresses on the interface, an address in the same subnet as the range of given addresses should be used
use-radius (yes | no; Default: no) Whether to use RADIUS server for dynamic leases

Menu specific commands

Property Description
setup () Release current binding and restart DHCP client


Server configuration

Sub-menu: /ip dhcp-server config

Networks

Sub-menu: /ip dhcp-server network

Leases

Sub-menu: /ip dhcp-server lease

Alerts

Sub-menu: /ip dhcp-server alert

DHCP Options

Sub-menu: /ip dhcp-server option


Basic examples


[Back to Content]