Tutorial Cara Install Mikrotik di USB FlashDisk. Sediakan USB FlashDisk. Silakan cari USB FlashDisk yang masih bisa digunakan dan untuk kapasitas nya terserah, mau 2 GB atau 8 GB tidak masalah. Download File Installer RouterOS x86 ISO. Download Software Installer NetInstall. Kami merangkum cara menginstal Linux di USB flashdisk yang bisa kamu simak di bawah ini. Siapkan USB flashdisk Foto: Shutterstock. Pertama-tama, pastikan kamu punya USB flashdisk yang tidak memiliki berkas penting didalamnya, dan direkomendasikan kamu melakukan formatting agar terhindari dari hal-hal yang tidak diinginkan. Plug in a second Ethernet cable between the Switch and the Ethernet port on the MikroTik router. Plug in the USB-to-Serial adapter to your computer, and connect the DB-9 connector to the Serial Console port on the MikroTik router. Don’t plug in the router yet - there are a few more setup steps. Install Mikrotik RouterOS di USB Flash Disk 2 comments Mikrotik RouterOS tidak hanya sebatas terpasang pada perangkat yang mereka keluarkan. Jika kita lihat dari website resminya, produk dengan slogan 'Routing The World' ini bisa juga beroperasi diperangkat lain seperti pc atau server dengan menggunakan versi mikrotik X86.
Topology
In this article will be given a step by step tutorial to use the USB port for the modem, as the picture of the network, this tutorial uses the RouterBoard Indoor RB751U-2HnD and 3G sierra 881U modem, which forms the topology like the one in the image below:Here are some steps we have to do in the configuration:
IP Address
The first step we add our router is the IP address on the interface that will be used for the local network.
Wireless Access Point
The next wlan1 enable interface as an access point for the distribution of wireless connection to a local network.
DNS
For the DNS settings we need to enable the parameter 'allow remote request' so that our client can request the DNS to our router.
USB Devices
If the IP interface (Ethernet and wireless) and DNS is configured, we pair our 3G modem into the USB port on the router. Things we need to check the return is the '/ system resource usb'.For devices that are supported Mikrotik, usually a new USB device will appear automatically. Mikrotik also will build a new interface 'ppp-out1'.PPP Dial-OutTo enter the Username, Password and APN from our provider, our input interface ppp-out1 that have been made by Mikrotik.
NAT Masquerade
The last step, we have to add srcnat masquerade for ppp-out1 interface so that the client can access to the internet.Note: Make sure that the modem you are using is sikenali by Mikrotik OS. A complete list of modems that have been recognized by the OS Mikrotik at:
- You'll want this if you screw up. Particularly if this is your internet router, and you've put in effort to get it working.
- The easiest way to do a backup is System -> Backup -> Generate Archive. This appears to be a backup of the most package subfolders in /etc folder.
- Note that there can be other stuff that needs backing up, especially if you created them outside of packages. For extra safety, I also did a:
- ssh root@router 'tar czf - /etc /usr/local /root ' | cat - > backup-etc.usr_local.root-2017-12-16.tar.gz
- This backup probably can't be restored via Luci, but will be useful if you've somehow lost everything and need to set things up from scratch.
- If you've got lots of space left in your existing onboard flash, this is probably not necessary. In my case, I was down to around 500k free space, so I thought it would be a good exercise to reset the router back to openWRT factory settings. This would also be a good chance to confirm I've documented my setup steps properly.
- Configure your router for internet access. At least this fills up your original overlay file system with the bare minimum to get internet access.
- Execute the following:
- opkg update
- opkg install kmod-usb-storage-extras
- opkg install kmod-fs-ext4
- opkg install block-mount
- opkg install fdisk
- opkg install e2fsprogs
- Insert the flash disk into the router's USB port.
- Partition the flash disk. I had 8GB, so created a 2gb and 5.5gb partition using fdisk:
- Format the flash disk. Execute the following:
- mkfs.ext4 -O ^has_journal /dev/sda1
- mkfs.ext4 -O ^has_journal /dev/sda2
- Create mount point for /data
- mkdir /data
- Copy the existing /overlay to the /dev/sda1
- mount /dev/sda1 /mnt ; tar -C /overlay -cvf - . | tar -C /mnt -xf - ; umount /mnt
- Redetect USB partitions:
- block detect > /etc/config/fstab
- Configure /etc/config/fstab to mount /dev/sda1 as /overlay
- sed -i s/option$'t'enabled$'t'0'/option$'t'enabled$'t'1'/ /etc/config/fstab
- sed -i s#/mnt/sda1#/overlay# /etc/config/fstab
- Configure /etc/config/fstab to mount /dev/sda2 as /data
- sed -i s#/mnt/sda2#/data# /etc/config/fstab
- reboot the router
Install Mikrotik Via Usb Flashdisk Free
Install Mikrotik Via Usb Flashdisk 8
- You don't strictly have to create 2 partitions, you could use the whole flash disk as your /overlay if you like.
- I'm not actually quite sure what happens if you were to reset the system after this ... my guess is that OpenWRT would remove the /overlay which is on the USB flash disk. But the config on the /overlay on the built-in flash would then have stuff that is not in USB /overlay. To be safe, it's probably better to remove the USB flash disk and reset and reformat and repeat the above steps from scratch if you're planning to revert the system.