電訊茶室's Archiver

角色 發表於 2018-2-26 15:27

Collection of RouterOS commands via command line interface

[i=s] 本帖最後由 角色 於 2018-2-26 22:23 編輯 [/i]

因为有GUI去改RouterOS settings,是非常方便的,但是有的时候根本开不到GUI,一定要用commands才能进行settings,所以希望开个新帖子,把比较重要的commands列出来,那么大家也可以参考。这个主要用于VirtualBox里RouterOS VM。

角色 發表於 2018-2-26 15:27

[i=s] 本帖最後由 角色 於 2018-2-28 23:29 編輯 [/i]

Static IP[code]/ip address add address=10.10.10.1/24 interface=ether1[/code]#

Static route[code]/ip route add dst-address=10.10.10.0/24 gateway=10.10.20.1[/code]Creat a bridge[code]/interface bridge add name=Bridge1[/code]#

Attach interfaces to the above port[code]/interface bridge port add interface=ether2 bridge=Bridge1
/interface bridge port add interface=ether3 bridge=Bridge1
/interface bridge port add interface=ether4 bridge=Bridge1
/interface bridge port add interface=ether5 bridge=Bridge1
/interface bridge port add interface=ether6 bridge=Bridge1
/interface bridge port add interface=ether7 bridge=Bridge1
/interface bridge port add interface=ether8 bridge=Bridge1
[/code]#

角色 發表於 2018-2-26 15:33

备用帖子3

角色 發表於 2018-2-26 15:34

备用帖子3

角色 發表於 2018-2-26 15:34

备用帖子4

角色 發表於 2018-2-26 15:35

备用帖子5

角色 發表於 2018-2-26 15:35

备用帖子6

角色 發表於 2018-2-26 15:37

备用帖子7

角色 發表於 2018-2-26 15:37

备用帖子8

角色 發表於 2018-2-26 15:38

备用帖子9

角色 發表於 2018-2-26 15:38

备用帖子10

角色 發表於 2018-2-26 15:38

备用帖子11

角色 發表於 2018-2-26 15:38

备用帖子12

角色 發表於 2018-2-26 15:39

备用帖子13

角色 發表於 2018-2-26 15:39

备用帖子14

角色 發表於 2018-2-26 15:39

备用帖子15

頁: [1]

Powered by Discuz! Archiver 7.2  © 2001-2009 Comsenz Inc.