Mikrotik Simple Routing


  • Show IP

/ip dhcp-client print

  • Get IP from dhcp

/ip dhcp-client add interface=ether1 disable=no

  • Add bridge interface

/interface bridge add name=bridge1

/interface bridge port

add bridge=bridge1 interface=ether2

add bridge=bridge1 interface=ether3

  • Assign ip to bridge interface

/ip address add interface=bridge1 address=

/ip route add gateway=bridge1

/ip dns set servers=

/ip dns set allow-remote-request=yes

  • Configure firewall

/ip firewall nat add chain=srcnat out-interface=ether1 action=masquerade

/ip firewall nat print

  • Setup DHCP Server

/ip dhcp-server setup

Select interface to run DHCP server on 
dhcp server interface: bridge1
Select network for DHCP addresses 
dhcp address space:
Select gateway for given network 
gateway for dhcp network:
Select pool of ip addresses given out by DHCP server 
addresses to give out:
Select DNS servers 
dns servers:
Select lease time 
lease time: 10m 

/ip dhcp-server enable

/ip dhcp-server print

Ubuntu Client 20.04

  • Using DHCP client

dhclient eth0

  • Static IP