Cisco SPAN VSPAN RSPAN

switch#conf t
switch(config)#no monitor session {session-number | all | local | remote}
all 清除所有 local 清除本地  remote 清除遠程
switch(config)#monitor session  session-number source interface interface-id [ , | -] [both | rx | tx ]
port-channel port-channel-number  both 雙向 rx 接收 tx 發送
switch(config)# monitor session session-number destination interface interface-id [encapsulation {dot1q | isl }]
switch#show monitor session session-number
 
switch(config)#no monitor session 1
switch(config)#monitor session 1 source interface fastethernet 0/1
switch(config)#monitor session 1 destination interface fastether 0/10 encapsulation dot1q
switch(config)#end
 
switch(config)#no monitor session 1 source interface fastethernet 0/1
swtich(config)#no monitor session 1 desination interface fastethernet 0/10
 
一個端口不能兼做目的的端口和源端口
一個etherchannel 端口只能做爲SPAN的源端口
對SPAN端口,可以監控一個端口或一段範圍內端口的發送和接收流量
配置爲SPAN目的端口的一個交換機端口不再是一個標準的交換機端口,只有被監控的流量通過SPAN目的端口
一個SPAN目的端口不參與任何VLAN 的生成樹,儘管源端口上的生成樹BPDU或VLAN流量會被複制的到SPAN目的端口上
 
SPAN 可以基於VLAN使用。一個源VLAN 是一個爲了網絡流量分析的被監控VLAN。VSPAN 使用一個或多個VLAN 做爲SPAN的源。源VLAN 中的所有端口成爲源端口。對於VSPAN,只能監控進入的流量(rx 流量)。
 
switch(config)# no monitor session 1
switch(config)#monitor session 1 source vlan 1 - 3 rx
switch(config)#monitor session 1 destination interface gigabitethernet 0/7
switch(config)#monitor sesssion 1 source vlan 10 rx
switch(config)#end
switch#show monitor session 1
switch(config)#no monitor session 1 source vlan 10 rx
switch(config)#no monitor session 1 destination interface gigabitethernet 0/7
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章