Wednesday, 23 March 2011

Cisco VTP Lanjut

Praktek Simulasi VTP

Buat simulasi menggunakan packet tracer seperti di bawah ini





buat konfigurasi pada masing-masing switch seperti berikut :

Konfigurasi Switch0

Switch>enable
Switch#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#vtp mode server
Device mode already VTP SERVER.
Switch(config)#vtp domain lp3i
Changing VTP domain name from NULL to lp3i
Switch(config)#vtp version 2
Switch(config)#vtp password mayasari
Setting device VLAN database password to mayasari
Switch(config)#end
%SYS-5-CONFIG_I: Configured from console by console
Switch#

Konfigurasi Switch1
Switch>enable
Switch#configure terminal
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 lp3i
Changing VTP domain name from NULL to lp3i
Switch(config)#vtp password mayasari
Setting device VLAN database password to mayasari
Switch(config)#end
%SYS-5-CONFIG_I: Configured from console by console
Switch#


Konfigurasi Switch2

Switch>enable
Switch#configure terminal
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 lp3i
Changing VTP domain name from NULL to lp3i
Switch(config)#vtp password mayasari
Setting device VLAN database password to mayasari
Switch(config)#end
%SYS-5-CONFIG_I: Configured from console by console
Switch#

Sebelum melakukan konfigurasi yang lain, terlebih dahulu cek status dari VTP pada setiap switch. Perintah nya adalah sebagai berikut :

Switch#show vtp status

VTP Version : 2
Configuration Revision : 1
Maximum VLANs supported locally : 64
Number of existing VLANs : 5
VTP Operating Mode : Server
VTP Domain Name : lp3i
VTP Pruning Mode : Disabled
VTP V2 Mode : Enabled
VTP Traps Generation : Disabled
MD5 digest : 0x8D 0xFD 0x92 0x01 0x86 0xE3 0xB0 0x2F
Configuration last modified by 0.0.0.0 at 3-1-93 00:02:42
Local updater ID is 0.0.0.0 (no valid interface found)
Switch#

Membuat VLAN

Langkah selanjutnya adalah membuat VLAN pada switch server adapun langkah-langkah konfigurasi nya adalah sebagai berikut :

VLAN yang akan kita buat :

VLAN    id VLAN    Name VLAN member
10       VLAN10      PC0, PC3
20       VLAN20      PC1, PC4
30       VLAN30      PC2, PC5


Konfigurasi Switch0:

Switch#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#vlan 10
Switch(config-vlan)#name VLAN10
Switch(config-vlan)#vlan 20
Switch(config-vlan)#name VLAN20
Switch(config-vlan)#vlan 30
Switch(config-vlan)#name VLAN30
Switch(config-vlan)#end
%SYS-5-CONFIG_I: Configured from console by console
Switch#show 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 VLAN10 active
20 VLAN20 active
30 VLAN30 active
1002 fddi-default active
1003 token-ring-default active
1004 fddinet-default active
1005 trnet-default active
Switch#

Konfigurasi Trunk antar switch

Switch0

Trunk antara switch0 dan switch1

Switch#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#int fa0/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 upSwitch(config-if)#description Koneksi dengan switch 1
Switch(config-if)#end
%SYS-5-CONFIG_I: Configured from console by console
Switch#sh int fa0/1


Trunk antara switch0 dan switch2

Switch#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#int fa0/2
Switch(config-if)#switchport mode trunk

%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/2, changed state to down
Switch(config-if)#description Koneksi dengan switch 2
Switch(config-if)#end
%SYS-5-CONFIG_I: Configured from console by console
Switch#sh int fa0/2
Switch#show vlan brief


Switch1

Switch#
Switch#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#int fa0/1
Switch(config-if)#switchport mode trunk
Switch(config-if)#description koneksi dengan switch0
Switch(config-if)#end

Switch2

Switch#
Switch#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#int fa0/1
Switch(config-if)#switchport mode trunk
Switch(config-if)#description koneksi dengan switch0
Switch(config-if)#end

Cek dengan mengetikan perintah show vlan brief pada masing-masing switch

Menentukan Port untuk VLAN

Switch1

Switch#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#int fa0/2
Switch(config-if)#switchport access vlan 10
Switch(config-if)#int fa0/3
Switch(config-if)#switchport access vlan 20
Switch(config-if)#int fa0/4
Switch(config-if)#switchport access vlan 30
Switch(config-if)#end
%SYS-5-CONFIG_I: Configured from console by console
Switch#sh vlan brief

Switch2
Switch#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#int fa0/2
Switch(config-if)#switchport access vlan 10
Switch(config-if)#int fa0/3
Switch(config-if)#switchport access vlan 20
Switch(config-if)#int fa0/4
Switch(config-if)#switchport access vlan 30
Switch(config-if)#end
%SYS-5-CONFIG_I: Configured from console by console
Switch#sh vlan brief

Beri IP address untuk setiap PC antara 192.168.10.10 s/d 192.168.10.15 netmask 255.255.255.0

Indikator keberhasilan : Setiap PC yang berada dalam VLAN yang sama bisa saling terhubung, yang berbeda vlan tidak.

2 comments:

  1. ikutan belajar gan :D
    http://jaketkuning.unsri.ac.id/Sigit/blog/830/

    ReplyDelete
  2. misi mas, tolong komen tulisan saya :D
    http://jaketkuning.unsri.ac.id/ardhani/blog/806/

    thanks :D

    ReplyDelete

Repositori Institusional Di Perguruan Tinggi

Oleh : Riki Nuryadin riki.nuryadin@upi.edu riki.nuryadin@gmail.com Abstrak: Institusional repositori adalah sebuah wadah o...