IT 이야기2016. 4. 12. 04:49


AWS를 통하여 서버 하나를 구축하는 법을 알아 보겠다. 


AWS에 가입하는 방법은 생략하도록 하겠다. 

우선 AWS에 로그인하게 되면 아래와 같은 화면을 볼 수 있을 것이다.


EC2는 Elastic Compute Cloud로 손쉽게 가상서버라고 생각하면 쉽겠다. EC2를 선택하면 아래와 같은 화면을 볼 수 있다.



가운데 하단에 있는 "Launch Instance"를 클릭해서 새로운 인스턴스를 생성해보자. AWS에서는 하나의 서버를 인스턴스라고 표현한다.



AMI라고 Amazon Machine Image로 설치 OS나 distro를 다운받아서 사용할 수 있다. Wordpress같은 웹서버를 구축할 생각이라면 여러번 설치할 필요없이 wordpress가 깔려있는 Image를 사용하면 된다. Community라고 적힌 것은 무료로 사용할 수 있다는 뜻이고 재배포에는 어떤 제약이 있는지는 자세히 확인해 봐야 한다. 오른쪽의 OS아이콘 밑에 보면 "Free tier eligible"라고 적혀 있는데 아마존은 1년간 무료 서비스를 제공하고 있고 거기에 맞는 Image라는 뜻이다. "Free tier eligible"를 사용하면 돈 걱정없이 1년간 사용할 수 있다. 여기에서는 Ubuntu를 설치해 보기로 하자.



두번째 칸에 보면 t2.micro가 "Free tier eligible"라고 적혀 있는게 보인다. 해당 서비스를 클릭하고 "Next: configure instance Details"를 클릭하자. "Review and Launch"를 클릭하면 한번 리뷰후 바로 설치를 시작할 수 있다.



여기서는 특별한 설정값 없이 바로 "Next: Add Storage"를 클릭한다.



EC2는 자체 스토리지를 사용할 수 있지만 나중에 확장성이나 시스템 관리면에서는 EBS (Elastic Block Storage)의 사용을 추천한다. 여기서 30GB까지 무료이지만 일단 기본값인 8GB로 설치하겠다. 



본인이 인식할 수 있는 이름을 적어주고 넘어가면 되겠다.



어떤 서버스들을 제공할 건지에 대한 설정인데 기본값으로 SSH가 들어가 있고 HTTP를 추가하여 주었다. 0.0.0.0/0은 아무나 들어 올 수 있다는 뜻이고 특정 사용자만의 접근을 제어할 수 있다.



이제 설치 시작



AWS에서는 공인키를 생성함으로 초기의 접근을 허용한다. "Create a new key pair"를 선택하고 이름을 적어주고 해당 키를 다운받아서 잘 저장해 놓도록 하자. 이따가 SSH연결할 때 꼭 필요한 키이다.



이제 설치가 시작되었다. "View Instances"를 클릭하자



위에서 보면 Instance State가 "Pending"이라고 나오는데 "running"으로 바뀔때까지 기다리자. 가끔 Status Checks에서 에러가 날때가 있는데 이때는 그냥 지우고 다시 설치하면 된다.



설치가 완료되었다. 가상서버의 세계에 온것을 환영하는 바이다. 



이제 설치가 완료되었으니 본인의 서버에 어떻게 접속하는지에 대하여 알아 보겠다.


우선 아까 받은 공인키를 개인키로의 전환이 필요하다. Putty Key Generator라는 것을 인터넷에서 받아보자. 


https://the.earth.li/~sgtatham/putty/latest/x86/puttygen.exe



해당 파일을 열면 위의 화면이 나오는데 "Load"를 눌러서 아까 다운받은 공인키를 넣어준다. 참고로 기본값으로 *.pem을 인식하지 않으므로 확장자를 *.*로 해서 검색해야 한다. 그 다음에 "Save private key"를 눌러서 개인키를 다운받는다. 해당키의 확장자는 pek로 되어 있는 것을 확인하자.


자 이제 putty를 열어보자. putty가 뭔지 모르는 사람들은 일단 다운받아서 사용해보기 바란다. 


https://the.earth.li/~sgtatham/putty/latest/x86/putty.exe




Putty의 왼쪽화면에서 Connection - SSH - Auth의 화면에서 개인키를 넣는 화면이 있는데 여기에다가 아까 변환한 개인키를 넣어준다. 



여기서는 AWS의 Public DNS값을 가져다가 주소로 적어 주면 된다. 단 해당 인스턴스는 ubuntu이므로 ubuntu@ec2-54-89-46-196.compute-1.amazonaws.com라고 적어주면 된다. 참고로 다른 서버들의 사용자명은 아래의 링크에서 확인하기 바란다.


http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/putty.html


  • For an Amazon Linux AMI, the user name is ec2-user.

  • For a RHEL5 AMI, the user name is either root or ec2-user.

  • For an Ubuntu AMI, the user name is ubuntu.

  • For a Fedora AMI, the user name is either fedora or ec2-user.

  • For SUSE Linux, the user name is either root or ec2-user.

  • Otherwise, if ec2-user and root don't work, check with the AMI provider.




연결을 누르면 자동으로 해당 인스턴스의 화면으로 접속이 되는 것을 확인 할 수 있다. 

Posted by 구텐모르겐
IT 이야기2015. 1. 21. 00:29


오픈스택(OpenStack) 클라우드스택(CloudStack) 비교

 

시스템: CloudStack 4.0.1 ( 4.4.2) & OpenStack Grizzly ( IceHouse)

 

서비스까지 개발시간

빠른 개발시간이 중요한 요소라면 오픈스택(OpenStack) 이러한 요구를 충족시킬  없다네트워크 셋업과 OS 설치를 제외하고 클라우드스택(CloudStack) 젠서버를 설치하는 것은 2시간이 걸리지 않는다반면 오픈스택(OpenStack) 몇번의 오류와 수정을 거쳐야 하고 정식 설치가이드를 이용한다고 해도 보통의 개발자들은 1-3일정도의 시간이 걸린다또한 여러가지 컴퍼넌트들을 사용한다고 했을때  시간은 더욱 늦어질 것이다.

 

문서

클라우드스택(CloudStack) 문서화는 사용자들을 만족시키지 못하지만 오픈스택(OpenStack)보다는 나은 정보를 제공한다오픈스택(OpenStack) 스텝-바이-스텝 설명서도 없고 문서들에 대한 내용들이 모호한 것들이 많다.

 

설치과정

설치과정은 모든 프라이빗 클라우드가 가지고 있는 약점이고특히나 오픈스택(OpenStack) 깔기 위해서는 Keystone, Nova, Glance 등과 같은 컴퍼넌트들을 설치해야 하고 MySQL 설치하고 사용자들을 일일이 생성해 줘야 한다 부분에 많은 개발이 이뤄지고 있고 발전이 있긴하지만 아직도 많은 부분은 이루어 나가야 한다.

 

커뮤니티

커뮤니티에 있어서는 오픈스택(OpenStack) 단연 우위를 점하고 있다수많은 대기업들의 기술자들과 돈이 오픈스택(OpenStack)으로 쏟아져 들고 있고 또한 AWS 대항할 유일한 기술이라는 점에서 많은 것들이 오픈스택(OpenStack) 모이고 있다하지만 AWS 대한 진정한 대항마는 클라우드스택(CloudStack)이다클라우드스택(CloudStack) 클라우드 환경을 사용자에 맞게 이루어졌고 AWS와의 연동도 용이하게 이루어진다.

 

