RouterOS命令行采用名称空间的方式进行组织,整体呈现树形结构,名称空间从根目录/开始,每层目录名以蓝色字体标出,..代表上级目录,每层目录之间使用空格符隔开(不使用/);空间最后一层(叶子节点)为具体的配置操作,为“操作命令属性名=属性值”的命令结构,其中操作命令以紫色字体标出,属性名以绿色字体标出,属性值以黑色字体标出,若命令输入错误,则以暗红色字体提示。输入的命令可使用tab键补齐,亦可不输完完整命令以命令一部分代替,并可敲入?问号查看当前命令环境下的命令帮助提示。
OSPF动态路由协议配置过程:
1.设备hostname配置
/system identity set name=....
2.设备接口IP配置
/interface ethernet print
/ip address add address=..... interface=.....
3.OSPF默认进程实例修改或进程实例添加
/routing ospf instance set [add] router-id=.... redistribute-.....=..... metric-.....=......
4.OSPF区域添加
/routing ospf area add area-id=..... name=..... area-type=...... inject-summary-lsas=...
5.将网段加入到相应的OSPF区域中
/routing ospf network add network=..... area=......
6.将接口加入到OSPF进程实例中以及接口相应OSPF参数设置
/routing ospf interface add interface=..... instance-id=....
7.OSPF信息查看
/routing ospf lsa print
/routing ospf neighbor print
/routing ospf route print
/routing ospf area-border-router print
/routing ospf as-border-router print
8.抓包设置及抓包
/tool sniffer set interface=.... filter-ip-address=.....
/tool sniffer start [stop]
转载于:https://blog.51cto.com/4369192/1397135