본문 바로가기

네트워크/네트워크 기본

Port Mirroring(포트 미러링) 하기 [SPAN]

 [ 2900 / 3500XL 장비 ]

Config)# interface f0/1                                              <=== Sniffer Port
Config-if)# port monitor f0/10                                  <=== 모니터링 Port
Config-if)# port monitor f0/11                                  <=== 모니터링 Port

       ※ f0/1에 스니퍼 장비를 물리고, f0/10과 f0/11 포트를 감시함.


  [2950 시리즈 ]

Config)# monitor session 1 source interface f0/10- 11 both                     <=== 모니터링 Port
Config)# monitor session 1 destination interface f0/1                             <=== Sniffer Port

        ※ Source Port는 물리적 interface 뿐만 아니라, VLAN도 설정 가능.
        ※ Destination Port의 Interface 상태를 보면 Up / Down (monitoring)으로 표시된다.


  [4000 / 5000 / 6000 시리즈]

Config#(enable) set span 3/10 - 11 3/1 [ rx | tx | both ]

         ※ 3/1에 스니퍼 장비를 물리고, 3/10과 3/11 포트를 감시함.


[Extreme Switch]
== 소스 포트설정 ==
Switch # Config mirroring add port 19
== 목적지 포트 설정 ==
Switch # enable mirroring to port 23 
WARNING: This command will remove VLAN membership from the monitor port.
         Do you want to continue? (y/N) Yes