ROS路由常用命令

显示 print
接口菜单 interface
查看接口 interface print
启用设备 interface>enable Name
设备改名 interface>set ether1 name=LAN;set ether2 name=WAN
配置命令 setup
配置IP ip address>add address 192.168.0.1/24 interface LAN
ip address>add address 58.58.58.58 netmask 255.255.255.0 interface WAN

查看路由 ip route>print
ip route>print detail
添加路由 ip route>add gateway=58.58.58.60
测试路由 ping 58.58.58.60
使用伪装 ip firewall nat>add chain=srcnat action=masquerade out-interface=WAN
单机限速 queue **>add target-address=192.168.1.1 max-limit=64000/64000 interface=LAN
NAT映射 ip firewall nat>add chain=dstnat action=dst-nat protocol=tcp dst-address=58.58.58.58/32 dst-port=80 to-addresses=192.168.1.1

保存备份 system backup>save name=test
查看备份 file print
导入备份 system backup>load name=test
导出配置 ip address print
ip address>export file=address
ip address>export file=address1 from=1
ip address>export from=0,1

查看文件 file print
导入配置 import address.rsc
备份ARP ip arp export file=arp
备份ARP import arp.rsc
复位 system reset
查看系统 system resource>print
cpu\内存 system resource monitor
重启 system reboot
关机 system shutdown

服务设置 ip service
设置更改 ip service>set www port=8888 address=58.58.58.0/30
流量监视 interface>monitor-traffic LAN,WAN
添加MAC ip arp>add address=192.168.1.1 interface=LAN mac-address=00:00:00:00:00:00
MAC静态 :foreach i in [/ip arp find dynamic=yes interface=LAN] do={/ip arp add copy-from=$i}
网卡静态 ip arp>/interface ethernet set LAN arp=reply-only


相关文档
最新文档