본문 바로가기

CCNA 기초

VTP 설정하기

다음과 같이 VTP를 설정하시오.



VTP 설정하기
- Domain, Password 가 모두 같아야 한다.
- Transparent 는 Domain과 Password가 Server와 다르더라도 Client에게 전달이 된다.

------------------------------------------------------------------------------------------------------------------

1. Server Mode

Switch#conf t
Enter configuration commands, one per line.  End with CNTL/Z.
Switch(config)#vtp mode Server
Device mode already VTP SERVER. - domain 모드 설정, Switch 기본값 = Server
Switch(config)#vtp domain CISCO
Changing VTP domain name from NULL to CISCO - domain 이름 설정
Switch(config)#vtp password 1111 - VTP password 설정
Setting device VLAN database password to 1111
Switch(config)#vtp pruning
% Invalid input detected at '^' marker. - Packet Tracer에서는 적용되지 않는다.
Switch(config)#end
%SYS-5-CONFIG_I: Configured from console by console
Switch#show vtp status - VTP 설정 확인
VTP Version                               : 2
Configuration Revision                 : 0
Maximum VLANs supported locally : 255
Number of existing VLANs             : 5
VTP Operating Mode                    : Server
VTP Domain Name                       : CISCO
VTP Pruning Mode                       : Disabled
VTP V2 Mode                              : Disabled
VTP Traps Generation                  : Disabled
MD5 digest                                  : 0xF5 0x3F 0x11 0x5B 0x91 0x2D 0x8F 0x2B
Configuration last modified by 0.0.0.0 at 0-0-00 00:00:00
Local updater ID is 0.0.0.0 (no valid interface found)

- Server 와 transparent, client 간의 트렁크 연결

Switch#conf t
Enter configuration commands, one per line.  End with CNTL/Z.
Switch(config)#interface fa 0/1
Switch(config-if)#switchport mode trunk
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/1, changed state to down
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/1, changed state to up
Switch(config-if)#exit

Switch(config)#interface fa 0/2
Switch(config-if)#switchport mode trunk
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/2, changed state to down
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/2, changed state to up
Switch(config-if)#end
%SYS-5-CONFIG_I: Configured from console by console
Switch#


------------------------------------------------------------------------------------------------------------------

2. Transparent Mode

Switch#conf t
Enter configuration commands, one per line.  End with CNTL/Z.
Switch(config)#vtp mode TRANSPARENT
Setting device to VTP TRANSPARENT mode.
Switch(config)#vtp domain CISCO
Changing VTP domain name from NULL to CISCO
Switch(config)#vtp password 2222
Setting device VLAN database password to 2222
Switch(config)#end
%SYS-5-CONFIG_I: Configured from console by console
Switch#show vtp status
VTP Version                               : 2
Configuration Revision                 : 0
Maximum VLANs supported locally : 255
Number of existing VLANs             : 5
VTP Operating Mode                    : Transparent
VTP Domain Name                        : CISCO
VTP Pruning Mode                       : Disabled
VTP V2 Mode                              : Disabled
VTP Traps Generation                  : Disabled
MD5 digest                                  : 0x1A 0xFC 0x64 0xDA 0x8E 0xA1 0x8A 0x3B
Configuration last modified by 0.0.0.0 at 0-0-00 00:00:00

Switch#conf t

Enter configuration commands, one per line.  End with CNTL/Z.
Switch(config)#interface fa 0/3
Switch(config-if)#switchport mode trunk 
- transparent 와 client 간의 트렁크 연결
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/3, changed state to down
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/3, changed state to up
Switch(config-if)#exit
Switch(config)#exit
%SYS-5-CONFIG_I: Configured from console by console
Switch#

------------------------------------------------------------------------------------------------------------------

3. Client Mode

Switch#conf t
Enter configuration commands, one per line.  End with CNTL/Z.
Switch(config)#vtp mode Client
Setting device to VTP CLIENT mode.
Switch(config)#vtp domain CISCO
Changing VTP domain name from NULL to CISCO
Switch(config)#vtp password 1111
Setting device VLAN database password to 1111
Switch(config)#end
%SYS-5-CONFIG_I: Configured from console by console
Switch#show vtp status
VTP Version                               : 2
Configuration Revision                 : 0
Maximum VLANs supported locally : 255
Number of existing VLANs             : 5
VTP Operating Mode                    : Client
VTP Domain Name                       : CISCO
VTP Pruning Mode                      : Disabled
VTP V2 Mode                             : Disabled
VTP Traps Generation                 : Disabled
MD5 digest                                 : 0x1A 0xFC 0x64 0xDA 0x8E 0xA1 0x8A 0x3B
Configuration last modified by 0.0.0.0 at 0-0-00 00:00:00

------------------------------------------------------------------------------------------------------------------

4. 설정 확인
- 서버에서 vlan 생성/삭제시 각 Client는 Server와 동일하게 적용된다.
- Switch의 vlan port 설정과 관련해서는 Server와 무관하다. (서로 다르게 설정)
- Transparent 는 독립적으로 움직이며 단순한 연결통로이다.
- VTP Pruning의 경우 packet tracer에서는 적용이 안되지만
실 장비에서는 원하는 목적지 이외에 스위치와 연결된 모든 곳에 전달되는 것을 방지하기 위해 사용된다. 기본 값 = disable


4-1. Server VLAN 설정

Switch(vlan)#vlan 10
VLAN 10 added:
    Name: VLAN0010
Switch(vlan)#vlan 20
VLAN 20 added:
    Name: VLAN0020
Switch(vlan)#exit
APPLY completed.
Exiting....
Switch#show vlan brief


Switch#show vtp status

VTP Version                               : 2
Configuration Revision                 : 2         - 설정 값이 0 -> 2로 변한 것을 알 수 있다.
Maximum VLANs supported locally : 255
Number of existing VLANs             : 7
VTP Operating Mode                    : Server
VTP Domain Name                        : CISCO
VTP Pruning Mode                       : Disabled
VTP V2 Mode                              : Disabled
VTP Traps Generation                  : Disabled
MD5 digest                                  : 0xFC 0x82 0xD5 0x35 0x2D 0xBB 0x69 0x5B
Configuration last modified by 0.0.0.0 at 3-1-93 00:14:06
Local updater ID is 0.0.0.0 (no valid interface found)
Switch#


4-2. Client 쪽 설정 확인

Switch#show vtp status
VTP Version                               : 2
Configuration Revision                 : 2
Maximum VLANs supported locally : 255
Number of existing VLANs             : 7
VTP Operating Mode                    : Client
VTP Domain Name                        : CISCO
VTP Pruning Mode                       : Disabled
VTP V2 Mode                              : Disabled
VTP Traps Generation                  : Disabled
MD5 digest                                  : 0xFC 0x82 0xD5 0x35 0x2D 0xBB 0x69 0x5B
Configuration last modified by 0.0.0.0 at 3-1-93 00:14:06
Switch#show vlan brief


- Server와 같은 설정으로 변경 된 것을 알 수 있다.