엔지니어/Network

스위치 포트 미러링

louie0 2016. 5. 26. 11:19
728x90
반응형
1. C3560, C3750 미러링 포트 설정

Config terminal 모드에서 입력

Ex.1) 출발주소 vlan 설정시
monitor session 1 source vlan 1 both// 출발 주소 vlan1, both-rx,tx 포함
monitor session 1 destination interface Fa0/24 // 도착주소 Fa0/24 포트


Ex.2) 출발주소 특정포트 설정시
monitor session 1 source interface Gi1/0/23 both //출발주소 Gi/1/0/23 포트, both-rx,tx 포함
monitor session 1 destination interface Gi1/0/11 //도착주소 Gi1/0/11 포트


2. C4006 미러링 포트 설정
set span 3/16 3/13 both inpkts disable learning enable create 
//출발주소 3/16 Port, 도착주소 3/13 Port, both(rx,tx)
set span 3/16 2/33 both inpkts enable learning enable create
//출발주소 3/16 Port, 도착주소 2/33 Port, both(rx,tx)
set span vlan 10 3/13 both inpkts disable learning enable create
//출발주소 vlan 10, 도착주소 3/13 Port, both(rx,tx)

세부 옵션
create                    Creating new SPAN session
filter                       Monitor traffic on selected vlans
inpkts                     Enable/disable destination port incoming packets
learning                  Enable/disable MAC address learning


Config 설정이 완료되면 모니터링 PC는 Destination 포트에 연결하여 사용하면 된다.
모니터링 PC 패킷 감시 프로그램으로 Wireshark, Ethereal, 스니퍼 등이 있다.


반응형