기능

클라우드의 기능은 오픈스택(OpenStack) 앞서고 있다고   있다사용자 편이를 우선으로  클라우드 스택과 달리 오픈스택(OpenStack) Glance CLI 툴을 이용해 템플릿 작업을 해줘야 한다클라우드스택(CloudStack) 매일매일의 작업과 리소스관리를 GUI 할수 있고 VPN이나 외부에서의 작업도 클라우드스택(CloudStack) 제공하는 반면 오픈스택(OpenStack) 그런 컴퍼넌트는 아직 지원하지 않고 있다.

 

아키텍쳐

클라우드스택(CloudStack) 관리자들이 모든 로직과 리소스를 한곳에서 관리하게  놓은 반면 오픈스택(OpenStack) RabbitMQ라는 메세징 서비스를 이용해야 하고 모든 모듈이 독립적으로 움직이게 되어 있다좋은 점은 필요한 모듈만 깔아서 쓸수 있으므로 시스템의 사이징이 가능해진다는 점이다하지만 이때문에 시스템은   복잡해지고 고급기술자의 도움이 필요하게 된다.

 

핵심

 시스템 모두 다듬어야  기술적인 문제가 있다클라우드스택(CloudStack) 안정적인 시스템을 보여주지만 프라이빗 클라우드로서 아직 미숙한 모습을 보여주고 있고   다양한 기능을 추가해야  것이다.

실제 운영환경을 고려한다면   손쉬운 접근성을 보여주는 클라우드스택(CloudStack)으로 하는게 용이하겠다하지만 미래의 시장과 모든 정보기술과 자본이 오픈스택(OpenStack) 몰리고 있으므로 현재까지의 시장에서의 강자는 오픈스택(OpenStack)이다.

 

출처

http://www.cloudops.com/2013/02/cloudstack-vs-openstack-a-personal-experience/

 

첨언

해당 저자는 3일정도의 사용시간을 두고 클라우드스택(CloudStack)오픈스택(OpenStack)을 비교하였는데 실질적으로 클라우드스택(CloudStack)오픈스택(OpenStack)의 시장점유율은 다윗과 골리앗이라고 불릴 정도를 거의 모든 시장을 오픈스택(OpenStack)이 점유하고 있고 며칠간의 설치를 통해 클라우드시스템간의 우위를 비교하는게 의미가 있다고는 보지 않는다. 또한 초기 개발자인 NASA오픈스택(OpenStack)을 버리고 아마존으로 떠나버린 것은 프라이빗 클라우드 시장이 밝지만은 않다는 것을 보여주는 반증이다. 저렴한 장비와 무료 소프트웨어를 사용하는데는 99.9999%의 업타임을 보장하는 인프라가 있어야 한다는 점에서 자체 클라우드를 운용한다는 점에서 부담감을 느낀다는 것이다. 그래서 기업들은 오픈스택(OpenStack)을 개발하지 않고 AWS, Google Cloud 혹은 Rackspace로 이동하는 것이다.

 

결국 시장은 독점으로 갈 수는 없고 AWS 25% 먹고 구글과 Azure 10%, Rackspace가 5%, 기타 10%씩 먹는다고 보면 (출처:http://www.cloudcomputing-news.net/news/2014/oct/29/microsoft-takes-clear-lead-iaas-second-place-race-aws-still-way-out-front/) 나머지 40%정도가 자체 클라우드를 구축한다고 봤을때 얼머나 많은 기업들이 AWS를 버리고 오픈스택(OpenStack)을 선택할지는 미지수다.

 

Posted by 구텐모르겐
IT 이야기2015. 1. 16. 00:02

지난강좌 : [CCNA][200-120] HSRP, VRRP 그리고 GLBP (1/36)

지난강좌 : [CCNA][200-120] SNMP (2/36)

지난강좌 : [CCNA][200-120] NetFlow (3/36)

지난강좌 : [CCNA][200-120] Syslog(4/36)

지난강좌 : [CCNA][200-120] OSI 7 레이어 & TCP/IP 레이어 (5/36)

지난강좌 : [CCNA][200-120] 시스코 IOS (6/36)

지난강좌 : [CCNA][200-120] WAN (7/36)

지난강좌 : [CCNA][200-120] 스위치 (8/36)


트렁킹 (Trunking) 혹은 VTP (VLAN Trunking)

일반적으로 트렁킹은 두개 이상의 네트워크 연결을 논리적으로 묶어주는 것으로 두배 이상의 속도향상을 가져 올 수 있다. 그리고 VTP는 여러개의 스위치를 운용할때 VLAN에 대한 정보를 스위치들간에 공유하고자 VTP를 사용하기도 한다. 이를 이용해서 '서버모드'의 스위치에서 VLAN에 대한 정보를 '클라이언트모드'나 '투명모드(Transparent Mode)'로 전송가능하다.

VTP는 레이어2 메세징 프로토콜로 레이어3를 사용하지 않으므로 네트워크를 좀 도 효율적으로 운용가능하게 해준다.

서버모드: 서버모드에서 스위치는 VLAN에 대한 정보를 전송/전달 할 수 있고 새로은 VLAN을 생성할 수 있다.생성된 VLAN은 NVRAM에 저장된다.
클라이언트모드: 클라이언트모드에서 스위치는 VLAN에 대한 정보를 전송/전달 하지만 새로운 VLAN을 생성할 수 는 없다.또한 VLAN에 대한 정보도 저장하지 않는다.
투명모드(Transparent Mode): 투명모드에서 스위치는 VLAN에 대한 정보를 전달(Forward)만 하고 또한 새로운 VLAN을 생성 할 수 있다. 생성된 VLAN은 NVRAM에 저장된다.

트렁킹 방법

ISL(Inter-switch Link): 시스코의 독점적 프로토콜로 해당 패킷을 압축하는데 사용하지만 요즘에는 802.1Q를 많이 사용하고 있다.
802.1Q: 표준 트렁킹 방법으로 ISL의 압축방법이 아니고 패킷에 해더값을 추가하면서 통신하게 된다. 해당 정보는 다음과 같다.
  • 2바이트 프로토콜 아이디 (0x8100)
  • 3비트 사용자 우선순의 (CoS)
  • 1비트 인디케이터
  • 12비트 VLAN 아이디

Question 1) In a switched environment, what does the IEEE 802.1Q standard describe?

A. the operation of VTP
B. a method of VLAN trunking
C. an approach to wireless LAN communication
D. the process for root bridge selection
E. VLAN pruning

해설) 802.1Q와 ISL은 트렁킹 방법에 대한 내용이므로 B가 답이다.

Question 2) As a network technician, do you know which are valid modes for a switch port used as a VLAN trunk? (Choose three)

A. transparent
B. auto
C. on
D. desirable
E. blocking
F. forwarding

해설) auto, on, desirable은 트렁크 기능의 세가지 모드이다. 그냥 외우는게 낫겠다.

Question 3) Which IEEE standard protocol is initiated as a result of successful DTP completion in a switch over FastEthernet?

A. 802.3ad
B. 802.1w
C. 802.1Q
D. 802.1d

해설) 정확한 표현은 802.1Q이다.

