5. Catalyst 4000系列(IOS*作系统)端口镜像配置方法: 镜像端口为1/1,被镜像端口为3/17,输入命令如下: Switch (enable) set span ?
Usage: set span disable [dest_mod/dest_portall] set span [rxtxboth] [inpkts ] [multicast ] [create] (example of src_mod/src_ports: 2/1-4 or 2/1-2 or 2/5,2/6 example of src_vlans: 2-10,105) Switch (enable) set span 3/17 1/1 both inpkts en (配置端口镜像) Overwrote Port 1/1 to monitor transmit/receive traffic of Port 3/17 Incoming Packets enabled. Multicast enabled. Switch (enable)show span(察看当前镜像端口及被镜像端口)
Destination : Port 1/1 Admin Source : Port 3/17 Oper Source : Port 3/17 Direction : transmit/receive Incoming Packets: enabled Multicast : enabled