• ros dd routeros


    1,下载 ros chr本 必须 6.4.X 版本    

    2,解压 unzip    

    3 dd if=chr.img bs=1024 of=/dev/sda  

    sda  特别注意下

    以下VPS 的配置

    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/vda && 
    reboot
  • 相关阅读:
    电子商务测试点总结
    pc 端 测试点总结
    web测试点总结
    Monkey脚本API
    Git 命令
    配置samba的流程
    scrapy使用指南
    链接
    顺序表总结
    python数据类型——字符串类型
  • 原文地址:https://www.cnblogs.com/th-lyc/p/12162391.html
Copyright © 2020-2023  润新知