Question 4) Which three of these statements regarding 802.1Q trunking are correct? (Choose three)

A. 802.1Q native VLAN frames are untagged by default.
B. 802.1Q trunking ports can also be secure ports.
C. 802.1Q trunks can use 10 Mb/s Ethernet interfaces.
D. 802.1Q trunks require full-duplex, point-to-point connectivity.
E. 802.1Q trunks should have native VLANs that are the same at both ends.

해설) 802.1Q는 보안과는 상관없으므로 B는 아니고 연결성을 필요로 하지 않으므로 D가 아니다.

Question 5) Which two of these are characteristics of the 802.1Q protocol? (Choose two)

A. It is a layer 2 messaging protocol which maintains vlan configurations across network.
B. It includes an 8-bit field which specifies the priority of a frame.
C. It is used exclusively for tagging vlan frames and does not address network reconvergence following switched network topology changes.
D. It modifies the 802.3 frame header and thus requires that the FCS be recomputed.
E. It is a trunking protocol capable of earring untagged frames.

해설) FCS는 Frame Check Sequence로 패킷해더가 20바이트가 넘어갈때 사용되는 값으로 802.1Q를 사용하게 되면 기본 헤더값과 다르므로 FCS가 재계산하게 된다. 그리고 역시 암호화하고는 상관없으므로 답은 D, E이다.
Posted by 구텐모르겐
IT 이야기2014. 12. 16. 07:08


지난강좌 : [CCNA][200-120] HSRP, VRRP 그리고 GLBP (1/36)

지난강좌 : [CCNA][200-120] SNMP (2/36)

지난강좌 : [CCNA][200-120] NetFlow (3/36)

지난강좌 : [CCNA][200-120] Syslog(4/36)

지난강좌 : [CCNA][200-120] OSI 7 레이어 & TCP/IP 레이어 (5/36)

지난강좌 : [CCNA][200-120] 시스코 IOS (6/36)

지난강좌 : [CCNA][200-120] WAN (7/36)


Q1) Refer to the exhibit
Switch-1# show mac address-table
Dynamic Address Count: 3
Secure Addressses (User-defined) Count: 0
Static Addresses (User-defined) Count: 0
System Self Addresses Count: 41
Total Mac Addresses: 50
Non-static Address Table:
Destination Address Address Typ VLAN Destination Port
001.0de0.e289 Dynamic 1 FastEthernet0/1
0010.7b00.1540 Dynamic 2 FastEthernet0/3
0010.7b00.1545 Dynamic 2 FastEthernet0/2
Switch-1 needs to send data to a host with a MAC address of 00b0.d056.efa4. What will Switch-1 do with this data?

A. Switch-1 will drop the data because it does not have an entry for that MAC address.
B. Switch-1 will forward the data to its default gateway.
C. Switch-1 will flood the data out all of its ports except the port from which the data originated.
D. Switch-1 will send an ARP request out all its ports except the port from which the data originated.

해설) 스위치가 찾는 맥어드레스가 없는 관계로 모든 스위치 포트에 해당 맥어드레스를 브로드캐스트 할 것이다. 그러므로 답은 C이다.

Q2) A switch is configured with all ports assigned to vlan 2 with full duplex FastEthernet to segment existing departmental traffic. What is the effect of adding switch ports to a new VLAN on the switch?

A. More collision domains will be created.
B. IP address utilization will be more efficient.
C. More bandwidth will be required than was needed previously.
D. An additional broadcast domain will be created.

해설) 새로운 vlan을 생성함으로 해서 브로드캐스트 도메인을 생성할 수 있게 된다. vlan이 레이어2에서 레이어3와 같이 네트워크를 나누어 주는 역할을 하므로 해당 vlan내에서 브로드캐스팅이 되게 된다. 추가로 collision domain은 스위치를 사용함으로써 호스트간의 충돌을 막을 수 있다.

Q3) The two connected ports on the switch are not turning orange or green. What would be the most effective steps to troubleshoot this physical layer problem? (Choose three)

A. Ensure that the Ethernet encapsulations match on the interconnected router and switch ports.
B. Ensure that cables A and B are straight-through cables.
C. Ensure cable A is plugged into a trunk port.
D. Ensure the switch has power.
E. Reboot all of the devices.
F. Reseat all cables.

해설) 불이 안들어 온다는 것은 물리적인 문제가 있다는 것으로 보고 물리적인 확인만 하면 되므로 B, D, F가 답이다.

Q4) What two results would occur if the hub were to be replaced with a switch that is configured with one Ethernet VLAN? (Choose two)

A. The number of collision domains would remain the same.
B. The number of collision domains would decrease.
C. The number of collision domains would increase.
D. The number of broadcast domains would remain the same.
E. The number of broadcast domains would decrease.
F. The number of broadcast domains would increase.

해설) 스위치로 장치를 바꿈으로써 각각의 호스트가 하나의 collion도메인이 되므로 collion 도메인은 늘어날 것이고 브로드캐스트 도메인은 vlan이나 아이피를 바꾸지 않는 이상 변하지 않는다. 그래서 답은 C,D이다.

Q5) Give this output for SwitchC, what should the network administrator’s next action be?
741 input errors, 739 CRC
A. Check the trunk encapsulation mode for SwitchC’s fa0/1 port.
B. Check the duplex mode for SwitchC’s fa0/1 port.
C. Check the duplex mode for SwitchA’s fa0/2 port.
D. Check the trunk encapsulation mode for SwitchA’s fa0/2 port.

해설) CRC는 Cycle Redundancy Check의 약자로 raw 데이타의 오류를 나타내는 값으로 보통 듀플렉스 모드가 맞지 않는 경우에 많이 발생한다. 해당 문제의 그림은 없지만 CRC에러는 fa0/1에서 발생했으며 상대방 스위치인 SwitchA의 fa0/2를 확인해야 한다. 그러므로 답은 C이다.

Q6) Which three statements accurately describe layer 2 Ethernet switches? (choose three)

A. Microsegmentation decreases the number of collisions on the network.
B. If a switch receives a frame for an unknown destination.it uses ARP to resolve the address.
C. Spanning Tree Protocol allows switches to automatically share vlan information.
D. In a properly functioning network with redundant switched paths, each switched segment will contain one root bridge with all its ports in the forwarding state. All other switches in that broadcast domain will have only one root port.
E. Establishing vlans increases the number of broadcast domains.
F. Switches that are configured with vlans make forwarding decisions based on both layer 2 and layer 3 address information.

해설) 세그먼트를 나눔으로써 (Microsegmentation) 패킷간 충돌을 피하게 된다. 그리고 한 네트워크에서 root port는 하나만 존재하고, vlan을 생성함으로 브로드캐스트 도메인이 생성되게 된다. 그러므로 답은 A, D, E이다.

Q7) Why will a switch never learn a broadcast address?

A. Broadcast frames are never sent to switches.
B. Broadcast addresses use an incorrect format for the switching table.
C. A broadcast address will never be the source address of a frame.
D. Broadcasts only use network layer addressing.
E. A broadcast frame is never forwarded by a switch.

해설) 브로드케스트 주소는 소스어드레스를 포함하지 않으므로 답은 C이다.
Posted by 구텐모르겐
IT 이야기2014. 12. 10. 06:24


지난강좌 : [CCNA][200-120] HSRP, VRRP 그리고 GLBP (1/36)

