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