Cisco

스팬(SPAN:Switch Port Analyzer) 설정하기

장성한군사 2010. 3. 31. 22:10

개념: 특정 포트로 입출력되는 모든 트래픽을 분석 장비가 연결된 포트로 보내어 볼수 있게 하는 기능이다.

아래의 예제는 fa0/1 로 입출력되는 모든 트래픽을 fa0/10으로 보내 분석 할 수 있도록 하는 것이다.

Switch(config)#no monitor session all
Switch(config)#monitor session 1 source interface fastEthernet 0/1
Switch(config)#monitor session 1 destination interface fastethernet 0/10


Switch(config)#do sh monitor
Session 1
---------
Type              : Local Session
Source Ports      :
    Both          : Fa0/1
Destination Ports : Fa0/10
    Encapsulation : Native
          Ingress: Disabled


Switch#sh int status

Port      Name               Status       Vlan       Duplex  Speed Type
Fa0/1     'to sales departme connected    1          a-half   a-10 10/100BaseTX
Fa0/2                        notconnect   1            auto   auto 10/100BaseTX
Fa0/3                        notconnect   1            auto   auto 10/100BaseTX
Fa0/4                        notconnect   1            auto   auto 10/100BaseTX
Fa0/5                        notconnect   1            auto   auto 10/100BaseTX
Fa0/6                        notconnect   1            auto   auto 10/100BaseTX
Fa0/7                        notconnect   1            auto   auto 10/100BaseTX
Fa0/8                        notconnect   1            auto   auto 10/100BaseTX
Fa0/9                        connected    trunk      a-full  a-100 10/100BaseTX
Fa0/10                       monitoring   1          a-full  a-100 10/100BaseTX
Fa0/11                       connected    trunk      a-full  a-100 10/100BaseTX
Fa0/12                       connected    trunk      a-full  a-100 10/100BaseTX