지난강좌 : [CCNA][200-120] SNMP (2/36)

지난강좌 : [CCNA][200-120] NetFlow (3/36)

지난강좌 : [CCNA][200-120] Syslog(4/36)

지난강좌 : [CCNA][200-120] OSI 7 레이어 & TCP/IP 레이어 (5/36)

지난강좌 : [CCNA][200-120] 시스코 IOS (6/36)



WAN은 Wide Area Network의 약자로 도시간, 지역간 혹은 나라간의 통신을 지원하는 네트워크를 말한다. 예전에는 토큰방식이나 frame-relay같은 문제가 많았다면 요즘에는 PPP나 DSL의 문제가 많이 출제된다.

Question 1) Which PPP subprotocol negotiates authentication options?
A. NCP
B. ISDN
C. SUP
D. LCP
E. DLCI

해설) PPP는 encapsulation component, Link Control Protocol (LCP), Network Control Protocol (NCP) 세가지의 컴포넌트를 가지고 있는데 이 중에 LC는 라우터간의 연결을 설정하고 테스트하는 역할을 한다. NCP는 네트워크 레이어에서 작동하고 설정된 값들의 적용에 사용되므로 답은 D 이다.

Question 2) A network administrator needs to configure a serial link between the main office and a remote location. The router at the remote office is a non-Cisco router. How should the network administrator configure the serial interface of the main office router to make the connection?
A. Main(config)# interface serial 0/0
Main(config-if)# ip address 172.16.1.1 255.255.255.252
Main(config-if)# no shut
B. Main(config)# interface serial 0/0
Main(config-if)# ip address 172.16.1.1 255.255.255.252
Main(config-if)# encapsulation ppp
Main(config-if)# no shut
C. Main(config)# interface serial 0/0
Main(config-if)# ip address 172.16.1.1 255.255.255.252
Main(config-if)# encapsulation frame-relay
Main(config-if)# authentication chap
Main(config-if)# no shut
D. Main(config)# interface serial 0/0
Main(config-if)#ip address 172.16.1.1 255.255.255.252
Main(config-if)#encapsulation ietf
Main(config-if)# no shut

해설) encapsulation은 HDLC, PPP, SLIP등의 방법이 있고 아이피를 설정후에 encapsulation을 설정해 주므로 이기종간의 통신이 가능한 B가 답이다.

Question 3) Which two options are valid WAN connectivity methods? (Choose two)
A. PPP
B. WAP
C. DSL
D. L2TPv3
E. Ethernet

해설) WAN 구간에서의 통신방법은 PPP, DSL HDLC, MPLS, ATM 그리고 Frame Relay의 방법이 있다.

Question 4) Which Layer 2 protocol encapsulation type supports synchronous and asynchronous circuits and has built-in security mechanisms?
A. HDLC
B. PPP
C. X.25
D. Frame Relay

해설) 동기식(synchronous)과 비동기식(asynchoronous) 방식을 지원하는 B가 답이다.

Question 5) Which command is used to enable CHAP authentication with PAP as the fallback method on a serial interface?
A. (config-if)# authentication ppp chap fallback ppp
B. (config-if)# authentication ppp chap pap
C. (config-if)# ppp authentication chap pap
D. (config-if)# ppp authentication chap fallback ppp

해설) 답은 C이고 그냥 외워야할 문제다. 실제 설정할때에는 양쪽 라우터 모두에서 같은 인증방식이 사용해야 됨을 잊지 말자.

Question 6) Which of the following describes the roles of devices in a WAN? (Choose three.)
A. A CSU/DSU terminates a digital local loop
B. A modem terminates a digital local loop
C. A CSU/DSU terminates an analog local loop
D. A modem terminates an analog local loop
E. A router is commonly considered a DTE device
F. A router is commonly considered a DCE device

해설) CSU/DSU 는 Channel Service Unit/Data Service Unit로 Data Terminal Equipment (DTE)장비로 연결을 위한 디지탈 디바이스이다. 딱히 설명을 할 수 없고 그냥 열심히 외우자.

Question 7) Which two statements about using the CHAP authentication mechanism in a PPP link are true? (Choose two)
A. CHAP uses a two-way handshake.
B. CHAP uses a three-way handshake.
C. CHAP authentication periodically occurs after link establishment.
D. CHAP authentication passwords are sent in plaintext.
E. CHAP authentication is performed only upon link establishment.
F. CHAP has no protection from playback attacks.

해설) Challenge-Handshare Authentication Protocol의 약자로 사용자나 네트워크에 대한 권한설정을 담당한다. three-way handshake를 통해 세션을 맺고 해당 새션을 주기적으로 확인한다.


Posted by 구텐모르겐
IT 이야기2014. 6. 13. 23:57


지난강좌 : [CCNA][200-120] HSRP, VRRP 그리고 GLBP (1/36)

지난강좌 : [CCNA][200-120] SNMP (2/36)

지난강좌 : [CCNA][200-120] NetFlow (3/36)

지난강좌 : [CCNA][200-120] Syslog(4/36)

지난강좌 : [CCNA][200-120] OSI 7 레이어 & TCP/IP 레이어 (5/36)


시스코 IOS

애플의 운영체제가 IOS이고 시스코의 운영체제도 IOS이다 보니 제목을 '시스코 IOS'로 적었다. 시스코 장비들은 기본적으로 4개의 메모리 시스템을 가지고 있다.

  • 비휘발성 메모리(Read-Only Memory: ROM): 비휘발성 메모리 즉 ROM은 'bootstrap startup program' 즉 시스템의 시작 프로그램과 'power-on diagnostic test program' 테스트 프로그램들이 들어 있다.  
  • 플래시 메모리(Flash Memory): IOS 이미지 파일이 들어 있는 메모리이고 쓰고 지우기가 가능하다.
  • 휘발성 메모리(Random Access Memory: RAM): 'running configure'가 저장되어 있고 실행가능한 정보들이 들어 있다. 시스템이 부팅시에 ROM에서 RAM으로 불러와서 로드시키고 전원이 꺼지면 정보는 잃어버리게 된다.
  • Non-Volatile Memory (NVRAM): 'startup configure' 관련 정보가 들어 있고 전원이 꺼져도 없어지지 않는다.



위 화면은 POST 화면으로 시스템을 테스트하는 과정이다.




위 화면은 플래시 메모리에서 IOS를 불러와서 압축해제하는 과정이다.



위 화면은 IOS를 실행하는 과정을 보여주고 있다. NVRAM은 191K이고, 플래시 메모리는 63488K이고, 16384K가 RAM(114688K 사용)인것을 알 수 있다. IOS 버전은 12.4(15)T1임을 보여주고 있다. 지금까지는 모두 'startup configure'이지 RAM에서 실행되는 것은 아무 것도 없다. 시스코 장비에 전원을 연결하면 일반적으로 나타나는 과정으로 IOS를 통해 시스템이 부팅되는 것을 볼 수 있다. 


Q1) Which command encrypts all plaintext passwords?

A. Router# service password-encryption
B. Router(config)# password-encryption
C. Router(config)# service password-encryption
D. Router# password-encryption


해설) 장비에 설정값을 지정해 줄때에는  항상 '(config)' 모드이여야 하고 해당 서비스 명령어는 C가 답이다.


