注册 | 登录 忘记密码? 51cto首页 | 博客 | 论坛 | 招聘
热点文章 课程学习笔记:策略路由(..
 帮助

华为交换机端口镜像配置


2007-10-25 11:00:45
 标签:交换 网络   [推送到技术圈]

华为交换机端口镜像配置
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 }


如果看不懂,请看下面的
3.1.1 display mirror
【命令】
display mirror
【视图】
所有视图
【参数】

【描述】
display mirror
命令用来显示镜像端口内容。
相关配置可参考命令monitor-portport 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 interface_num。其中interface_type为端口类型,interface_num为端口编号。
【描述】
monitor-port
命令用来设置镜像端口,undo monitor-port命令用来删除镜像端口。
指定的镜像端口不能够为汇聚端口和Trunk端口,当新的镜像端口设置后,原有的镜像端口被自动取消,被镜像端口没有变化。
需要注意的是,在没有配置镜像端口时,配置被镜像端口不能成功。同时,在存在被镜像端口时,删除镜像端口不能成功。
相关配置可参考命令port mirrordisplay mirror
【举例】
#
设置以太网端口Ethernet0/1为镜像端口。
[Quidway] monitor-port ethernet0/1


3.1.3 port mirror
【命令】
port mirror { interface_type interface_ num | interface_name } [ to { interface_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 interface_ num | interface_name } ]
:指定被镜像端口。不使用to参数指定一个被镜像端口;使用to参数可以指定连续的多个被镜像端口。其中,interface_name为端口名,表示方式为interface_name=interface_type interface_numinterface_type为端口类型,interface_num为端口编号。
【描述】
port mirror
命令用来设置被镜像端口,undo port mirror命令用来删除被镜像端口。
需要注意的是,在没有配置镜像端口时,配置被镜像端口不能成功。同时,在存在被镜像端口时,删除镜像端口不能成功。
相关配置可参考命令monitor-portdisplay mirror
【举例】
#
设置以太网端口Ethernet0/1为被镜像端口。
[Quidway] port mirror ethernet0/1
 






    文章评论
 
 

发表评论

昵   称:
验证码:  点击图片可刷新验证码  博客过2级,无需填写验证码
内   容: