apt update
apt install net-tools unzip fdisk -y
route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 195.123.224.1 0.0.0.0 UG 0 0 0 ens3
195.123.224.0 0.0.0.0 255.255.248.0 U 0 0 0 ens3
ifconfig
ens3: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 195.123.225.103 netmask 255.255.248.0 broadcast 195.123.231.255
inet6 fe80::5054:ff:fe8d:b70 prefixlen 64 scopeid 0x20<link>
inet6 2a02:27aa::949 prefixlen 32 scopeid 0x0<global>
ether 52:54:00:8d:0b:70 txqueuelen 1000 (Ethernet)
RX packets 224284 bytes 14489119 (14.4 MB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 803 bytes 81381 (81.3 KB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
wget --no-check-certificate https://download.mikrotik.com/routeros/7.19.3/chr-7.19.3.img.zip
unzip chr-7.19.3.img.zip
fdisk -l
Disk /dev/sda: 53.7 GB, 53687091200 bytes, 104857600 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk label type: dos
Disk identifier: 0x000da8dc
dd if=chr-7.19.3.img of=/dev/sda bs=4M oflag=sync
echo 1 > /proc/sys/kernel/sysrq
echo b > /proc/sysrq-trigger
wget --no-check-certificate https://download.mikrotik.com/routeros/6.49.18/chr-6.49.18.img.zip
unzip chr-6.49.18.img.zip
fdisk -l
Disk /dev/sda: 53.7 GB, 53687091200 bytes, 104857600 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk label type: dos
Disk identifier: 0x000da8dc
dd if=chr-6.49.18.img of=/dev/sda bs=4M oflag=sync
echo 1 > /proc/sys/kernel/sysrq
echo b > /proc/sysrq-trigger
/ip address add interface=ether1 address=195.123.225.103 netmask=255.255.248.0
/ip route add gateway=195.123.224.1 dst-address=0.0.0.0/0 distance=1
/ip dhcp-client add disabled=no interface=ether1