Q2) What can be done to secure the virtual terminal interfaces on a router? (Choose two)

A. Administratively shut down the interface.
B. Physically secure the interface.
C. Create an access list and apply it to the virtual terminal interfaces with the access-group command.
D. Configure a virtual terminal password and login process.
E. Enter an access list and apply it to the virtual terminal interfaces using the access-class command.


해설) A는 해결책이 아니고, B는 물리적인 보안은 네트워크 상에서는 큰 의미가 없다. access-list는 물리적 장비에 대한 보안이므로 가상터미널로 접근하는 연결의 보안을 보장해주지는 않는다.

 

Q3) Refer to the exhibit. Why is flash memory erased prior to upgrading the IOS image from the TFTP server?


Router# copy tftp flash
Address or name of remote host []? 192.168.2.167
Source filename []? c1600-k8sy-mz.123-16a.bin
Destination filename [c1600-k8sy-mz.123-16a.bin]?
Accessing tftp://192.168.2.167/ c1600-k8sy-mz.l23-16a.bin…
Erasing flash before copying? [confirm]
Erasing the flash filesystem will remove all files! continue? [confirm]
Erasing device
Eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee
Eeeeeeeeeeeeeeeeeeeeeeeeeeeeeee …erased
Erase of flash: complete
Loading c1600-k8sy-mz.l23-16a.bin from 192.168.2.167 (via Ethernet0):
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
[OK - 6888962/13777920 bytes]

verifying checksum… OK (0x7BF3)
6888962 bytes copied in 209.920 secs (32961 bytes/sec)
Router#

A. The router cannot verify that the Cisco IOS image currently in flash is valid
B. Flash memory on Cisco routers can contain only a single IOS image.
C. Erasing current flash content is requested during the copy dialog.
D. In order for the router to use the new image as the default, it must be the only IOS image in flash.


해설) 로그를 보면 'Erasing flash before copying? [confirm]'이라고 되어 있으므로 지우는 건데, 이게 왜 문제로 나왔는지 모르겠다. 그냥 보너스 점수로 생각하자.


Q4) How does using the service password encryption command on a router provide additional security?

A. by encrypting all passwords passing through the router
B. by encrypting passwords in the plain text configuration file
C. by requiring entry of encrypted passwords for access to the device
D. by configuring an MD5 encrypted key to be used by routing protocols to validate routing exchanges
E. by automatically suggesting encrypted passwords for use in configuring the router


해설) 패스워드 암호화하는 것은 침입자가 NVRAM에 접근한다해도 패스워드를 식별할 수 없게 하는게 목적이다. 그러므로 B가 답이 되겠다.


Q5) What is a global command?

A. a command that is available in every release of IOS, regardless of the version or deployment status
B. a command that can be entered in any configuration mode
C. a command that is universal in application and supports all protocols
D. a command that is implemented in all foreign and domestic IOS versions
E. a command that is set once and affects the entire router

 

해설) 'Hostname(config)#'로 나오는 화면이 global command이고 여기에서 정의된 모든 명령어들은 모든 인터페이스에 적용된다. 정의이므로 그냥 외우자.


Q6) Refer to the exhibit.

line vty 0 4
password 7 030752180599
login
transport input ssh

What is the effect of the configuration that is shown?
A. It configures SSH globally for all logins.
B. It tells the router or switch to try to establish an SSh connection first and if that foils to use Telnet.
C. It configures the virtual terminal lines with the password 030752180500.
D. It configures a Cisco network device to use the SSH protocol on incoming communications via the virtual terminal ports.
E. It allows seven failed login attempts before the VTY lines are temporarily shutdown.


해설) 'line vty 0 4'는 가상터미널 0부터 4까지에 대한 설정을 이야기 한다. 'password 7 030752180599'는 패스워드가 보안레벨 7로 적용된 것을 알 수 있고 연결은 'transport input ssh'이므로 ssh로 연결을 이루게 된다. globally하게 적용된게 아니므로 A는 패스, Telnet과 연동하지 않으므로 B도 패스, 'password 7'은 암호화했다는 뜻이므로 뒤의 숫자는 패스워드가 아니므로 C도 패스, E는 연관성없는 얘기므로 패스, 그러므로 답은 D이다.


Q7) Which router IOS commands can be used to troubleshoot LAN connectivity problems? (Choose three)

A. ping
B. tracert
C. ipconfig
D. show ip route
E. winipcfg
F. show interfaces


해설) 'tracert', 'ipconfig', 'winipcfg' 모두 윈도우용 명령어이므로 틀렸다. 


Q8) Which command shows your active Telnet connections?

A. show sessions
B. show cdp neighbors
C. show users
D. show queue

 

해설) 정의이므로 그냥 외우자.


Q9) Which command would you configure globally on a Cisco router that would allow you to view directly connected Cisco devices?

A. enable cdp
B. cdp enable
C. cdp run
D. run cdp


해설)  CDP는 Cisco Discovery Protocol의 명령어로 MAC 어드레스와 연결된 인터페이스 정보를 보여준다.


Q10) A network administrator needs to allow only one Telnet connection to a router. For anyone viewing the confguration and issuing the show run command, the password for Telnet access should be encrypted. Which set of commands will accomplish this task?

A. service password-encryption
access-list 1 permit 192.168.1.0 0.0.0.255
line vty 0 4
login
password cisco
access-class 1

B. enable password secret
line vty 0
login
password cisco

C. service password-encryption
line vty 1
login
password cisco

D. service password-encryption
line vty 0 4
login
password cisco


해설) 패스워드 암호화와 가상 콘솔의 설정은 C가 맞다.

 

Q11) What is the effect of using the service password-encryption command?

A. Only passwords configured after the command has been entered will be encrypted.
B. Only the enable password will be encrypted.
C. Only the enable secret password will be encrypted
D. It will encrypt the secret password and remove the enable secret password from the configuration.
E. It will encrypt all current and future passwords.


해설) 'service password-encryption'명령어는 모든 패스워드를 암호화 시키므로 E가 답이다.

Posted by 구텐모르겐
IT 이야기2014. 6. 12. 04:36


지난강좌 : [CCNA][200-120] HSRP, VRRP 그리고 GLBP (1/36)

지난강좌 : [CCNA][200-120] SNMP (2/36)

지난강좌 : [CCNA][200-120] NetFlow (3/36)

지난강좌 : [CCNA][200-120] Syslog(4/36)

 OSI 7 레이어 & TCP/IP 레이어


