Therefore, somewhere there may be inaccuracies (but in theory there should not be). I wrote this article “on fresh tracks”, but I’m not ready to go through all the steps again to write it. This article was written only because I myself spent a lot of time (mostly due to my inexperience) and so that others could get past all the rakes that I ran races for a week. In addition, I myself will soon have to understand the functionality. opportunities and, accordingly, tasks, for which you need to configure Mikrotik CHR, a huge number. I don’t see the point in describing the rest of the setting, because. (not necessary, but highly recommended) Since almost all Mikrotik setup is done through winbox, for security reasons it is better to disable everything superfluous. If they are lost, then something is configured incorrectly.Įverything, you can connect via winbox ( link for download). If everything is configured correctly, then by sending, for example, ping 8.8.8.8 we will see that the packets are being sent. You can check on the same command line whether the route forwarding was registered with the command ip route That is, instead of zero, there will be a unit at the end of the gateway address. It is worth noting that most likely, since Mikrotik completely rewrites the section, accordingly, the gateway address will most likely change to a standard Mikrotik. ip address add address=YOUR.IP.ADD.RESS/MASK In the command line after authorization, we write (yes, it seemed to be some kind of curve and I didn’t succeed in copy-pasting – I’ll probably have to write with pens): It remains to register the network settings for the subsequent connection via winbox. In the same place in the web interface, open the console and assign a password. We are waiting for the server to finish rebooting (instead of the Pending status, the Running status should appear). In the web interface of the hoster, we restart the server already in normal mode (because after restarting it will start again in recovery mode): It must be empty.Ĭlose Midnight Commander and reboot the server via the command line:Īfter executing the second command, the connection will be terminated. Run Midnight Commander, go to /media/vda1 folder. (optional) Check that the disk is unmounted. We write all the data from memory and unmount the image Press Ctrl + X, agree that the file will be written (Y + Enter) and give the file a name grub2.cfgĪ file with the grub2.cfg bootloader configuration should appear in the folderĮxit all folders in Midnight Commander to the root directory and then exit Midnight Commander. Inside the resulting folder, launch the nano text editor (there is a command line in the bottom line of Midnight Commander):Ĭopy the following three lines into the opened text file: The result should be the following folder structure: Go to the / media / vda1 folder and create the boot folder and inside the grub2 folder. Run Midnight Commander (oldfags wipe away tears of nostalgia for Norton Commander). We check that we now have two disks (vda1 and vda2) #Recover mikrotik chr archiveIn the command line, go to the mounted directory and upload the archive there:ĭd if=chr-7.1.3.img of=/dev/vda bs=4M oflag=sync At the time of writing, the stable version is 7.3.1. On the Mikrotik website, select the required distribution kit in RAW format and copy the link to it for later download. We find out and write down the initial network settings of our server (we are interested in the network interface (most likely it will be eth0), network mask (most likely 255.255.255.0), gateway address (most likely the same as the server address only with zero at the end).Ĭonnect to the server again via PuTTY and mount the tmp partition You will have to write to technical support to unblock and run the rebuild and then start all over again, because. It is necessary!!! If this is not done, then our server will turn into a pumpkin and in the end we will be blocked. Through the web interface, restart the server in recovery mode. #Recover mikrotik chr installWe install an analogue of Norton Commander (yes, yes, here the pissing rags that I spoke about earlier will fly at me from Linuxoids, but it’s really convenient to check whether everything went well through it).
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |