VTP (VLAN Trunking Protocol)
작은 규모의 네트웍을 운영한다면
몇 대의 Switch 장비만을 설정 하면 됩니다.
그러나,
수십 수백개의 Switch를 운영 할 때
VLAN 추가,생성,삭제 설정을 하려면
각 장비에 접속하여 스위치 수량 만큼
같은 설정을 매번 반복 해야 합니다.
이러한 수고를 덜어줄 VTP(VLAN Trunking Protocol)를
설정 해보겠습니다.
Trunk Port를 통해 VLAN 정보를 송수신하며 동기화 하게 됩니다.
EVE-NG 가상 에뮬레이터 실습
! --- Switch1 --- !
conf t
vlan 10
name Sales_1Team
!
int r g0/0-2
switchport trunk encapsulation dot1q
switchport mode trunk
!
vtp mode server
vtp version 2
vtp domain cisco
vtp password cisco123
!
! --- Switch2 --- !
!
conf t
int r g0/0-2
switchport trunk encapsulation dot1q
switchport mode trunk
!
vtp mode client
vtp version 2
vtp domain cisco
vtp password cisco123
!
! --- Switch3 --- !
!
conf t
int r g0/0-1
switchport trunk encapsulation dot1q
switchport mode trunk
!
int g0/2
switchport mode access
switchport access vlan 10
!
vtp mode client
vtp version 2
vtp domain cisco
vtp password cisco123
!
! --- Switch4 --- !
!
conf t
int r g0/0-1
switchport trunk encapsulation dot1q
switchport mode trunk
!
int g0/2
switchport mode access
switchport access vlan 10
!
vtp mode client
vtp version 2
vtp domain cisco
vtp password cisco123
!
Switch1#show vtp status
VTP Version capable : 1 to 3
VTP version running : 2
VTP Domain Name : cisco
VTP Pruning Mode : Disabled
VTP Traps Generation : Disabled
Device ID : 5000.0001.8000
Configuration last modified by 0.0.0.0 at 1-16-21 10:16:58
Local updater ID is 0.0.0.0 (no valid interface found)
Feature VLAN:
--------------
VTP Operating Mode : Server
Maximum VLANs supported locally : 1005
Number of existing VLANs : 6
Configuration Revision : 2
MD5 digest : 0xC2 0x18 0x06 0x7A 0x09 0xB5 0x19 0x50
0xB7 0x76 0x10 0x82 0x74 0x53 0x8A 0xE0
==============================================================================
Switch2#show vtp status
VTP Version capable : 1 to 3
VTP version running : 2
VTP Domain Name : cisco
VTP Pruning Mode : Disabled
VTP Traps Generation : Disabled
Device ID : 5000.0002.8000
Configuration last modified by 0.0.0.0 at 1-16-21 10:16:58
Feature VLAN:
--------------
VTP Operating Mode : Client
Maximum VLANs supported locally : 1005
Number of existing VLANs : 6
Configuration Revision : 2
MD5 digest : 0xC2 0x18 0x06 0x7A 0x09 0xB5 0x19 0x50
0xB7 0x76 0x10 0x82 0x74 0x53 0x8A 0xE0
==============================================================================
Switch3#show vtp status
VTP Version capable : 1 to 3
VTP version running : 2
VTP Domain Name : cisco
VTP Pruning Mode : Disabled
VTP Traps Generation : Disabled
Device ID : 5000.0003.8000
Configuration last modified by 0.0.0.0 at 1-16-21 10:16:58
Feature VLAN:
--------------
VTP Operating Mode : Client
Maximum VLANs supported locally : 1005
Number of existing VLANs : 6
Configuration Revision : 2
MD5 digest : 0xC2 0x18 0x06 0x7A 0x09 0xB5 0x19 0x50
0xB7 0x76 0x10 0x82 0x74 0x53 0x8A 0xE0
==============================================================================
Switch4#show vtp status
VTP Version capable : 1 to 3
VTP version running : 2
VTP Domain Name : cisco
VTP Pruning Mode : Disabled
VTP Traps Generation : Disabled
Device ID : 5000.0004.8000
Configuration last modified by 0.0.0.0 at 1-16-21 10:16:58
Feature VLAN:
--------------
VTP Operating Mode : Client
Maximum VLANs supported locally : 1005
Number of existing VLANs : 6
Configuration Revision : 2
MD5 digest : 0xC2 0x18 0x06 0x7A 0x09 0xB5 0x19 0x50
0xB7 0x76 0x10 0x82 0x74 0x53 0x8A 0xE0
Configuration Revision 이 모두 같은 값으로 확인되며
VTP 메세지를 주고 받아
VLAN 정보들이 동기화 된 것을 볼 수 있습니다.
VLAN 정보에 변경이 있으면 Configuration Revision가 +1 씩 증가 하게 됩니다.
VTP Mode 는 3가지가 있습니다.
Server : VLAN 추가,변경,삭제 가능하며 VLAN 정보를 전송 및 중계 하고 동기화 합니다.
Clinet : VLAN 추가,변경,삭제 불가능하며 VLAN 정보를 전송 및 중계 하고 동기화 합니다.
Transparent : VLAN 추가,변경,삭제 가능하며 VLAN 정보를 중계만 하고 동기화 하지 않습니다.
VLAN 정보를 변경하여
Configuration Revision 값의 변화와
동기화가 이루어 지는지 확인 해보겠습니다.
Switch1#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Switch1(config)#vlan 20,30,40
Switch1(config-vlan)#end
==================================================================================
Switch1#show vlan br
VLAN Name Status Ports
---- -------------------------------- --------- -------------------------------
1 default active Gi0/3, Gi1/0, Gi1/1, Gi1/2
Gi1/3
10 VLAN0010 active
20 VLAN0020 active
30 VLAN0030 active
40 VLAN0040 active
1002 fddi-default act/unsup
1003 trcrf-default act/unsup
1004 fddinet-default act/unsup
1005 trbrf-default act/unsup
==================================================================================
Switch1#show vtp status
VTP Version capable : 1 to 3
VTP version running : 2
VTP Domain Name : cisco
VTP Pruning Mode : Disabled
VTP Traps Generation : Disabled
Device ID : 5000.0001.8000
Configuration last modified by 0.0.0.0 at 1-16-21 11:04:31
Local updater ID is 0.0.0.0 (no valid interface found)
Feature VLAN:
--------------
VTP Operating Mode : Server
Maximum VLANs supported locally : 1005
Number of existing VLANs : 9
Configuration Revision : 3
MD5 digest : 0x7E 0x7D 0x15 0xCA 0xE1 0x32 0x43 0xCC
0x33 0x50 0x31 0x3D 0x5E 0x01 0xF3 0x24
Switch2#show vlan br
VLAN Name Status Ports
---- -------------------------------- --------- -------------------------------
1 default active Gi0/3, Gi1/0, Gi1/1, Gi1/2
Gi1/3
10 VLAN0010 active
20 VLAN0020 active
30 VLAN0030 active
40 VLAN0040 active
1002 fddi-default act/unsup
1003 trcrf-default act/unsup
1004 fddinet-default act/unsup
1005 trbrf-default act/unsup
==================================================================================
Switch2#
Switch2#show vtp status
Switch2#show vtp status
VTP Version capable : 1 to 3
VTP version running : 2
VTP Domain Name : cisco
VTP Pruning Mode : Disabled
VTP Traps Generation : Disabled
Device ID : 5000.0002.8000
Configuration last modified by 0.0.0.0 at 1-16-21 11:04:31
Feature VLAN:
--------------
VTP Operating Mode : Client
Maximum VLANs supported locally : 1005
Number of existing VLANs : 9
Configuration Revision : 3
MD5 digest : 0x7E 0x7D 0x15 0xCA 0xE1 0x32 0x43 0xCC
0x33 0x50 0x31 0x3D 0x5E 0x01 0xF3 0x24
Switch3#show vlan br
VLAN Name Status Ports
---- -------------------------------- --------- -------------------------------
1 default active Gi0/3, Gi1/0, Gi1/1, Gi1/2
Gi1/3
10 VLAN0010 active Gi0/2
20 VLAN0020 active
30 VLAN0030 active
40 VLAN0040 active
1002 fddi-default act/unsup
1003 trcrf-default act/unsup
1004 fddinet-default act/unsup
1005 trbrf-default act/unsup
==================================================================================
Switch3#show vtp status
VTP Version capable : 1 to 3
VTP version running : 2
VTP Domain Name : cisco
VTP Pruning Mode : Disabled
VTP Traps Generation : Disabled
Device ID : 5000.0003.8000
Configuration last modified by 0.0.0.0 at 1-16-21 11:04:31
Feature VLAN:
--------------
VTP Operating Mode : Client
Maximum VLANs supported locally : 1005
Number of existing VLANs : 9
Configuration Revision : 3
MD5 digest : 0x7E 0x7D 0x15 0xCA 0xE1 0x32 0x43 0xCC
0x33 0x50 0x31 0x3D 0x5E 0x01 0xF3 0x24
Switch4#show vlan br
VLAN Name Status Ports
---- -------------------------------- --------- -------------------------------
1 default active Gi0/3, Gi1/0, Gi1/1, Gi1/2
Gi1/3
10 VLAN0010 active Gi0/2
20 VLAN0020 active
30 VLAN0030 active
40 VLAN0040 active
1002 fddi-default act/unsup
1003 trcrf-default act/unsup
1004 fddinet-default act/unsup
1005 trbrf-default act/unsup
==================================================================================
Switch4#show vtp status
VTP Version capable : 1 to 3
VTP version running : 2
VTP Domain Name : cisco
VTP Pruning Mode : Disabled
VTP Traps Generation : Disabled
Device ID : 5000.0004.8000
Configuration last modified by 0.0.0.0 at 1-16-21 11:04:31
Feature VLAN:
--------------
VTP Operating Mode : Client
Maximum VLANs supported locally : 1005
Number of existing VLANs : 9
Configuration Revision : 3
MD5 digest : 0x7E 0x7D 0x15 0xCA 0xE1 0x32 0x43 0xCC
0x33 0x50 0x31 0x3D 0x5E 0x01 0xF3 0x24
VLAN 20,30,40 이 추가 되었고
Configuration Revision 값도 +1씩 증가했으며
동기화가 정상적으로 이루어 진 것을 확인 할 수 있습니다.
감사합니다.
'Network' 카테고리의 다른 글
VTP (VTP Pruning) [③] (0) | 2021.01.18 |
---|---|
VTP (VLAN Trunking Protocol) [②] (0) | 2021.01.17 |
VLAN (SVI, Trunk mode) [③] (0) | 2021.01.16 |
VLAN (SVI) [②] (0) | 2021.01.16 |
VLAN (Access Mode, Access Vlan) [①] (0) | 2021.01.14 |