# CISCO 2960G 에 port mirroring 설정하기
- 물론 이러한 설정도 ena해서 configure로 들어 가서 설정 한다.
1. 기존의 monitoring 정보 삭제
mk_switch(config)# no monitor session all
2. 모니터링 소스 포트 할당 (1번 포트 부터 23번 포트까지 할당)
mk_switch(config)# monitor session 1 source interface GigabitEthernet 0/1 - 23
cf> port를 하나만 할당 하려면
.... GigabitEthernet 0/1 이렇게 주면 되고, 디폴트는 RX, TX 모두에 대해서 적용하지만
TX, RX에 대해서 별도 적용을 하려면
mk_switch(config)# monitor session 1 source interface GigabitEthernet 0/13 rx
이런식으로 지정해주면 된다.
3. 모니터링 목적 포트 할당 (24번 포트 할당)
mk_switch(config)#monitor session 1 destination interface GigabitEthernet 0/24
4. 마무리 및 확인
mk_switch(config)# end
mk_switch(config)# show monitor session 1
Switch#show monitor session 1
Session 1
---------
Type : Local Session
Source Ports :
Both : Gi0/1-23
Destination Ports : Gi0/24
Encapsulation : Native
Ingress : Disabled
mk_switch#
ps.1 전체의 트래픽을 두 포트로 RX, TX 나누어서 미러링 설정하기
- session 1과 session 2로 나누어 소스를 설정하면서 session 1은 rx, session 2는 tx를 받도록 설정한다.
가령, port 1~ 24번 까지 전체에 대해서 port 25 로 rx, port 26으로 tx를 받게 하려면 다음과 같이 설정한다.
# 소스 포트 설정
mk_switch(config)# monitor session 1 source interface GigabitEthernet 0/1 - 24 rx
mk_switch(config)# monitor session 2 source interface GigabitEthernet 0/1 - 24 tx
# 모니터링 포트 설정
mk_switch(config)#monitor session 1 destination interface GigabitEthernet 0/25
mk_switch(config)#monitor session 2 destination interface GigabitEthernet 0/26
이렇게 세팅하면 된다.
- 위를 작성 했더니 또 하나의 질문이 왔다. 2960G의 경우, fiber port와 copper port를 같이 가지고 있다.
이를 이용해 미디어 컨버터 등을 이용하지 않고도 광구간의 네트웍에서 copper로 미러링 받을 수 있게 해달라고 ...
ps.2 Fiber port로 유입되는 트래픽을 copper port로 미러링 하기
# 소스 포트 설정 (fiber port 지정)
mk_switch(config)# monitor session 1 source interface GigabitEthernet 0/25 - 28
# 모니터링 포트 설정 (copper port 지정)
mk_switch(config)#monitor session 1 destination interface GigabitEthernet 0/24
이렇게 세팅하면 된다.
ps.1 전체의 트래픽을 두 포트로 RX, TX 나누어서 미러링 설정하기
- session 1과 session 2로 나누어 소스를 설정하면서 session 1은 rx, session 2는 tx를 받도록 설정한다.
가령, port 1~ 24번 까지 전체에 대해서 port 25 로 rx, port 26으로 tx를 받게 하려면 다음과 같이 설정한다.
# 소스 포트 설정
mk_switch(config)# monitor session 1 source interface GigabitEthernet 0/1 - 24 rx
mk_switch(config)# monitor session 2 source interface GigabitEthernet 0/1 - 24 tx
# 모니터링 포트 설정
mk_switch(config)#monitor session 1 destination interface GigabitEthernet 0/25
mk_switch(config)#monitor session 2 destination interface GigabitEthernet 0/26
이렇게 세팅하면 된다.
- 위를 작성 했더니 또 하나의 질문이 왔다. 2960G의 경우, fiber port와 copper port를 같이 가지고 있다.
이를 이용해 미디어 컨버터 등을 이용하지 않고도 광구간의 네트웍에서 copper로 미러링 받을 수 있게 해달라고 ...
ps.2 Fiber port로 유입되는 트래픽을 copper port로 미러링 하기
# 소스 포트 설정 (fiber port 지정)
mk_switch(config)# monitor session 1 source interface GigabitEthernet 0/25 - 28
# 모니터링 포트 설정 (copper port 지정)
mk_switch(config)#monitor session 1 destination interface GigabitEthernet 0/24
이렇게 세팅하면 된다.
- 나는 copy left를 따르므로 무한 배포를 하셔도 좋습니다. 출처 정도를 밝혀 주시면 더 고마울 따름이고...