sw1(config)#monitor session 1 source int f0/1 - 2 both|rx|tx //设置被监控的端口,监控该接口的进、出、双向流量sw1(config)#monitor session 1 destination int f0/8 //监控流量从此接口发出