Cisco Catalyst 2900XL 交换机, 要求镜像端口为fastethernet 0/18 端口,被镜像端口为fastethernet 0/20 口和fastethernet 0/22 口。
        根据上述要求的配置步骤如下:
        
            Sw#configure terminal         进入全局配置模式
           Sw(config)#interface fastethernet 0/18                        进入端口配置模式
           Sw(config-if)#port monitor fastethernet 0/20          对fastethernet0/20端口进行镜像
          Sw(config-if)#port monitor fastethernet 0/22          对fastethernet0/22端口进行镜像
                Sw(config-if)#port monitor vlan 1                                 对vlan 1进行镜像
                Sw(config-if)#end                 退出端口配置模式
                Sw#show port monitor          察看镜像及被镜像端口行流量