在阿里云上搭建ROS

 
更多

阿里云上搭建ROS
第一步 下载合适版本的ROS
首先你要先去 mikrotik 的网站下载新版本的ROS 不知道为什么
  名字叫做CHR 这个版本其中包含了 Virtio ethernet 驱动

以下是官方邮件回复的内容

If you want to use RouterOS on VM please use CHR. It does include Virtio ethernet and disk drivers.

Wiki article on CHR:
https://wiki.mikrotik.com/wiki/Manual:CHR

下载官方的镜像.

第二步 镜像的换换与制作
利用阿里云的自定义镜像导入功能,将下载的镜像制作成阿里云需要镜像格式RAW/VHD。

第三步 在阿里云制作镜像

后面你就应该知道怎么搞了 在阿里云创建虚拟主机 使用镜像安装系统就行

#定义lan接口的IP和掩码
/ip address add address=192.168.8.254/255.255.255.0 interface=lan
#定义网关

/ip route add gateway=192.168.8.2

/ip pool
add name=dhcp ranges=192.168.210.2-192.168.210.10
/ppp profile
add local-address=172.20.65.149 name=l2tp remote-address=dhcp \
    use-compression=yes use-encryption=yes use-mpls=yes
/interface l2tp-server server
set default-profile=l2tp enabled=yes ipsec-secret=123456 use-ipsec=yes
/ip address
add address=172.20.65.149/20 interface=ether1 network=172.20.64.0
add address=47.254.44.210 disabled=yes interface=ether1 network=47.254.44.210
add address=192.168.210.1/24 interface=ether1 network=192.168.210.0
/ip dhcp-client
add disabled=yes interface=ether1
/ip dns
set servers=114.114.114.114
/ip firewall nat
add action=masquerade chain=srcnat out-interface=ether1
/ip route
add distance=1 gateway=172.20.79.253
/ip service
set telnet disabled=yes
set ftp disabled=yes
set www disabled=yes
set ssh disabled=yes
set api disabled=yes
set api-ssl disabled=yes
/ppp secret
add name=xiaoming password=???? profile=l2tp service=l2tp

打赏

本文固定链接: https://www.cxy163.net/archives/1536 | 绝缘体

该日志由 绝缘体.. 于 2017年07月06日 发表在 首页 分类下,
原创文章转载请注明: 在阿里云上搭建ROS | 绝缘体

报歉!评论已关闭.