Skip to content

Instantly share code, notes, and snippets.

@Rockheung
Last active December 27, 2021 11:03
Show Gist options
  • Save Rockheung/241dbc172295d48c22292e8cbe98ec53 to your computer and use it in GitHub Desktop.
Save Rockheung/241dbc172295d48c22292e8cbe98ec53 to your computer and use it in GitHub Desktop.
OpenWRT on MikroTik MetaRouter setting

Set interface for this VM on MikroTik console

/metarouter interface add virtual-machine=mr1 type-dynamic dynamic-bridge=bridge

Enter VM's console

/metarouter console 0

Set lan interface dhcp

root@OpenWrt:/# vi /etc/config/network

config interface lan
        option ifname   eth0
        option type     bridge
        option proto    dhcp  <- change this line dhcp from static and remove other option below

Set DNS resolv.conf

dnsmasq is working already, but is not being applied

root@OpenWrt:/# ln -fs /tmp/resolv.conf.auto /etc/resolv.conf

Reload network

root@OpenWrt:/# /etc/init.d/network reload

Test

root@OpenWrt:/# ping google.com
PING google.com (216.58.197.238): 56 data bytes
64 bytes from 216.58.197.238: seq=0 ttl=53 time=34.409 ms
64 bytes from 216.58.197.238: seq=1 ttl=53 time=33.590 ms
64 bytes from 216.58.197.238: seq=2 ttl=53 time=33.766 ms

Opkg list update

root@OpenWrt:/# vi /etc/opkg.conf

src/gz packages http://download.bmsoft.de/mikrotik/12.09/metarouter/mr-mips/packages
...

root@OpenWrt:/# opkg update
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment