2. 交换机的sc0接口不能配置为SPAN源端口。
3. EtherChannel端口不能作为SPAN目的端口。
4. 在进行SPAN对话配置时,如果目的端口的Trunking模式为“On” 或 “Nonegotiate”,则SPAN包将以原Trunking配置的封装格式进行转发,同时这个目的端口将停止Trunking。
配置例子:
例1:
配置port 2/5 (the SPAN source) 的出入双向数据包被复制到port 2/10 (the SPAN destination)。
Console> (enable) set span 2/5 2/10
Console> (enable) show span
Destination : Port 2/10
Admin Source : Port 2/5
Oper Source : None
Direction : transmit/receive
Incoming Packets: disabled
Learning : enabled
Filter : -
Status : active
-----------------------------
Total local span sessions: 1
Console> (enable)例2:
配置VLAN 522和523为SPAN source, port 2/1 为SPAN destination:
Console> (enable) set span 522-523 2/1
Console> (enable) show span
Destination : Port 2/1
Admin Source : VLAN 522-523
Oper Source : Port 2/1-2
Direction : transmit/receive
Incoming Packets: disabled
Learning : enabled
Filter : -
Status : active
----------------
Total local span sessions: 1
Console> (enable)禁止SPAN
set span disable [dest_mod/dest_port | all] 通过禁止目的端口可以清除SPAN对话。
例如:
Console> (enable) set span disable 2/3
This command may disable your span session(s).
Do you want to continue (y/n) [n]? y
Disabled Port 2/3 to monitor transmit/receive traffic of Port
Incoming Packets disabled. Learning enabled.
Console> (enable)注:以上命令适用于set命令集的Catalyst系列交换机,对一些IOS命令的交换机如Catalyst2950、3500等,其命令有所不同。
[责任编辑:editor]
最新相关文章
发表评论