神州数码交换机端口镜像设置命令

阅读: 评论:0

神州数码交换机端口镜像设置
神码3526S/3926S
指定镜像源端口:
sero-0151
Switch(Config)#monitor  session  1 source interface e  1,2-4 0/0/2-4tx
Switch(Config)#monitor session<session>  source interface e 端口列表{tx,rx,both}rx为镜像源端口接收的流量;tx为镜像从源端口发出的流量;both为源端口入和出的流量。指定镜像目的端口;
桔梗去皮机
Switch(Config)# monitor session 1 destination interface eth 250/0/25为3926端口Switch(Config)#monitor session <session> destination interface <interface-number>
其他配置型号端口镜像
命令:[no] mirror-port ethernet <portnum>
功能:激活镜像端口
命令模式:特权配置模式
参数:<portnum>为镜像端口的端口号
命令:[no] monitor ethernet <portnum> [ethernet <portnum>...] both | in | out
功能:激活被镜像的端口的镜像功能
命令模式:端口配置模式
参数:<portnum>为镜像端口端口号;both | in | out分别代表双向流量,输入流量,输出流量
举例一:
DCRS-7500(config)# mirror-port ethernet 4/1
DCRS-7500(config)# interface ethernet 4/3
DCRS-7500(config-if-4/3)# monitor ethernet 4/1 both
上述命令将端口4/3上的双向流量镜像到端口4/1,用户可以在端口4/1外接协议分析仪来查看端口4/3的流量信息。
止动环举例二:
DCRS-7500(config)# interface ethernet 1/2
DCRS-7500(config-if-1/2)# monitor ethernet 1/1 in
DCRS-7500(config-if-1/2)# interface ethernet 1/3
DCRS-7500(config-if-1/3)# monitor ethernet 1/1 in
DCRS-7500(config-if-1/3)# interface ethernet 1/4
DCRS-7500(config-if-1/4)# monitor ethernet 1/1 in
上述命令把端口1/2,1/3和1/4的输入流量镜像到端口1/1。
镜像链路聚合组中的单独端口
默认状态下,当镜像链路聚合组中的主端口时,链路聚合组中的所有端口的流量都被镜像到镜像端口。用户可以配置只镜像链路聚合组中的单独端口。
命令:[no] monitor ethe-port-monitored <portnum> | named-port-monitored <portname> ethernet <portnum> in | out | both
功能:镜像链路聚合组中的单独端口
命令模式:链路聚合配置模式
参数:ethe-port-monitored <portnum> | named-port-monitored <portname>参数指定了链路聚合组中被镜像的端口,ethe-port-monitored <portnum>指定被镜像的端口号码,
named-portmonitored <portname>指定被镜像的端口名称;ethernet | <portnum>指定镜像端口号码,这个端口外接协议分析仪;both | in | out分别代表双向流量,输入流量,输出流量
举例:
DCRS-7500(config)# mirror ethernet 2/1
DCRS-7500(config)# trunk switch ethernet 4/1 to 4/8
DCRS-7500(config-trunk-4/1-4/8)# monitor ethe-port-monitored 4/5 ethernet 2/1 in
上述命令设置端口2/1镜像链路聚合组中端口4/5的输入流量。
命令:[no] config-primary-ind灭火器标签
功能:镜像链路聚合组中的主端口
命令模式:链路聚合配置模式
举例:
DCRS-7500(config)# mirror ethernet 2/1
DCRS-7500(config)# trunk switch ethernet 4/1 to 4/8
DCRS-7500(config-trunk-4/1-4/8)# config-primary-ind
DCRS-7500(config-trunk-4/1-4/8)# monitor ethe-port-monitored 4/1 ethernet 2/1 out
上述命令设置端口2/1镜像链路聚合组中主端口4/1的输出流量。
显示端口镜像配置
命令:show monitor
功能:显示端口镜像配置
命令模式:全局配置模式
脑根举例:
仪表车床加工DCRS-7500(config)# show monitor
Mirror Interface: ethernet 4/1
Monitored Interfaces:
Both Input Output
---------------------------------------------------
ethernet 4/3

本文发布于:2023-06-12 14:57:26,感谢您对本站的认可!

本文链接:https://patent.en369.cn/patent/3/136701.html

版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。

标签:端口   镜像   流量   聚合   链路   模式   配置
留言与评论(共有 0 条评论)
   
验证码:
Copyright ©2019-2022 Comsenz Inc.Powered by © 369专利查询检索平台 豫ICP备2021025688号-20 网站地图