본문 바로가기

Ryu's Tech

VTP in detail


기본적인 VTP에 대한 설명은 생략하고 몇몇 부분만 체크할 것입니다.


  • 새 장비가 아닌 스위치를 다른 네트워크에 연결할 시에는 꼭 Revision Number를 0으로 설정하여야 한다.
    잘못된 VLAN Database가 전파될 수 있기 때문이다.
    Revision Number를 0으로 바꾸려면 아래와 같이 하면 된다.
    • VTP Mode를 Transparent로 바꾼뒤 다시 Server나 Client로 바꾼다.
    • VTP Domain을 임의의 Domain으로 변경한다.






 

  • VTP 의 광고는 세가지로 나눌 수 있다.
    • Summary Advertisements
      • VTP Server는 Summary Advertisement를 300초마다 보내고, VTP Database에 변화가 있을 때 보낸다.
      • VTP version, domain name, configuration revision number, time stamp, MD5 encryption hash code, and the number of subset advertisements

    • Subnet Advertisements
      • VLAN 추가 삭제, VLAN 동작중지, Name 변경, VLAN의 MTU 변경 등의 동작이 있을 때 보내진다.
      • status of the VLAN, VLAN type (such as Ethernet or Token Ring), MTU, length of the VLAN name, VLAN number, security association identifier (SAID) value, VLAN names



    • Advertisement requests from clients
      • 클라이언트의 요청에 의한 Advertisement이다. 클라이언트가 일부 VLAN 정보가 부족하다고 여겨지면 request를 보낼 수 있다. 예를들어 스위치가 재부팅 되었을 시에 VLAN 데이터가 지워지고, VTP 도메인이 변경되었다면, 이를 통해 VTP server는 이에 대한 정보를 보내준다.


 

  • server mode의 Catalyst 스위치는 VTP 정보를 별도로 NVRAM에 저장한다. VLAN과 VTP Data는 스위치의 flash memory에 vlan.dat 파일로 저장된다. Client 모드도 똑같이 VTP Information을 저장한다.
    • VTP revision number를 포함한 모든 VTP 정보를 저장한다.

 






 

  • VTP Version 1 and 2
    • Version-Dependent Transparent Mode
      • Transparent 모드에서 다른 스위치로 정보를 전달하기 전에 VTP version 1은 VTP 버전과 domain name을 맞춘다.
      • VTP version 2 는 버전 체크 없이 보낸다. 왜냐하면 하나의 스위치에는 하나의 VTP 도메인만 존재할수 있으므로, 도메인 네임은 체크할 필요가 없기 때문에다.
        • 그대로 해석했는데 내용이 이상하네요 ㅡㅡ;
          VTP version 2 in transparent mode forwards the VTP messages without checking the version number. Because only one domain is supported in a switch, the domain name doesn’t have to be checked.
    • Consistency Checks [ 밀도 체크 ? ]
      • VTP version 2 performs consistency checks on the VTP and VLAN parameters entered from the command-line interface (CLI) or by the Simple Network Management Protocol (SNMP). This checking helps prevent errors in such things as VLAN names and numbers from being propagated to other switches in the domain. However, no consistency checks are performed on VTP messages that are received on trunk links or on configuration and database data that is read from NVRAM.
    • Token Ring Support
      • Version 2 는 Token Ring Switching과 Token Ring VLAN을 지원한다. [ 즉, Token Ring Switching을 사용한다면 VTP를 버전 2로 설정하는 것은 필수이다. ]
    • Unrecognized Type-Length-Value (TLV) Support
      • VTP version 2 switches propagate received configuration change messages out other trunk links, even if the switch supervisor cannot parse or understand the message. For example, a VTP advertisement contains a Type field to denote what type of VTP message is being sent. VTP message type 1 is a summary advertisement, and message type 2 is a subset advertisement.
        An extension to VTP that utilizes other message types and other message length values could be in use. Instead of dropping the unrecognized VTP message, version 2 still propagates the information and keeps a copy in NVRAM.