需求:N9K交换机将一个端口的流量复制到另一个端口,以思科9504举例,将E2/9端口的流量复制到E1/1
实现命令如下:
monitor session 1
source interface Ethernet2/9 both
destination interface Ethernet1/1
no shutdown
interface Ethernet1/1
description zhuabao
switchport
switchport monitor
no shutdown
查看配置结果:
SZ-IDC-CORE-SW-9504-01# sh monitor session all
session 1
---------------
description : APP
type : local
state : up
acl-name : acl-name not specified
source intf :
rx : Eth2/9
tx : Eth2/9
both : Eth2/9
source VLANs :
rx :
tx :
both :
filter VLANs : filter not specified
source fwd drops :
destination ports : Eth1/1
PFC On Interfaces :
SZ-IDC-CORE-SW-9504-01#
本文介绍了如何在思科9504交换机上配置端口镜像,将E2/9端口的流量复制到E1/1端口进行监控。通过使用`monitorsession`命令,设置源接口为E2/9,目的地接口为E1/1,并启用端口,从而实现流量镜像。
1346

被折叠的 条评论
为什么被折叠?



