![MikroTik RouterOS v2.9 Reference Manual Download Page 506](http://html1.mh-extra.com/html/mikrotik/routeros-v2-9/routeros-v2-9_reference-manual_1794644506.webp)
dhcp server interface ( name ) - interface to run DHCP server on
dns servers ( IP address ) - IP address of the appropriate DNS server to be propagated to the
DHCP clients
gateway ( IP address ; default: 0.0.0.0 ) - the default gateway of the leased network
lease time ( time ; default: 3d ) - the time the lease will be valid
Notes
Depending on current settings and answers to the previous questions, default values of following
questions may be different. Some questions may disappear if they become redundant (for example,
there is no use of asking for 'relay' when the server will lend the directly connected network)
Example
To configure DHCP server on ether1 interface to lend addresses from 10.0.0.2 to 10.0.0.254 which
belong to the 10.0.0.0/24 network with 10.0.0.1 gateway and 159.148.60.2 DNS server for the time
of 3 days:
[admin@MikroTik] ip dhcp-server> setup
Select interface to run DHCP server on
dhcp server interface: ether1
Select network for DHCP addresses
dhcp address space: 10.0.0.0/24
Select gateway for given network
gateway for dhcp network: 10.0.0.1
Select pool of ip addresses given out by DHCP server
addresses to give out: 10.0.0.2-10.0.0.254
Select DNS servers
dns servers: 159.148.60.20
Select lease time
lease time: 3d
[admin@MikroTik] ip dhcp-server>
The wizard has made the following configuration based on the answers above:
[admin@MikroTik] ip dhcp-server> print
Flags: X - disabled, I - invalid
#
NAME
INTERFACE RELAY
ADDRESS-POOL LEASE-TIME ADD-ARP
0
dhcp1
ether1
0.0.0.0
dhcp_pool1
3d
no
[admin@MikroTik] ip dhcp-server> network print
# ADDRESS
GATEWAY
DNS-SERVER
WINS-SERVER
DOMAIN
0 10.0.0.0/24
10.0.0.1
159.148.60.20
[admin@MikroTik] ip dhcp-server> /ip pool print
# NAME
RANGES
0 dhcp_pool1
10.0.0.2-10.0.0.254
[admin@MikroTik] ip dhcp-server>
General Information
Page 492 of 695
Copyright 1999-2007, MikroTik. All rights reserved. Mikrotik, RouterOS and RouterBOARD are trademarks of Mikrotikls SIA.
Other trademarks and registred trademarks mentioned herein are properties of their respective owners.