思科交换机怎么配置镜像口

2025-04-02 17:54:29
推荐回答(1个)
回答1:

要进命令行配置的。需要在CISCO 2950上配置端口镜像,CISCO 2950端口镜像配置语法:
monitor session session_number {destination {interface interface-id [, | -] [encapsulation {dot1q}] [ingress vlan vlan id] | remote vlan vlan-id reflector-port interface-id} | {source {interface interface-id [, | -] [both | rx | tx] | remote vlan vlan-id}}
本例中,WFilter监控主机接在22端口(目的端口),路由器接在23端口(源端口)。配置命令如下:
把23设置为源端口
monitor session 1 source interface Fa0/23
把22端口设置为镜像的目的端口
monitor session 1 destination interface Fa0/22 ingress vlan 1(如交换机不支持ingress参数,则不需要ingress vlan 1)