OSI 7 레이어 OSI 7 계층모형이라고 하는 이 모델은 모든 네트워크 통신의 규약으로 7개의 레이어로 나누어 놓고 각 레이어당 기능을 구분시켜 놓은 프로토콜이며 각 계층은 하위 계층의 기능만을 이용하고, 상위 계층에게 정보를 제공한다.

  • 물리 계층 (Physical Layer): 말 그대로 물리적으로 연결되는 모든 장치들의 세부사항들을 정의 한다. 또한 네트워크상에서 데이터 비트를 전송하는 계층으로써 상위 계층인 데이터 링크 계층 (Data Link Layer)간 비트전송을 위한 물리적 연결을 설정, 유지, 그리고 해제하기 위한 방법을 제공한다. 허브 (리피터), 스카시 장비들과 모든 물리적인 연결도구들이 이에 해당된다.
    1. 예: Connection, Voltage level, Timing, FDDI
  • 데이터 링크 계층 (Data Link Layer): 데이터 링크 계층 (Data Link Layer)은 단대단(Point to Point) 간 신뢰성있는 전송을 보장하기 위한 네트워크 계층 (Network Layer)의 개체들 간 데이터를 전달하고, 물리 계층 (Physical Layer)에서 발생할 수 있는 오류를 찾아 내고 수정한다. 주소 값은 맥주소(MAC address)를 통해 통신하게 되고 데이터 링크 계층의 가장 잘 알려진 예는 이더넷이다. 이 외에도 HDLC, ADCCP, 패킷 스위칭 네트워크, LLC, ALOHA, 네트워크 브릿지, 그리고 스위치 등이 이 계층에서 동작한다.
    1. LLC and MAC, frame, Error Control, Flow control, HDLC, PPP, Frame Relay
  • 네트워크 계층(Network Layer): 네트워크 계층은 다양한 데이터를 네트워크 장비들을 통해 전달하고, 그 과정에서 전송 계층(Transport Layer)이 요구하는 서비스 품질(QoS) 을 제공하기 위한 기능을 제공한다. 네트워크 계층은 라우팅, 흐름 제어, 세그멘테이션(segmentation/desegmentation), 오류 제어, 인터네트워킹(Internetworking) 등을 수행하며 네트워크 서비스 데이터 유닛(NSDU : Network Service Data Unit)을 교환하는 기능을 제공한다.

    1. IP or logical address
  • 전송 계층 (Transport Layer): 전송 계층은 양단간의 사용자들이 데이터를 주고 받을때 신뢰성을 제공해주어 상위 계층들이 데이터 전달의 효율성을 높여준다. 가장 잘 알려진 전송 계층의 예는 TCP이며 신뢰성 있고 효율적인 데이터를 전송하며 오류검출 및 복구와 흐름제어 등을 수행한다.
    1. TCP, UDP
  • 세션 계층 (Session Layer): 세션 계층은 양단간의 프로그램들이 통신을 관리하기 위한 방법을 제공한다. 동시 송수신 방식(duplex), 반이중 방식(half-duplex), 전이중 방식(Full Duplex)의 통신과 함께, 체크 포인팅과 유휴, 종료, 다시 시작 과정 등을 수행한다. 

    1. SQL, RPC, NETBIOS names
  • 표현 계층 (Presentation Layer): 표현 계층은 사용자 시스템에서 데이터의 포맷을 일관화 시켜준다. MIME 인코딩이나 암호화 등의 동작이 이 계층에서 이루어지고 EBCDIC로 인코딩된 문서 파일ASCII로 인코딩된 파일로 바꿔 주는 것 또한 이 표현 계층의 몫이다.
    1. Jpeg, PNG, Gif, Video (WMV, AVI…), Bitmap (JPG, BMP, PNG…), Audio (WAV, MP3, WMA…)
  • 응용 계층 (Application Layer): 응용 계층은 일반적인 응용 서비스를 수행한다. 응용 서비스의 예로, 가상 터미널(예를 들어, 텔넷), "Job transfer and Manipulation protocol" (JTM, 표준 ISO/IEC 8832) 등이 있다.
    1. SMTP, Telnet, FTP, HTTP



또한 TCP/IP는 위의 표와 같이 4개의 계층으로 나뉘는데 OSI 계층을 간략하게 표현한 것으로 보면 된다.



위는 Wireshark로 구글과 통신하는 패킷을 잡은 것이다. 첫째줄에서 보이는게 'Frame'과 'Ethernet' 즉 데이터 링크 계층이고, 세번째의 IP가 네트워크 계층, User Datagram Protocol이 통신 계층이다. (UDP가 오류수정을 하지 않으므로 네트워크 계층으로 분류하는 책들도 있지만 편의상 TCP와 같이 통신 계층으로 분류하겠다). 그리고 마지막으로 Hypertext Transfer Protocol로써 응용 계층이 되겠다.


Q1) Where does routing occur within the DoD TCP/IP reference model?

A. application
B. internet
C. network
D. transport


해설) 위의 표에서 보면 TCP/IP의 Internet Layer는 OSI 7 계층의 네트워크 계층과 같은 위치에 있다. 라우팅(routing)은 네트워크 계층에서 이루어 지므로 답은 B이다.



Q2) Refer to exhibit.

Router#show running-config
Building configuration…
Current configuration : 659 bytes
!
version 12.4
no service timestamps log datetime msec
no service timestamps debug datetime msec
service password-encryption
!
hostname Router
!
enable secret 5 $1$mERr$hx5rVt7rPNoS4wqbXKX7m0
!
interface FastEthernet0/0
ip address 192.168.1.1 255.255.255.0
ip access-group 101 in
duplex auto
speed auto
!
access-1ist 101 deny tcp any any eq 22
access-1ist 101 permit ip any any
!
line con 0
password 7 0822455D0A16
login
line vty 0 4
login
line vty 5 14
login
!
end

A network administrator cannot establish a Telnet session with the indicated router. What is the cause of this failure?

A. A Level 5 password is not set.
B. An ACL is blocking Telnet access.
C. The vty password is missing.
D. The console password is missing.


해설) 'enable secret 5 $1$mERr$hx5rVt7rPNoS4wqbXKX7m0'이 level 5로 설정되어 있고, ACL은 ssh(port 22)를 막고 있고, 'line con 0
password 7 0822455D0A16'이므로 답은 C이다.


Q3) Before installing a new, upgraded version of the IOS, what should be checked on the router, and which command should be used to gather this information? (Choose two)

A. the amount of available ROM
B. the amount of available flash and RAM memory
C. the version of the bootstrap software present on the router
D. show version
E. show processes
F. show running-config


해설) IOS 는 flash메모리로 저장되므로 저장공간이 넉넉한지 확인해야 하고 해당 정보는 'show version'을 통해 확인할 수 있다.


Q4) Refer to the exhibit. An administrator pings the default gateway at 10.10.10.1 and sees the output as shown. At which OSI layer is the problem?

C:\> ping 10.10.10.1
Pinging 10.10.10.1 with 32 bytes of data:
Request timed out.
Request timed out.
Request timed out.
Request timed out.
Ping statistics for 10.10.10.1:
Packets: sent – 4, Received = 0, Lost – 4 (100% loss)

A. data link layer
B. application layer
C. access layer
D. session layer
E. network layer


해설) ping은 IP를 통해 움직이므로 네트워크 계층이므로 답은 E이다.


Q5) At which layer of the OSI model does PPP perform?

A. Layer 2
B. Layer 3
C. Layer 4
D. Layer 5


해설) PPP는 데이터 링크 계층이다.


Q6) Which of the following correctly describe steps in

the OSI data encapsulation process? (Choose two)

A. The transport layer divides a data stream into segments and may add reliability and flow control information.
B. The data link layer adds physical source and destination addresses and an FCS to the segment.
C. Packets are created when the network layer encapsulates a frame with source and destination host addresses and protocol-related control information.
D. Packets are created when the network layer adds Layer 3 addresses and control information to a segment.
E. The presentation layer translates bits into voltages for transmission across the physical link.


해설) 'flow control은 전송 계층(Transport Layer)에서 이루어 진다. 'segment'는 전송계층이므로 B는 틀리다. 데이터링크 레이어가 'frame을 전송하므로 C는 틀리다. 'voltage'는 물리 계층(Physical Layer)이므로 E도 답이 아니다.


