NETWORK & SEVER FACTORY

개인 공부 기록

Network/패킷트레이서

[Packet Tracer] VTP

1nfra 2020. 2. 6. 03:14
728x90

VTP란 VLAN정보를 자동으로 주고 받아 동기화하는 프로토콜이다.

VTP는 3가지 모드을 가지고 있다.

 

서버 모드(Server Mode) : 모든 스위치는 기본적으로 서버 모드로 동작한다. VLAN 생성, 수정, 삭제는 자유롭게 할 수 있다.

트랜스페어런트 모드(Transparent Mode) : 서버로 부터 받은 정보를 자기 자신한테 반영하지 않고 이웃하는 스위치에 전달한다.

클라이언트 모드(Client Mode) : 서버로 부터 받은 VLAN정보만 반영, 직접 VLAN을 생성, 수정, 삭제를 할 수 없다.

 

VTP는 version 1, 2, 3이 있다. 3은 현재 사용할 수 없고 2는 비활성화 되어있다.

또한 VTP는 스위치 사이에 Trunk모드가 설정되어 있어야한다. 

 

Trunk Mode 설정

 

Switch>

Switch>en

Switch#conf t

Enter configuration commands, one per line. End with CNTL/Z.

Switch(config)#int Fa0/1

Switch(config-if)#switchport mode trunk

 

VTP Version 설정

 

Switch>en

Switch#conf t

Enter configuration commands, one per line. End with CNTL/Z.

Switch(config)#vtp version ?

<1-2> Set the adminstrative domain VTP version number

Switch(config)#vtp version 2

 

VTP MODE 설정

 

Switch(config)#vtp mode ?

client Set the device to client mode.

server Set the device to server mode.

transparent Set the device to transparent mode.

Switch(config)#vtp mode server

 

VTP는 기본으로 버전 1, Server모드, 도메인은 null ,번호는 0이다.

 

VTP 도메인 설정

 

Switch(config)#vtp domain test

Changing VTP domain name from NULL to test

 

VTP 암호 설정

 

Switch(config)#vtp password test

Setting device VLAN database password to test

 

VTP 모드가 동작하기 위해서는 VTP MODE를 제외한 설정이 모두 같아야한다.

 

그럼 이제 실습을 해보겠다.

토폴로지

스위치의 이름처럼 VTP 모드를 설정해주고 도메인과 암호는 test로 동일하게 진행한다. 

 

SERVER

Switch>en

Switch#conf t

Enter configuration commands, one per line. End with CNTL/Z.

Switch(config)#vtp version 2

Switch(config)#

Switch(config)#vtp mode server

Switch(config)#vtp domain test

Changing VTP domain name from NULL to test

Switch(config)#vtp password test

Setting device VLAN database password to test

 

Transparent

Switch>en

Switch#conf t

Enter configuration commands, one per line. End with CNTL/Z.

Switch(config)#vtp version 2

Switch(config)#vtp mode transparent

Setting device to VTP TRANSPARENT mode.

Switch(config)#vtp domain test

Changing VTP domain name from NULL to test

Switch(config)#vtp password test

Setting device VLAN database password to test

 

Client

Switch>

Switch>en

Switch#conf t

Enter configuration commands, one per line. End with CNTL/Z.

Switch(config)#vtp version 2

Switch(config)#vtp mode client

Setting device to VTP CLIENT mode.

Switch(config)#vtp domain test

Changing VTP domain name from NULL to test

Switch(config)#vtp password test

Setting device VLAN database password to test

 

이러면 설정이 모두 끝이다. 그럼 이제 VLAN을 만들어 확인해보자 !

 

SERVER

Switch>

Switch>en

Switch#conf t

Enter configuration commands, one per line. End with CNTL/Z.

Switch(config)#vlan 10

Switch(config-vlan)#name VLAN_10

Switch(config-vlan)#vlan 20

Switch(config-vlan)#name VLAN_20

 

do show vlan

서버에 VLAN 10, 20이 잘 만들어진 것을 볼 수있다.

 

이제 그럼 다른 스위치도 VTP가 적용되었는지 VLAN 생성 여부로 확인해보자 !

 

Transparent MODE

Transparent 모드의 스위치는 VLAN정보를 반영하지 않기때문에 

아무것도 없는것을 확인할 수 있다.

 

Client MODE

Client 모드는 SERVER에서 만든 VLAN이 똑같이 적용되어있다.

이것은 VTP 설정이 성공적으로 잘된것이다. 

 

만약 VTP가 제대로 적용되지 않았다면 다음내용을 확인해보자 !

 

1. 스위치와 스위치 사이에 트렁크 설정을 했는가

2. VTP 버전과 도메인이름 암호가 같은가

3. VTP 모드를 잘 설정했는가

 

이것으로 VTP 실습을 다했다. 다음시간에는 STP에 대해 알아보겠다.

728x90

'Network > 패킷트레이서' 카테고리의 다른 글

[Packet Tracer] PPP PAP  (0) 2020.02.27
[Packet Tracer] STP  (0) 2020.02.22
[Packet Tracer] Port-Security  (0) 2020.02.03
[Packet Tracer] inter-VLAN  (0) 2020.02.02
[Packet Tracer] DTP  (0) 2020.01.22