文档介绍:华为交换机端口镜像配置
S3000的操作手册上有,如果没有手册的朋友,请看下面
#配置镜像端口
monitor-port { interface_type interface_num | interface_name }
#配置被镜像端口
port mirror { interface_type interface_ num | interface_name } [ to { interface_type interface_ num | interface_name } ]
#你也可以用下面命令,同上面两条的功能
port mirror interface_list1 observing-port { interface_type interface_ num | interface_name }
如果看不懂,请看下面的
display mirror
【命令】
display mirror
【视图】
所有视图
【参数】
无
【描述】
display mirror命令用来显示镜像端口内容。
相关配置可参考命令monitor-port,port mirror。
【举例】
# 显示镜像端口内容。
[Quidway] display mirror
Information about monitor port(s)
The observing port : 0/1
The monitored ports:
0/2 0/3 0/4 0/5 0/6
表3-1 端口镜像显示信息描述表
域名描述
The observing port 镜像端口
The monitored ports 被镜像端口列表
monitor-port
【命令】
monitor-port { interface_type interface_num | interface_name }
undo monitor-port { interface_type interface_num | interface_name }
【视图】
系统视图
【参数】
interface_name:指定镜像端口名,表示方式为interface_name= interface_type interface_num。其中interface_type为端口类型,interface_num为端口编号。
【描述】
monitor-port命令用来设置镜像端口,undo monitor-port命令用来删除镜像端口。
指定的镜像端口不能够为汇聚端口和Trunk端口,当新的镜像端口设置后,原有的镜像端口被自动取消,被镜像端口没有变化。
需要注意的是,在没有配置镜像端口时,配置被镜像端口不能成功。同时,在存在被镜像端口时,删除镜像端口不能成功。
相关配置可参考命令port mirror,display mirror。
【举例】
# 0/1为镜像端口。
[Quidway] monitor-port 0/1
port mirror
【命令】
port mirror { interface_type interface_ num | interface_name } [ to { interface_ty