需求: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#