如何启用思科交换机端口镜像而无需重新启动?

我有一个思科WS-C2960S-24TS-S交换机,并希望启用networking分析仪的端口镜像(如Snort)。 我在GUI界面看不到任何选项。

这是可能的,我怎么不启动重启?

您使用命令行启用端口镜像/ SPAN ,并且不需要重新启动。

以下示例(来自链接的文档)将镜像千兆以太网端口0/1到千兆以太网端口0/2的stream量。

Switch(config)# no monitor session 1 Switch(config)# monitor session 1 source interface gigabitethernet0/1 Switch(config)# monitor session 1 destination interface gigabitethernet0/2 encapsulation replicate Switch(config)# end