安耐特交换机端口镜像设置
作者:易隐者 发布于:2012-5-13 20:19 Sunday 分类:参考资料
安耐特交换机端口镜像设置实例:
交换机总共24个口,把1-23的数据包镜像到24口上
set switch port=1-23 mirror=both
set switch mirror=24
enable switch mirror
神州数码交换机端口镜像设置
作者:易隐者 发布于:2012-5-13 20:16 Sunday 分类:参考资料
神码3526S/3926S
指定镜像源端口:
Switch(Config)#monitor session 1 source interface e 1,2-4 0/0/2-4 tx
Switch(Config)#monitor session <session> source interface e 端口列表 {tx,rx,both} rx为镜像源端口接收的流量;tx为镜像从源端口发出的流量;both为源端口入和出的流量。
指定镜像目的端口;
Switch(Config)# monitor session 1 destination interface eth 25 0/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
D-link交换机端口镜像设置
作者:易隐者 发布于:2012-5-13 20:13 Sunday 分类:参考资料
D-link 3226
将端口 2的所有数据复制一份到端口 1
DES-3226S:4#config mirror port 1 add source ports 2 both
看看配置
DES-3226S:4#show mirror
Command: show mirror
Current Settings
Mirror Status: Disabled
Target Port : 1
Mirrored Port
RX: 2
TX: 2
注意 Mirror Status: Disabled 是 disable的 ,所以我们要打开
DES-3226S:4#enable mirror
Command: enable mirror
Success.
端口配完以后,有的朋友还要加这么一条命令
DES-3226S:4#config port mirroring source port b target port 1
这样端口就算完成。
Foundry 交换机端口镜像设置
作者:易隐者 发布于:2012-5-13 20:11 Sunday 分类:参考资料
特点:
可以创建多对多的端口镜像
Foundry 交换机端口镜像配置方法
在配置模式中(Configuration Mode):
interface port monitor { { rx | tx | both}}
确定镜像流量从哪个端口流出,修改此端口配置
指定要镜像哪些端口的哪些流量(rx 指接收的流量,tx 指发送的流量,both 指双向流量),{ { rx | tx | both}} 部分可以重复。
标签: 端口镜像 Foundry Foundry交换机
Extreme 交换机端口镜像设置
作者:易隐者 发布于:2012-5-13 20:08 Sunday 分类:参考资料
特点:
●只能创建多对一或者一对一的镜像端口
●可以监听 VLAN 的流量
●Extreme 会镜像 IN 和 OUT 的流量。这就意味着在镜像 VLAN 的时候,会看到一个报文至少两次从 VLAN 的某个端口出来,并且进入 VLAN 的另一个端口。
版本高于4.1的 Extreme 交换机端口镜像配置方法
{enable | disable} mirroring on port
开启/关闭端口镜像功能,并且指定镜像流量从何端口流出,port-no 只能是一个端口
configure mirroring { add | delete } { vlan | port }
指定镜像哪个或哪些 VLAN 或端口的流量 { vlan | port } 部分可以重复多次
版本低于 4.1 的 Extreme 交换机端口镜像配置方法
enable mirror to port port-no
开启端口镜像功能,并且指定镜像流量从何端口流出,port-no 只能是一个端口
disable mirror
关闭端口镜像功能
config mirror add port
镜像端口 port-no 的流量,如果这个端口包含多个 VLAN 这些流量都会被镜像到目的端口
config mirror add port vlan
镜像端口 port-no 中指定 VLAN 的流量
config mirror add vlan
镜像端口中指定 VLAN 的所有端口的流量
config mirror del port
取消对 port-no 的端口镜像
config mirror del vlan
取消对指定 VLAN 的端口镜像
show mirror
显示端口镜像情况
标签: 端口镜像 Extreme Extreme交换机
日历
最新日志
链接
分类
最新碎语
- 如果一个人想要做一件真正忠于自己内心的事情,那么往往只能一个人独自去做"——理查德·耶茨
2019-06-25 21:34
- 日后我们知道,真正的人生道路是由内心决定的。不论我们的道路看上去如此曲折、如此荒谬地背离我们的愿望,它终归还是把我们引到我们看不见的目的地。(茨威格《昨日世界》)
2019-03-16 21:27
- 如果你渴望得到某样东西,你得让它自由,如果它回到你身边,它就是属于你的,如果它不会回来,你就从未拥有过它。——大仲马《基督山伯爵》
2018-10-09 22:07
- 人生有两大悲剧:一个是没有得到你心爱的东西;另一个是得到了你心爱的东西。人生有两大快乐:一个是没有得到你心爱的东西,于是可以寻求和创造;另一个是得到了你心爱的东西,于是可以去品味和体验。——弗洛伊德
2018-09-25 18:06
- 一个人越有思想,发现有个性的人就越多。普通人是看不出人与人之间的差别的——布莱兹·帕斯卡尔
2018-08-30 18:44
存档
- 2020年11月(2)
- 2018年1月(1)
- 2017年12月(1)
- 2017年11月(6)
- 2017年6月(1)
- 2017年5月(1)
- 2017年4月(1)
- 2017年3月(1)
- 2016年11月(1)
- 2016年4月(1)
- 2015年7月(2)
- 2015年6月(1)
- 2015年5月(5)
- 2014年12月(1)
- 2014年11月(1)
- 2014年10月(1)
- 2014年8月(1)
- 2014年7月(1)
- 2014年6月(1)
- 2014年5月(1)
- 2014年4月(3)
- 2014年2月(2)
- 2014年1月(2)
- 2013年12月(1)
- 2013年11月(1)
- 2013年10月(2)
- 2013年9月(1)
- 2013年8月(1)
- 2013年7月(3)
- 2013年6月(2)
- 2013年5月(1)
- 2013年4月(3)
- 2013年3月(1)
- 2013年2月(2)
- 2013年1月(2)
- 2012年12月(11)
- 2012年11月(12)
- 2012年10月(12)
- 2012年9月(26)
- 2012年8月(29)
- 2012年7月(18)
- 2012年6月(2)
- 2012年5月(25)
- 2012年4月(16)
- 2012年3月(13)
- 2012年2月(6)