Contoh Penerapan VLAN Trunking Protocol (VTP) dengan Tiga Switch. VTP sangat dianjurkan jika kita menggunakan lebih dari 2 switch untuk VLAN. Kita cukup setting di satu switch saja. Sedangkan switch yang lain akan mengikuti sesuai database yang dibuat sebelumnya.
Setting VTP untuk semua switch
Switch>
Switch>
Switch>
Switch>en
Switch#
Switch#conf t
Switch ServerRasid
Switch(config)#
Switch(config)#hostname ServerRasid
ServerRasid(config)#
ServerRasid(config)#vtp mode server
Device mode already VTP SERVER.
ServerRasid(config)#vtp domain pintar.id
Changing VTP domain name from Produksi to pintar.id
ServerRasid(config)#vtp version 2
ServerRasid(config)#vtp password inipasswordya
Setting device VLAN database password to inipasswordya
ServerRasid(config)#end
ServerRasid#
Switch ClientRasid1
Switch>
Switch>en
Switch#config t
Switch(config)#
Switch(config)#hostname ClientRasid1
ClientRasid1(config)#
ClientRasid1(config)#vtp mode client
Device mode already VTP CLIENT.
ClientRasid1(config)#vtp domain pintar.id
Changing VTP domain name from NULL to pintar.id
ClientRasid1(config)#vtp password inipasswordya
Setting device VLAN database password to inipasswordya
ClientRasid1(config)#end
ClientRasid1#
ClientRasid1#
Switch ClientRasid2
Switch>
Switch>en
Switch#config t
Switch(config)#hostname ClientRasid2
ClientRasid2(config)#
ClientRasid2(config)#vtp mode client
Setting device to VTP CLIENT mode.
ClientRasid2(config)#vtp domain pintar.id
Changing VTP domain name from NULL to pintar.id
ClientRasid2(config)#vtp password inipasswordya
Setting device VLAN database password to inipasswordya
ClientRasid2(config)#end
Switch#
Switch#
Switch#
Switch#
Cara Cek Hasil VTP ServerRasid
ServerRasid#
ServerRasid#sh vtp status
VTP Version : 2
Configuration Revision : 0
Maximum VLANs supported locally : 255
Number of existing VLANs : 5
VTP Operating Mode : Server
VTP Domain Name : pintar.id
VTP Pruning Mode : Disabled
VTP V2 Mode : Enabled
VTP Traps Generation : Disabled
MD5 digest : 0xE7 0x5B 0xF3 0xDC 0x0D 0x67 0xD4 0x42
Configuration last modified by 0.0.0.0 at 3-1-93 00:33:50
Local updater ID is 0.0.0.0 (no valid interface found)
ServerRasid#
Cara Cek Hasil VTP ClientRasid1
ClientRasid1#
ClientRasid1#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 : pintar.id
VTP Pruning Mode : Disabled
VTP V2 Mode : Disabled
VTP Traps Generation : Disabled
MD5 digest : 0x6A 0xA6 0xAD 0x4B 0x58 0x34 0x22 0x3D
Configuration last modified by 0.0.0.0 at 0-0-00 00:00:00
ClientRasid1#
ClientRasid1#
Cara Cek Hasil VTP ClientRasid2
ClientRasid2#
ClientRasid2#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 : pintar.id
VTP Pruning Mode : Disabled
VTP V2 Mode : Disabled
VTP Traps Generation : Disabled
MD5 digest : 0x6A 0xA6 0xAD 0x4B 0x58 0x34 0x22 0x3D
Configuration last modified by 0.0.0.0 at 0-0-00 00:00:00
ClientRasid2(config)#
ClientRasid2(config)#
ClientRasid2(config)#
Cara Membuat VLAN di ServerRasid
ServerRasid#
ServerRasid#
ServerRasid#config terminal
ServerRasid(config)#
ServerRasid(config)#vlan 10
ServerRasid(config-vlan)#name Produksi
ServerRasid(config-vlan)#vlan 20
ServerRasid(config-vlan)#name QC
ServerRasid(config-vlan)#vlan 30
ServerRasid(config-vlan)#name HRD
ServerRasid(config-vlan)#
ServerRasid(config-vlan)#end
ServerRasid#
ServerRasid#sh vlan brief
VLAN Name Status Ports
—- ——————————– ——— ——————————-
1 default active Fa0/1, Fa0/2, Fa0/3, Fa0/4
Fa0/5, Fa0/6, Fa0/7, Fa0/8
Fa0/9, Fa0/10, Fa0/11, Fa0/12
Fa0/13, Fa0/14, Fa0/15, Fa0/16
Fa0/17, Fa0/18, Fa0/19, Fa0/20
Fa0/21, Fa0/22, Fa0/23, Fa0/24
10 Produksi active
20 QC active
30 HRD active
1002 fddi-default active
1003 token-ring-default active
1004 fddinet-default active
1005 trnet-default active
ServerRasid#
ServerRasid#
Cara Setting Trunk Antar Switch
ServerRasid#
ServerRasid#conf t
ServerRasid(config)#int f0/1
ServerRasid(config-if)#switchport mode trunk
ServerRasid(config-if)#
ServerRasid(config-if)#description Koneksi dengan ClientRasid1
ServerRasid(config-if)#end
ServerRasid#
ServerRasid#show int fa0/1
FastEthernet0/1 is up, line protocol is up (connected)
Hardware is Lance, address is 000a.f3ae.8101 (bia 000a.f3ae.8101)
Description: Koneksi dengan ClientRasid1
BW 100000 Kbit, DLY 1000 usec,
==more==
ServerRasid#
ServerRasid#conf t
ServerRasid(config)#int f0/2
ServerRasid(config-if)#switchport mode trunk
ServerRasid(config-if)#
ServerRasid(config-if)#description Koneksi dengan ClientRasid2
ServerRasid(config-if)#end
ServerRasid#
ServerRasid#show int fa0/2
FastEthernet0/2 is up, line protocol is up (connected)
Hardware is Lance, address is 000a.f3ae.8102 (bia 000a.f3ae.8102)
Description: Koneksi dengan ClientRasid2
ServerRasid#show vlan brief
VLAN Name Status Ports
—- ——————————– ——— ——————————-
1 default active Fa0/3, Fa0/4, Fa0/5, Fa0/6
Fa0/7, Fa0/8, Fa0/9, Fa0/10
Fa0/11, Fa0/12, Fa0/13, Fa0/14
Fa0/15, Fa0/16, Fa0/17, Fa0/18
Fa0/19, Fa0/20, Fa0/21, Fa0/22
Fa0/23, Fa0/24
10 Produksi active
20 QC active
30 HRD active
1002 fddi-default active
1003 token-ring-default active
1004 fddinet-default active
1005 trnet-default active
ServerRasid#
Cara Setting Trunk Antar Switch di ClientRasid1
ClientRasid1>
ClientRasid1>en
ClientRasid1#
ClientRasid1#conf t
ClientRasid1(config)#
ClientRasid1(config)#int fa0/1
ClientRasid1(config-if)#switchport mode trunk
ClientRasid1(config-if)#description Koneksi dengan ServerRasid
ClientRasid1(config-if)#end
ClientRasid1#
Cara Setting Trunk Antar Switch di ClientRasid2
ClientRasid2>
ClientRasid2>en
ClientRasid2#config t
ClientRasid2(config)#
ClientRasid2(config)#int fa0/2
ClientRasid2(config-if)#switchport mode trunk
ClientRasid2(config-if)#description Koneksi dengan ServerRasid
ClientRasid2(config-if)#end
ClientRasid2#
ClientRasid2#show int fa0/2
FastEthernet0/2 is up, line protocol is up (connected)
Hardware is Lance, address is 0000.0c25.8702 (bia 0000.0c25.8702)
Description: Koneksi dengan ServerRasid
BW 100000 Kbit, DLY 1000 usec,
==more==
Cara Setting Port Switch di ClientRasid1
ClientRasid1#
ClientRasid1#config t
ClientRasid1(config)#
ClientRasid1(config)#int fa0/3
ClientRasid1(config-if)#sw ac vlan 10
ClientRasid1(config-if)#int fa0/4
ClientRasid1(config-if)#sw ac vlan 20
ClientRasid1(config-if)#int fa0/5
ClientRasid1(config-if)#sw ac vlan 30
ClientRasid1(config-if)#end
ClientRasid1#
ClientRasid1#sh vlan brief
VLAN Name Status Ports
—- ——————————– ——— ——————————-
1 default active Fa0/2, Fa0/6, Fa0/7, Fa0/8
Fa0/9, Fa0/10, Fa0/11, Fa0/12
Fa0/13, Fa0/14, Fa0/15, Fa0/16
Fa0/17, Fa0/18, Fa0/19, Fa0/20
Fa0/21, Fa0/22, Fa0/23, Fa0/24
10 Produksi active Fa0/3
20 QC active Fa0/4
30 HRD active Fa0/5
1002 fddi-default active
1003 token-ring-default active
1004 fddinet-default active
1005 trnet-default active
ClientRasid1#
ClientRasid1#
ClientRasid1#
Cara Setting Port Switch di ClientRasid2
ClientRasid2#
ClientRasid2#conf t
Enter configuration commands, one per line. End with CNTL/Z.
ClientRasid2(config)#
ClientRasid2(config)#
ClientRasid2(config)#int fa0/3
ClientRasid2(config-if)#sw ac vlan 10
ClientRasid2(config-if)#int fa0/4
ClientRasid2(config-if)#sw ac vlan 20
ClientRasid2(config-if)#int fa0/5
ClientRasid2(config-if)#sw ac vlan 30
ClientRasid2(config-if)#end
ClientRasid2#
ClientRasid2#sh vlan brief
VLAN Name Status Ports
—- ——————————– ——— ——————————-
1 default active Fa0/1, Fa0/6, Fa0/7, Fa0/8
Fa0/9, Fa0/10, Fa0/11, Fa0/12
Fa0/13, Fa0/14, Fa0/15, Fa0/16
Fa0/17, Fa0/18, Fa0/19, Fa0/20
Fa0/21, Fa0/22, Fa0/23, Fa0/24
10 Produksi active Fa0/3
20 QC active Fa0/4
30 HRD active Fa0/5
1002 fddi-default active
1003 token-ring-default active
1004 fddinet-default active
1005 trnet-default active
ClientRasid2#
Cara simpan Konfigurasi di semua Switch
ServerRasid#copy run start
Destination filename [startup-config]?
Building configuration…
[OK]
ServerRasid#
ClientRasid1#
ClientRasid1#copy run start
Destination filename [startup-config]?
Building configuration…
[OK]
ClientRasid1#
ClientRasid2#
ClientRasid2#copy run start
Destination filename [startup-config]?
Building configuration…
[OK]
ClientRasid2#
ClientRasid2#