---
title: 'Mikrotik and Ubiquiti'
url: 'https://manuals.remository.com/useful/mikrotik-and-ubiquiti'
markdown: 'https://manuals.remository.com/useful/mikrotik-and-ubiquiti.md'
date: '2026-10-06'
description: 'MikroTik RouterOS Backup DHCP leases Use command: /ip dhcp-server lease print file=lease detail Or can use "terse" option instead of "detail". Using "detail" will include information on the static allocations. Result is Add to Firewall Paste is not supported for web terminal, but using SSH can ent…'
---

[](#) [ edit this page](https://github.com/getgrav/grav-skeleton-rtfm-site/blob/develop/pages/05.mikrotik-and-ubiquiti/chapter.md) 

# MikroTik RouterOS

## Backup DHCP leases

Use command: /ip dhcp-server lease print file=lease detail

Or can use "terse" option instead of "detail". Using "detail" will include information on the static allocations. Result is

## Add to Firewall

Paste is not supported for web terminal, but using SSH can enter e.g.

```
 /ip firewall filter add action=accept chain=forward dst-address=52.208.184.61 dst-port=587 protocol=tcp
```

## Set DNS servers in DHCP lease

[Documented here](useful:dnsindhcp)

## How to use DHCP option 43 to adopt Ubiquiti router

[Unifi L3 Adoption with DHCP Option 43](https://tcpip.wtf/en/unifi-l3-adoption-with-dhcp-option-43-on-pfsense-mikrotik-and-others.htm)

## SSH to a Ubiquiti AP

Need to use an extra parameter, recent Linux restricts SSH options. Example:

```
 ssh -oHostKeyAlgorithms=+ssh-dss root@10.3.76.115
```

### Scan for access points

```
 sudo iwlist scan | grep -E "ESSID|Address"
```

---

## Navigation

- Previous: [Linux Commands](https://manuals.remository.com/useful/linux-commands.md)
- Next: [DNS Policies](https://manuals.remository.com/useful/dns-policies.md)
