Back again on Indonesian Mikrotik Youtube Channel Channel that will provide information on tips and tricks regarding network management especially the use of mikrotik devices this time I will discuss a feature that can help us in proxy management in terms of doing a remote router we already know there are many ways to be able to do the remote which we discussed yesterday which is commonly used is Winbox, webfig then RoMON in this video I will discuss the use of the Console port on Mikrotik devices because we know that in some types of Mikrotik devices there is a Console Port what is the function like?
What’s the remote method like? keep watching this video don’t forget to Subscribe and press the bell button so that you get information updates when we upload the latest videos on some types of Mikrotik devices for now it is still equipped with a Console port some look like DB9 or RS232 ports there is also the latest using the ethernet port previously we already knew that this Console port can be used for a number of needs for example to do NetBooting when we do NetInstall the second, we can use this Port Console to do remote config to the Mikrotik Router for example, before we used to use the Winbox GUI application or use Webfig we can also remotely use CLI, Telnet or SSH or directly using the console port actually this console port also has other functions we can connect this console port to another Mikrotik Routerboard the goal is we can remotely use the device from another Routerboard using the Console port what’s the advantage? for example the Mikrotik device cannot be remotely used all the interfaces available for example wireless or ethernet is disabled then we can still use the console cable the second function when we connect console cables between routerboard when we can not access directly to the device we can remotely through devices that are next to each other, or directly connected at the moment I have made a simulation to experiment with this feature so later we will try the special login feature which is a feature used to remotely routerboard devices via console cables each routerboard device sometimes has a different type of console port some are still using the old port, RS232 or DB9 interface some are using a new interface, the ethernet port here I have prepared a device for simulation there are 2 routerboard devices there is a RB450Gx4 device at the top and below is the RB4011 device and these two devices have a different type of console port for RB450Gx4 devices it still uses the old console port (RS232 / DB9) and the RB4011 device already uses a console type ethernet port the location of this console port varies, sometimes there is also a front for the RB450Gx4 device, it’s next to this side then for the RB4011 device on the back so the location of this console port is different for cable needs we need one serial cable in this experiment to connect RB450Gx4 to RB4011 and the RB450Gx4 device still uses the old console port therefore I need a serial cable or RS232 like this and the other end that uses an RJ45 connector like this This console cable that I use is a console cable for Dinara Mikrobits devices you can see and get it at https://citraweb.com the product is available there and not all serial console cables can we use to remotely because the compatibility is definitely different I will connect first using this serial cable from BR450Gx4 to RB4011 which we will use later to remotely RB4011 devices from RB450Gx4 here is installed a serial cable from RB450Gx4 to the console on RB4011 then what needs to be done is we have to do a little configuration on the RB450Gx4 device here it is connected from my laptop to the RB450Gx4 device then I will try to remote to the RB450Gx4 device now I have entered the RB450Gx4 system the first thing to do is we must provide the IP address first for example here I am using IP address 192.168.30.1/24 on ether1 and on my laptop I use the IP address 192.168.30.2 the second step we must enter into the System-Ports menu here we can know that the function of the console port on RB450Gx4 by default is as a serial console we can use the serial console to change the boot device when using Netinstall but in this experiment we will change the function of this serial0 so that later it will function as a special login, or we can use it to remotely another router how to change it? the way we enter the System-Console menu We have disabled the console function in serial0 first until the Used By information in this Port List menu has been lost, which means that serial0 is no longer used by other services after the console function on the port we have disabled then we can create a new username we can make it on the system-users menu we give the name of the serial then we choose the full group parameter so this user is what we will use to remotely router RB4011 through RB450Gx4 with a special login feature then we can configure which username we will use for the login special we can enter the New Terminal menu
then type the command “special-login add user=serial” in the example I made a username with a serial name then we choose which console or serial port DB9 to use because here there is only 1 serial port then I will write serial0 then add command disabled=n the results of this setting we can see by typing the command “special-login print” then you will see the description user=serial then port=serial0 This information will be used to remotely access the RB4011 device how do you use this special-login feature? we can do a special-login with the help of an application that can remote ssh to the Mikrotik device for example like Putty, Minicom and so on or on certain OS there are already built in features for example if at my place I can use the Terminal application then I will try to connect to ssh I type the ssh command, then use the serial username and the IP address that I designate is the IP address of the RB450Gx4 device because for now I can only do remote to the RB450Gx4 device only I write the IP address of RB450Gx4 which is 192.168.30.1 then I press enter then later I will immediately be directed to the login system on the RB4011 device Here we have seen a command to log in on the RB4011 device for login information, still use the settings that are already in the RB4011 device here still use the default Mikrotik user and password The user we made on the RB450Gx4 device was used to forward the connection to RB4011 then to enter the RB4011 device still use the settings that are already there if it’s entered like this if we look at the status on the console port on RB450Gx4 we see in the System-Ports menu then the serial0 port has been used as a special-login if it has been used as a special login, then the session is still like that and if the connection on this SSH has been lost then the information on Used By will also disappear I closed the SSH connection and the information on Used By will disappear that’s the special login feature which makes use of the Console port, which may have become obsolete recently whereas in some types of Routerboard there are still Console ports and we can still use it for certain needs there is one more way that we can use to remote we can do it through the New Terminal menu on the Routerboard if the previous experiment we used a laptop here I login using Winbox on the RB450Gx4 router then I enter the New Terminal menu there is one more feature on Mikrotik that we can use to do other remote routers through the console we can type the command “system serial-terminal” then we use serial0 port then enter then later we can remotely to another routerboard using a serial console connection what are the benefits of using these two features? the first if we do not have a USB to Serial cable because if we want to do remote Mikrotik using the console port if we directly connect to the laptop then we need a serial to USB converter if under certain circumstances we don’t have a serial to USB converter then we can use another Routerboard to remote via Console to the problematic device the second one might be an alternative for example when we can’t connect via an ethernet cable directly for example the routerboard is having problems for example the Ethernet port is disabled or damaged or maybe all the interfaces are inaccessible then we can use this console to do recovery so that it can do the remote again there is one real note when we implement the special-login feature the most important is when the routerboard reboots as much as possible we release the console cable first because if the console cable is still connected when the router reboots then the router will become bootloop and will always reboot therefore we must be careful when we implement this special-login feature like that was the discussion about special-login one of the features to do remote Mikrotik devices using the console port Thank you for watching
don’t forget to Subscribe and press the bell button and if you have questions please comment below don’t forget to share to make it more useful for other Mikrotik users Thank you and see you in the next videos