存档

文章标签 ‘routeos’

Linux使用dd命令安装routeos系统

2023年4月8日 没有评论

以下在centos7下,测试通过

把以下命令写到rosinstall.sh中

1
2
3
4
5
6
7
8
9
10
11
12
wget http://download2.mikrotik.com/routeros/6.43.8/chr-6.43.8.img.zip -O chr.img.zip && \
gunzip -c chr.img.zip > chr.img && \
mount -o loop,offset=33554944 chr.img /mnt && \
ADDRESS0=`ip addr show eth0 | grep global | cut -d' ' -f 6 | head -n 1` && \
GATEWAY0=`ip route list | grep default | cut -d' ' -f 3` && \
echo "/ip address add address=$ADDRESS0 interface=[/interface ethernet find where name=ether1]
/ip route add gateway=$GATEWAY0
" > /mnt/rw/autorun.scr && \
umount /mnt && \
echo u > /proc/sysrq-trigger && \
dd if=chr.img bs=1024 of=/dev/sda && \
reboot

运行sh rosinstall.sh即可。
ps:注意/dev/sda为自己的硬盘,通过fdisk -l可以得到。eth0 这个是自己的网卡。要找对。不然ip不会自动绑定。安装完重启会连不上,要通过vnc去绑定。

分类: Linux, 解决方案 标签: , ,

routeos在winbox忘记密码

2015年7月24日 没有评论

用你登陆过winbox的那台机器 密码就在C:\Documents and Settings\你的用户名\Application Data\Mikrotik\Winbox\winbox.cfg文件里,你用记事本
打开,里面有类似下面的语句:
typeaddr host192.168.0.1 loginadmin note keep-pwd pwd12345 pwd后面就是密码.