Q7) A network administrator is verifying the configuration of a newly installed host by establishing an FTP connection to a remote server. What is the highest layer of the protocol stack that the network administrator is using for this operation?

A. application
B. presentation
C. session
D. transport
E. internet
F. data link


해설) 'FTP' 같은 응용프로그램은 응용 계층이다.


Q8) At which layer of the OSI model is RSTP used to prevent loops?

A. data link
B. network

C. physical
D. transport


해설) RSTP는 Rapid Spanning Tree Protocol로써 스위치에서 사용되는 프로토콜로 데이터 링크 레이어다.


Q9) Which layer in the OSI reference model is responsible for determining the availability of the receiving program and checking to see if enough resources exist for that communication?

A. transport
B. network
C. presentation
D. session
E. application


해설) 프로그램은 응용 계층(Application Layer)에서 이루어진다.


Q10) A receiving host computes the checksum on a frame and determines that the frame is damaged. The frame is then discarded. At which OSI layer did this happen?

A. session
B. network
C. physical
D. data link
E. transport


해설) 'frame'은 데이터 링크 계층(Data Link Layer)에서 이루어진다.

Posted by 구텐모르겐
IT 이야기2014. 6. 4. 23:48


지난강좌 : [CCNA][200-120] HSRP, VRRP 그리고 GLBP (1/36)

지난강좌 : [CCNA][200-120] SNMP (2/36)

지난강좌 : [CCNA][200-120] NetFlow (3/36)


시스로그 (Syslog)


만약 여러분이 네트워그 관리자라면 모든 시스템의 세팅이 완료된 후에 가장 먼저 할 일은 시스템이 문제가 생겼을때 그것을 알려주는 알람시스템일 것이고 시스로그 (Syslog)는 여러분의 시스템에 훌륭한 알람시스템역할을 할 것이고 또한 이 시스로그는 거의 모든 시스템에 사용되는 툴이기도 할만큼 대중적인 툴이기도 하다.


시스로그 (Syslog)는 UDP 514 포트로 통신하고 기본적으로 시스코의 모든 라우터와 스위치는 'logging'명령어를 통해 시스로그를 생성하게 된다. (열외지만 kiwi syslog가 가장 널리 쓰이는 무료 시스로그 서버툴이다)


시스로그의 문장은 다음과 같이 구성된다.


seq no:timestamp%FACILTY-SEVERITY-MNEMONIC: message text


  1. seq no: 순서번호
  2. Timestamp: 시간
  3. FACILITY: 프로토콜, 모듈, 프로세스등 시스로그를 생성한 메세지를 보여준다.
  4. SEVERITY: 중요도를 나타내고 Level 0은 가장 심각한 상황을 나타내고 Level 7은 시스템의 변경이 이루어 졌을때 나타나는 메세지이다.
  5. MNEMONIC: 어떠한 상태인지 알려주는 로그이다.
  6. message text: 현재 어떠한 상황인지를 문장으로 알려준다.

장비에서 발생한 로그를 보내려면 아래의 명령어를 통해 로그를 생성하고 해당 아이피에서 받아 볼 수 있다. (해당 아이피에서 로그서버가 작동하고 있어야 한다) logging trap 4는 Level 0-4까지의 로그만 보내라는 뜻이다.


Router(config)#logging 10.10.10.150
Router(config)#logging trap 4


자 그럼 시스로그와 관련된 문제를 알아보자.


Q1) What are the popular destinations for Syslog messages to be saved?


A. Flash
B. The logging buffer RAM
C. The console terminal
D. Other terminals
E. Syslog server


해설) 장비에서 생성된 로그는 RAM에 저장되게 되고 콘솔과 시스로그 서버로 전송되게 된다.


Q2) Syslog was configured with a level 3 trap. Which 3 types of logs would be generated (choose four)


A. Emergencies
B. Alerts
C. Errors

D. Warnings
E. Critical


해설) trap 3는 emergencies(0), alerts(1), critical(2), error(3)이다. 참고로 4-7은 warning(4), notification(5), information(6), debugging(7)이다.



Q3) Which three statements about Syslog utilization are true? (Choose three)


A. Utilizing Syslog improves network performance.
B. The Syslog server automatically notifies the network administrator of network problems.
C. A Syslog server provides the storage space necessary to store log files without using router disk space.
D. There are more Syslog messages available within Cisco IOS than there are comparable SNMP trap messages.

E. Enabling Syslog on a router automatically enables NTP for accurate time stamping.
F. A Syslog server helps in aggregation of logs and alerts.


해설) 시스로그는 로그를 생성하지 시스템의 성능을 향상시키지는 않으므로 A는 아니고 자동으로 관리자에게 알려주는게 아니라 시스로그에서 수집된 로그로 관리자가 분석해야 하므로 B는 아니다. NTP (Network Time Protocol)은 수동으로 설정해 줘야 하므로 E는 답이 아니다.


Q4) What command instructs the device to timestamp Syslog debug messages in milliseconds?


A. service timestamps log datetime localtime
B. service timestamps debug datetime msec
C. service timestamps debug datetime localtime
D. service timestamps log datetime msec


해설) 단순암기 문제이므로 단순하게 외워주자


Q5) What is the default Syslog facility level?


A. local4
B. local5
C. local6
D. local7


해설) 걍 외우자


Q6) A network administrator enters the following command on a router: logging trap 3. What are three message types that will be sent to the Syslog server? (Choose three)


A. informational
B. emergency
C. warning
D. critical
E. debug
F. error


해설) Q2와 같은 문제로 logging trap 3이므로 Level 0-3까지의 레벨을 찾으면 된다. 이 8개의 레벨은 항상 나오는 꽁짜 점수이므로 꼭 외우고 들어가도로고 하자.

Posted by 구텐모르겐
IT 이야기2014. 6. 2. 22:55


지난강좌 : [CCNA][200-120] HSRP, VRRP 그리고 GLBP (1/36)


SNMP (Simple Network Management Protocol)


말 그대로 네트워크 상에서 간단히 네트워크장비들을 관리하는 역할을 하는 프로토콜이다. 인터넷 표준 프로토콜로 서버, 라우터, 스위치 등 모든 장비들과 통신에 사용되며, 시스템의 전반적인 관리를 하게 된다. 어플리케이션 레이어 단에서 실행되고 (Layer 7) UDP 포트 161번으로 에이전트가 통신하고 162번으로 SNMP 매니지먼트가 통신한다. SNMP 자체는 많은 정보를 전송하지 않지만 MIB (Management Information Base)를 통해서 데이타 타입을 구분하게 된다. 구분된 데이타 타입은 프로세싱, 메모리 사용량, 입력/출력율 등 많은 정보를 SNMP 매니지먼트로 전송하게 된다.


Q1) Which three are the components of SNMP? (Choose three)

A. MIB
B. SNMP Manager
C. SysLog Server
D. SNMP Agent


해설) Syslog Server는 SNMP에서 생성된 로그를 저장하는 곳으로 SNMP의 역할은 아니다.


Q2) Which protocol can cause overload on a CPU of a managed device?


A. Netflow
B. WCCP
C. IP SLA
D. SNMP


해설) managed device라는 면은 SNMP를 사용한다는 걸 알 수 있다.


