VTPモード設定
(config)#vtp mode <server | client | transparent>
VTPドメイン設定
(config)#vtp domain <ドメイン名>
VTPバージョン設定
(config)#vtp version <1-3>
VTPパスワード設定
(config)#vtp password <password>
動作確認
サーバーモードのスイッチでVLAN20を作成し、同期を確認します。
ドメイン名は指定しない
サーバーモード
Servermode(config)#do sh vtp status
VTP Version capable : 1 to 3
VTP version running : 1
VTP Domain Name : null
VTP Pruning Mode : Disabled
VTP Traps Generation : Disabled
Device ID : 5254.001e.8000
Configuration last modified by 0.0.0.0 at 12-15-21 23:16:49
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 : 7
Configuration Revision : 1
MD5 digest : 0xAA 0xA4 0x21 0x81 0xFB 0xD4 0xA7 0x8F
0x1D 0x46 0x05 0xE6 0xF0 0x4F 0x01 0x20
Servermode(config)#vlan 20
Servermode(config-vlan)#exit
Servermode(config)#
Servermode(config)#do sh vlan brief
VLAN Name Status Ports
---- -------------------------------- --------- -------------------------------
1 default active Gi0/0, Gi0/2, Gi0/3
10 VLAN0010 active
20 VLAN0020 active
クライアントモード
lientmode(config)#do sh vtp status
VTP Version capable : 1 to 3
VTP version running : 1
VTP Domain Name : null
VTP Pruning Mode : Disabled
VTP Traps Generation : Disabled
Device ID : 5254.000b.8000
Configuration last modified by 0.0.0.0 at 12-15-21 23:16:49
Feature VLAN:
--------------
VTP Operating Mode : Client
Maximum VLANs supported locally : 1005
Number of existing VLANs : 7
Configuration Revision : 1
MD5 digest : 0xAA 0xA4 0x21 0x81 0xFB 0xD4 0xA7 0x8F
0x1D 0x46 0x05 0xE6 0xF0 0x4F 0x01 0x20
inserthostname_here(config)#do show vlan brief
VLAN Name Status Ports
---- -------------------------------- --------- -------------------------------
1 default active Gi0/2, Gi0/3
10 VLAN0010 active
20 VLAN0020 active
トランスペアレントモード
こちらは、同期してないですね。
transparent1(config)#do sh vtp status
VTP Version capable : 1 to 3
VTP version running : 1
VTP Domain Name : null
VTP Pruning Mode : Disabled
VTP Traps Generation : Disabled
Device ID : 5254.000a.8000
Configuration last modified by 0.0.0.0 at 0-0-00 00:00:00
Feature VLAN:
--------------
VTP Operating Mode : Transparent
Maximum VLANs supported locally : 1005
Number of existing VLANs : 5
Configuration Revision : 0
MD5 digest : 0x76 0x0A 0x00 0xB8 0x8E 0xAC 0x74 0x51
0x7B 0xA0 0x22 0xBC 0x34 0x27 0xCF 0x2F
transparent1(config)#do sh vlan brief
VLAN Name Status Ports
---- -------------------------------- --------- -------------------------------
1 default active Gi0/1, Gi0/2, Gi0/3
1002 fddi-default act/unsup
1003 token-ring-default act/unsup
1004 fddinet-default act/unsup
1005 trnet-default act/unsup