Manual:IP/Pools

From MikroTik Wiki
Jump to navigation Jump to search

Applies to RouterOS: 2.9, v3, v4 +

IP pools are used to define range of IP addresses that is used for DHCP server and Point-to-Point servers

Specifications

  • Packages required: system
  • License required: Level1
  • Submenu level: /ip pool
  • Standards and Technologies: none
  • Hardware usage: Not significant

Description

IP pools simply group IP addresses for further usage. It is a single configuration point for all features that assign IP addresses to clients.

Note: Whenever possible, the same ip address is given out to each client (OWNER/INFO pair).


Setup

Sub-menu: /ip pool

Property Description

  • name (name) - the name of the pool
  • next-pool (name) - when address is acquired from pool that has no free addresses, and next-pool property is set to another pool, then next IP address will be acquired from next-pool
  • ranges (IP address) - IP address list of non-overlapping IP address ranges in form of: from1-to1,from2-to2,...,fromN-toN. For example, 10.0.0.1-10.0.0.27,10.0.0.32-10.0.0.47

Example

To define a pool named ip-pool with the 10.0.0.1-10.0.0.125 address range excluding gateway's address 10.0.0.1 and server's address 10.0.0.100, and the other pool dhcp-pool, with the 10.0.0.200-10.0.0.250 address range:

[admin@MikroTik] ip pool> add name=ip-pool ranges=10.0.0.2-10.0.0.99,10.0.0.101
10.0.0.126
[admin@MikroTik] ip pool> add name=dhcp-pool ranges=10.0.0.200-10.0.0.250
[admin@MikroTik] ip pool> print
  # NAME                                        RANGES
  0 ip-pool                                     10.0.0.2-10.0.0.99
                                                10.0.0.101-10.0.0.126
  1 dhcp-pool                                   10.0.0.200-10.0.0.250

[admin@MikroTik] ip pool>

Used Addresses from Pool

  • Submenu level: /ip pool used

Description

Here you can see all used IP addresses from IP pools.

Property Description

  • address (read-only: IP address) - IP address that is assigned to client form the pool
  • info (read-only: name) - For DHCP MAC address from leases menu and for PPP connections username of PPP type client
  • owner (read-only: MAC address) - Service which is using this IP address
  • pool (read-only: name) - name of the IP pool

Example

See used addresses from pool:

[admin@MikroTik] ip pool used> print
POOL  ADDRESS         OWNER                        INFO
local 192.168.0.100   00:0C:42:03:1F:60            test
local 192.168.0.99    00:0C:42:03:21:0F            test

[ Top | Back to Content ]