General Information - MikroTik RouterOS v2.9 Reference Manual

Reference manual
Table of Contents

Advertisement

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
0
dhcp1
[admin@MikroTik] ip dhcp-server> network print
# ADDRESS
0 10.0.0.0/24
[admin@MikroTik] ip dhcp-server> /ip pool print
# NAME
0 dhcp_pool1
[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.
INTERFACE RELAY
ether1
0.0.0.0
GATEWAY
DNS-SERVER
10.0.0.1
159.148.60.20
ADDRESS-POOL LEASE-TIME ADD-ARP
dhcp_pool1
3d
WINS-SERVER
RANGES
10.0.0.2-10.0.0.254
no
DOMAIN

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents