Install Mikrotik From Usb Stick

In this part i want to share my experience to install Mikrotik OS on USB This all begin when i build mini x86 PC for traffic management in my Coffee wireless Hot Spot in my town Banyuwangi. I decided to use Mikrotik Router OS for the system because it simple but have lot of feature for wireless traffic management. The USB port on the device like a PC, can be used for additional storage media like USB flash disk. It can also function as an interface to connect the modem 3G/EVDO. Mikrotik making devices more flexible in installation, especially in a location that has not been affordable Internet connections typically use wired or wireless.

Use a USB modem for backup Internet on a Mikrotik router.

Background

I received as SMS from my dad:

Install Mikrotik From Usb Stick Usb

Internet out for over 12 hrs. Have you ever set up Mikrotik with 3G modem?

I’d convinced my dad to replace an ageing (and occasionally faulty) router with a Mikrotik device a while back.He had purchased a hAP, and configured it based on my Mikrotik home router article.I’d reviewed what he did and tweaked a few things.And it’s been running quite smoothly since then.But even the best router can’t do much when there’s no Internet to route!

Install Mikrotik From Usb Stick On

He runs a business from home, and extended Internet downtime is bad.So I referred him to the article I wrote about using an Android device for 4G / LTE Internet access.

Except he was using a 3G USB Modem rather than an Android phone, so it didn’t quite work as nicely as I’d hoped.

Goal

5.1 dolby digital telugu songs. Document and configure my dad’s router to allow him to use a 3G / LTE USB modem as a backup Internet connection if his Optus cable connection fails.(And maybe help a few other people on the Internet as well)!

Unlike my holiday LTE setup, failover will be important: automatic will be preferred, but outages aren’t very frequent, so simple manual steps will be allowed.

Prerequisites

  • A Mikrotik router with USB port,
  • A supported USB 3G / LTE modem (see peripherals and supported hardware)

0. Ensure your USB modem can connect to the Internet

If your modem doesn’t work, it will be a pain to troubleshoot on your router.So double check it connects successfully in a more supported environment (eg: Windows laptop).

My dad is using a Huawei E1762 USB 3G modem.Which has minimal documentation on the Internet.

1. Plug the USB modem into the router’s USB port

Install Mikrotik From Usb Stick

Depending on your router you may need a USB adapter cable.My dad’s hAP has a full size USB port, so he just plugged it in.

2. Check the USB device

Check in System -> Resources -> USB for the modem you just connected.If there’s nothing there, it may not be supported and you’ll need to find an alternative.

3. Create a PPP or LTE Interface

My dad’s modem is a 3G device, so he created a new PPP Client in Interfaces -> New -> PPP Client.You may need to set an APN, username or password (check with your service provider for this information); dad’s using an Optus service so his APN is yesinternet.The Status should change to waiting for packets…, then link established and finally connected.

If you have a newer and faster LTE / 4G modem, an LTE interface should automatically be created.However, you may still need to set an APN, username or password.

You should also set the default route distance to 2.This will force the router to prefer your primary link over the 3G / LTE one.

At this point we should have a working cellular interface.You can test it by disabling your main Internet interface (eg: Cable / ADSL / Ethernet / whatever) temporarily (remember to turn safe mode on before you accidentally delete it!!).Your Internet should still work and you should see activity on the PPP / LTE interface.

You can use Tools -> Ping to test connectivity from the router itself (eg: to 8.8.8.8). Forza horizon 4 key free.

4. Check your route table

IP -> Routes

You should see two default routes.Your router will prefer the primary connection (ie: cable, ADSL, etc) to the cellular one because it has a smaller distance.

Usb

However, both the primary and cellular interfaces will always be “up”, as far as routing is concerned (because the ethernet cable is plugged in).That is, even when your primary interface service does down, the router will keep trying to send traffic over your cable / ADSL / fibre link (even when the packets can’t go anywhere).

To switch over to the cellular backup interface, you should disable your primary interface.(And remember to re-enable it when it’s working again, of course).

This is a slightly manual process.However, if your primary interface is very reliable and you don’t really mind a few minutes down time while someone notices the Internet has dropped, logs into your router and clicks disable, then it is perfectly functional.(My dad prefers this approach, because cellular data is an order of magnitude more expensive in Australia, and he wants to know when he’s switched over to 3G).

5. Configure routing for failover

But we can automate the switch from primary to backup interface (and back again) using a few simple routing rules.Be warned: this assumes a particular IP address as the default gateway; it is not picking it up automatically from DHCP.

We need to set the Check Gateway option to ping, so the router can detect when a link has gone down.Unfortunately, the default route created from DHCP does not let us do that - all fields are read only.

So, make a copy the default route.Set Check Gateway to ping.And then disable this route.

Next, hop over to IP -> DHCP Client and set Add Default Route to no.Your primary interface’s dynamic default route will disappear.

Back to the route table and enable the manual default route.Now should now have 2 routes to the Internet: primary via cable / ADSL / whatever, and secondary via 3G / LTE.

My dad simulated an Internet failure by turning off his cable modem (but not removing the ethernet cable).The router sees the ethernet port as still connected, but it can’t actually reach the Internet.It takes about 30 seconds for the router to notice and switch to routing over the backup 3G interface.After plugging the cable back in, it took another 30 seconds to switch back to the primary cable interface (mostly the cable modem sorting itself out).

Important: All this assumes your Internet gateway does not change. That is, we just hard coded a default gateway into your router.In other words, if your gateway ever changes your Internet will break and you’ll probably forget to check the route table.You should only do this if you have a static IP address, and even then be very wary.

Routing References

We’ve followed the simple failover configuration, but if you have more complex requirements or more than 2 WAN links, you may want to consider a more advanced failover configuration.And a forum post with further failover information.

Conclusion

You can now have your Mikrotik router configured with a backup WAN interface using a 3G or LTE USB modem.And some very simple routing rules to switch to the backup link if the primary fails.(Or, you can just disable the primary interface).

In this part i want to share my experience to install Mikrotik OS on USB
This all begin when i build mini x86 PC for traffic management in my Coffee wireless Hot Spot in my town Banyuwangi. I decided to use Mikrotik Router OS for the system because it simple but have lot of feature for wireless traffic management.
But i wonder, can i not use hard drive? to minimize the space of my mini computer?
Preparation:
USB stick with 4 GB size (i got success in this size)
Mikrotik OS cd image file (.iso)
Step 1:
Step 2:
Step 3:
set to do not add virtual hard drive, we don't need one because we are going to use USB Stick instead (if there are warning, just continue)

go to setting of our created virtual machine, in the storage we will see empty disk in controller IDE
Step 5:
start our virtual machine with our USB stick connected,
after loading we will encounter 'fatal error no hard drive fount', do not reboot
Mikrotik

press CTRL, the right one in your keyboard, go to device > USB device > select your USB sticks
Step 7:
after reboot the USB will detected as SATA, so we can continue to install system and packages
you can install all or just minimal package (my recommend is install all)

after the installation is finished, we can try it, but
the USB will boot able in real boot menu in your PC
have a nice Mikrotik OS in USB (^.^)
note: if you want to use web-proxy caching, the speed is depend on read and write speed on your USB sticks, so for this function i recommend USB 3.0 speed :)
thank you for reading (^.^)
thank you for the author of the source
another of ren