华为交换机端口镜像配置
华为交换机端口镜像配置
S3000的操作手册上有,如果没有手册的朋友,请看下面
#配置镜像端口
monitor-port { interface_type interface_num | interface_name }
#配置被镜像端口
port mirror { interface_type interface_ num | interface_name } [ to { inter face_type interface_ num | interface_name } ]
#你也可以用下面命令,同上面两条的功能
port mirror interface_list1 observing-port { interface_type interface_ num | interface_name }
如果看不懂,请看下面的
3.1.1 display mirror
【命令】
display mirror
【视图】
所有视图
【参数】
无
【描述】
display mirror命令用来显示镜像端口内容。
相关配置可参考命令monitor-port,port mirror。
【举例】
# 显示镜像端口内容。
[Quidway] display mirror
Information about monitor port(s)
The observing port : Ethernet0/1
The monitored ports:
Ethernet0/2 Ethernet0/3 Ethernet0/4 Ethernet0/5 Ethernet0/6
表3-1 端口镜像显示信息描述表
域名描述
The observing port 镜像端口
The monitored ports 被镜像端口列表
3.1.2 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 interfac e_num。其中interface_type为端口类型,interface_num为端口编号。
【描述】
monitor-port命令用来设置镜像端口,undo monitor-port命令用来删除镜像端口。
指定的镜像端口不能够为汇聚端口和Trunk端口,当新的镜像端口设置后,原有的镜像端口被自动取消,被镜像端口没有变化。
需要注意的是,在没有配置镜像端口时,配置被镜像端口不能成功。同时,在存在被镜像端口时,删除镜像端口不能成功。
相关配置可参考命令port mirror,display mirror。
【举例】
# 设置以太网端口Ethernet0/1为镜像端口。
[Quidway] monitor-port ethernet0/1
3.1.3 port mirror
【命令】
port mirror { interface_type interface_ num | interface_name } [ to { inter
face_type interface_ num | interface_name } ]
undo port mirror { interface_type interface_ num | interface_name } [ to { interface_type interface_ num | interface_name } ]
【视图】
系统视图
【参数】
{ interface_type interface_ num | interface_name } [ to { interface_type in terface_ num | interface_name } ]:指定被镜像端口。不使用to参数指定一个被镜像端口;使用to参数可以指定连续的多个被镜像端口。其中,interface_name为端口名,表示方式为interface_name=interface_type interface_num。interface_type为端口类型,int erface_num为端口编号。
【描述】
port mirror命令用来设置被镜像端口,undo port mirror命令用来删除被镜像端口。需要注意的是,在没有配置镜像端口时,配置被镜像端口不能成功。同时,在存在被镜像端口时,删除镜像端口不能成功。
相关配置可参考命令monitor-port,display mirror。
【举例】
# 设置以太网端口Ethernet0/1为被镜像端口。
[Quidway] port mirror ethernet0/1
因篇幅问题不能全部显示,请点此查看更多更全内容