Q3) What is the alert message generated by SNMP agents called ?


A. TRAP
B. INFORM

C. GET
D. SET


해설) SNMP v1에서는 Trap이 사용되었고 v2가 되면서 Inform을 이용해 추가적인 정보를 보내게 된다. SNMP 에이전트는 Trap과 Inform을 통해 정보를 매니지먼트로 보내고 되고 많은 차이점은 없으므로 그냥 외우자.


Q4) Which three features are added in SNMPv3 over SNMPv2?


A. Message Integrity
B. Compression
C. Authentication
D. Encryption
E. Error Detection


해설)


SNMP v1: 초기 프로토콜로 암호화하지 않는다.

SNMP v2: 암호화하지 않는것은 같지만 community string을 이용한다는 점에서 v1과 다르다.

SNMP v3: 에이전트와 매니지먼트간의 통신을 암호화 한다.

SNMP는 UDP를 이용하므로 Error Detection할 수 없고 압축기능하고도 상관 없다.


Q5) Which three statements about the features of SNMPv2 and SNMPv3 are true? (Choose three)


A. SNMPv3 enhanced SNMPv2 security features
B. SNMPv3 added the Inform protocol message to SNMP.
C. SNMPv2 added the Inform protocol message to SNMP.
D. SNMPv3 added the GetBulk protocol messages to SNMP.
E. SNMPv2 added the GetBulk protocol message to SNMP.
F. SNMPv2 added the GetNext protocol message to SNMP.


해설) GetBulkRequest는 PDU(Processing Data Unit)이 허락하는 한도 내에서 최대한의 정보를 보내주는 것을 가능케 한다. Inform기능은 v2부터 제공된 기능으로 답은 A, C, E가 되겠다.


Posted by 구텐모르겐
IT 이야기2014. 5. 30. 23:01


HSRP(Hot Standby Router Protocol)


시스코에서 제공하는 네트워크 이중화 프로토콜중 하나이며 하나의 장비에서 문제가 발생했을때 나머지 장비들이 작업을 수행하는 역할(fault-tolerance)을 한다.


네트워크 상에서 하나의 라우터를 메인으로 놓고 해당 라우터가 문제가 발생했을때 스탠바이 하고 있던 다른 라우터가 메인 라우터의 역할을 하게 된다. UDP 1985포트를 통해 다른 HSRP가 설정된 라우터들과 통신하면서 라우터간의 우선순위(priority)를 확인하게 된다. 멀티캐스트로 헬로메세지를 224.0.0.2(HSRP ver. 1) 혹은 224.0.0.102(HSRP ver. 2)로 보낸다. 메인 라우터는 하나의 가상 아이피를 게이트웨이로 가지게 되고 가상의 맥어드레스 0000.0C07.ACxx (HSRP ver. 1) 혹은 0000.0C9F.FXXX (HSRP ver. 2)를 가지게 된다. 메인 라우터는 가장 우선순위(높은 숫자)를 가지게 되고 문제가 생겼을때 두번째로 높은 숫자를 가진 라우터가 역할을 대신하게 된다.


그러면 CCNA 시험에서는 어떻게 문제가 출제되는지 보자.


Q1) Which one of these is a valid HSRP Virtual MAC Address?

A. 0000.0C07.AC01

B. 0000.5E00.0110

C. 0007.B400.1203

D. 0000.C007.0201


해설) HSRP ver. 1은  0000.0C07.ACxx 이고 HSRP ver. 2는 0000.0C9F.FXXX인데 ver. 2의 맥어드레스가 예문에 없으므로 A가 답이다. 참고로 xx는 아무문자(혹은 숫자)가 올수 있다는 표현이다.


Q2) Which three statements about HSRP operation are true? (Choose three)

A. The virtual IP address and virtual MAC address are active on the HSRP Master router.

B. The HSRP default timers are a 3 second hello interval and a 10 second dead interval.

C. HSRP supports only clear-text authentication.

D. The HSRP virtual IP address must be on a different subnet than the router's interfaces on the same LAN.

E. The HSRP virtual IP address must be the same as one of the router's interface addresses on the LAN.

F. HSRP supports up to 255 groups per interface, enabling an administrative form of load balancing.


해설) HSRP는 포워딩 역할만 하는 프로토콜로 authentication과는 관계 없다. 그러므로 C는 아니고, Virtual IP는 같은 subnet에 있어도 되고 없어도 되므로 D, E는 제거한다.


VRRP(Virtual Router Redundancy Protocol)


HSRP와는 다르게 가상의 라우터가 실제 라우터들의 중간 역할을 하게 된다. 그러므로 몇개의 가상 라우터를 설정할 수 있다는 장점이 있다. VRRP는 하나의 서브넷으로만 통신이 가능하고 서브넷간의 통신은 불가능하다. 맥어드레스는 0000.5E00.01XX를 사용하고 마지막 두 XX는 VRID (Virtual Router IDentifier)로 사용된다. 가상라우터와 실제 라우터간은 224.0.0.18로 통신하고 헬로우 메세지를 주고 받게 되고 우선순위에 의해 라우팅할 라우터가 결정되게 된다.


Q3) Which statement describes VRRP object tracking?

A. It monitors traffic flow and link utilization.
B. It ensures the best VRRP router is the virtual router master for the group.
C. It causes traffic to dynamically move to higher bandwidth links
D. It thwarts man-in-the-middle attacks.

해설) HSRP는 인터페이스를 직접 연결되는 것과 달리 VRRP는 'object tracking'이라는 기능을 이용해 라우터를 트랙하게 된다. 


GLBP (Gateway Load Balancing Protocol)


시스코에서 개발한 프로토콜로 HSRP에 로드밸런스 기능을 추가한 것으로 보면 된다.


Q4) In GLBP, which router will respond to client ARP requests?

A. The active virtual gateway will reply with one of four possible virtual MAC addresses.
B. All GLBP member routers will reply in round-robin fashion.
C. The active virtual gateway will reply with its own hardware MAC address.
D. The GLBP member routers will reply with one of four possible burned in hardware addresses.

해설) HSRP와 VRRP는 하나의 라우터만 작동을 하고 나머지는 대기해야 하는 반면에 GLBP는 많게는 4개까지 함께 운영이 가능하다. 하나의 가상 라우터에 4개의 가상 맥어드레스를 통해 통신을 한다. 


Q5) In a GLBP network, who is responsible for the arp request?

A. AVF
B. AVG
C. Active Router
D. Standby Router

해설) Active Virtual Gateway의 약자로 호스트로부터의 ARP요청에 답하는 역할을 한다.


Q6) What are three benefits of GLBP? (Choose three)

A. GLBP supports up to eight virtual forwarders per GLBP group.
B. GLBP supports clear text and MD5 password authentication between GLBP group members.
C. GLBP is an open source standardized protocol that can be used with multiple vendors.
D. GLBP supports up to 1024 virtual routers.
E. GLBP can load share traffic across a maximum of four routers.

F. GLBP elects two AVGs and two standby AVGs for redundancy.


해설) AVF(Active Virtual Forwarder)는 한번에 4개까지 포워드가 가능하다. 그러므로 A는 아니고, 시스코가 개발한 것으로 C도 아니다. F는 GLBP와 맞지 않는 얘기다.

Posted by 구텐모르겐