Setup guide
DHCP server)
• renewing... - the DHCP client is trying to renew the lease
• rebinding... - the renew operation has failed, and lease time is over, so the DHCP client is
trying to request an IP address once again
address (read-only: IP address/mask) - the address received
dhcp-server (read-only: IP address) - IP address of the DHCP server that have given out the
current lease
expires (read-only: text) - expiration time of the lease
gateway (read-only: IP address) - the gateway address received
primary-dns (read-only: IP address) - the address of the primary DNS server received
secondary-dns (read-only: IP address) - the address of the secondary DNS server received
Example
To check the obtained lease:
[admin@Wandy] ip dhcp-client lease> print
status: bounded
address: 80.232.241.15/21
dhcp-server: 10.1.0.172
expires: oct/20/2002 09:43:50
gateway: 80.232.240.1
primary-dns: 195.13.160.52
secondary-dns: 195.122.1.59
[admin@Wandy] ip dhcp-client lease>
DHCP Server Setup
ip dhcp-server
Description
The router supports an individual server for each Ethernet-like interface. The Wandy RouterOS
DHCP server supports the basic functions of giving each requesting client an IP address/netmask
lease, default gateway, domain name, DNS-server(s) and WINS-server(s) (for Windows clients)
information (set up in the DHCP networks submenu)
In order DHCP server to work, you must set up also IP pools (do not inlude the DHCP server's IP
address into the pool range) and DHCP networks.
Property Description
name (name) - reference name
interface (name) - Ethernet-like interface name
lease-time (time; default: 72h) - the time that a client may use an 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
address-pool (name | static-only; default: static-only) - IP pool, from which to take IP addresses
for clients
• static-only - allow 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)
src-address (IP address; 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