|
! interface FastEthernet0/1
port monitor FastEthernet0/2
port monitor FastEthernet0/5
port monitor VLAN1 !
interface FastEthernet0/2 !
Cisco ? Configuring the Catalyst Switched Port Analyzer (SPAN)interface FastEthernet0/3
switchport access vlan 2 ! interface FastEthernet0/4
port monitor FastEthernet0/3
port monitor FastEthernet0/6
switchport access vlan 2 ! interface FastEthernet0/5 ! interface FastEthernet0/6 switchport access vlan 2 !
! interface VLAN1
ip address 10.200.8.136 255.255.252.0
no ip directed?broadcast
no ip route?cache !
Configuration Steps Explained
To configure port Fa0/1 as a destination port on th
華為交換機(jī)端口鏡像配置
S2008/S2016/S2026/S2403H/S3026等交換機(jī)支持的都是基于端口的鏡像,有兩種方法:
方法一
1. 配置鏡像(觀測(cè))端口
[SwitchA]monitor-port e0/8
2. 配置被鏡像端口
[SwitchA]port mirror Ethernet 0/1 to Ethernet 0/2
方法二
1. 可以一次性定義鏡像和被鏡像端口
[SwitchA]port mirror Ethernet 0/1 to Ethernet 0/2 observing-port Ethernet 0/8
【8016交換機(jī)端口鏡像配置】
1. 假設(shè)8016交換機(jī)鏡像端口為E1/0/15,被鏡像端口為E1/0/0,設(shè)置端口1/0/15為端口鏡像的觀測(cè)端口。
[SwitchA] port monitor ethernet 1/0/15
2. 設(shè)置端口1/0/0為被鏡像端口,對(duì)其輸入輸出數(shù)據(jù)都進(jìn)行鏡像。
[SwitchA] port mirroring ethernet 1/0/0 both ethernet 1/0/15
也可以通過兩個(gè)不同的端口,對(duì)輸入和輸出的數(shù)據(jù)分別鏡像
1. 設(shè)置E1/0/15和E2/0/0為鏡像(觀測(cè))端口
[SwitchA] port monitor ethernet 1/0/15
2. 設(shè)置端口1/0/0為被鏡像端口,分別使用E1/0/15和E2/0/0對(duì)輸入和輸出數(shù)據(jù)進(jìn)行鏡像。
[SwitchA] port mirroring gigabitethernet 1/0/0 ingress ethernet 1/0/15
[SwitchA] port mirroring gigabitethernet 1/0/0 egress ethernet 2/0/0
『基于流鏡像的數(shù)據(jù)流程』
基于流鏡像的交換機(jī)針對(duì)某些流進(jìn)行鏡像,每個(gè)連接都有兩個(gè)方向的數(shù)據(jù)流,對(duì)于交換機(jī)來說這兩個(gè)數(shù)據(jù)流是要分開鏡像的。
|
【收藏】【打印】【進(jìn)入論壇】 |
|
|
|
|
|
|
|