[시스코 보안 아카데미 1기] 교육 16일차 정리 (VoIP, Vlan)

음성 인터넷 프로토콜(VoIP, Voice over Internet Protocol, voice over IP, IP telephony)

  • 인터넷 전화 or IP 전화라고 불림
  • 인터넷을 기반으로 음성이나 영상통화를 할 수 있는 통신 기술을 의미
  • Voice Gateway (디폴트 게이트웨이라고 생각)
  • IP-Phone이 CIPC라는 하드웨어적인 폰으로도 존재할 수 있음.
  1. QoS
    • 빨리처리하라고 마킹(새치기) - L3 개념
  2. CoS(Cost of Service)
    • L2에서 QoS를 해야할 때 사용

VoIP 명령어

R1 Voice Gateway 설정

R1(config)# telephony-service
R1(config-telephony)# max-epphones 1
R1(config-telephony)# max-dn 1
R1(config-telephony)# ip source-address 203.230.7.1 port 2000
R1(config-telephony)# auto assign 1 to 1
R1(config-telephony)# exit
R1(config)# ephone-dn 1
R1(config-ephone-dn)# number 1001
R1(config-ephone-dn)# exit

R2 Voice Gateway 설정

R2(config)# telephony-service
R2(config-telephony)# max-epphones 2
R2(config-telephony)# max-dn 2
R2(config-telephony)# ip source-address 203.230.8.1 port 2000
R2(config-telephony)# auto assign 1 to 2
R2(config-telephony)# exit
R2(config)# ephone-dn 1
R2(config-ephone-dn)# number 2001
R2(config-ephone-dn)# exit
R2(config)# ephone-dn 2
R2(config-ephone-dn)# number 2002
R2(config-ephone-dn)# exit

R1 추가 설정

R1(config)# dial-peer voice 2001 voip
R1(config-dial-peer)# destination-pattern 2001
R1(config-dial-peer)# session target ipv4:203.230.8.1
R1(config-dial-peer)# exit
R1(config)# dial-peer voice 2002 voip
R1(config-dial-peer)# destination-pattern 2002
R1(config-dial-peer)# session target ipv4:203.230.8.1
R1(config-dial-peer)# exit

R2 추가 설정

R2(config)# dial-peer voice 1001 voip
R2(config-dial-peer)# destination-pattern 1001
R2(config-dial-peer)# session target ipv4:203.230.7.1
R2(config-dial-peer)# exit

 

Vlan

  • Vlan이 들어가는 순간 토폴로지는 논리적으로 변한다.
  • Symmetric Switching
  • Asymmetric Switching
  • Vlan을 구성하면 보안성이 좋아짐
  • DTP(Dynamic Trunking Protocol) → L2 스위치에서 한쪽에 Trunk로 선언하면 다른 쪽은 자동으로 선언됨. (L3 - L2도 마찬가지)
  • 스위치에서 Fa0/2 ~ Fa0/10에 Vlan 10을 할당하려면
    • vlan 10
      name VLAN_10
      exit
      int range fa0/2-10
      sw m a
      sw a v 10