Kali ini saya akan memberikan sedikit pembahasan mengenai konfigurasi VTP.. Berikut ini gambar topologinya:
Jaringan yang ane buat disini ada 4 VLAN :
1. Native VLAN ( Default VLAN 1)
Subnet : 192.168.0.0/24
Gateway : 192.168.0.Core
2. Subnet untuk KONOHA ( VLAN 2)
Subnet : 192.168.1.0/24
Gateway : 192.168.1.1
3. Subnet untuk SUNA ( VLAN 3)
Subnet : 192.168.2.0/24
Gateway : 192.168.2.1
4. Subnet untuk AKATSUCI (VLAN 4)
Subnet : 192.168.3.0/24
Gateway : C192.168.3.1
Switch>ena
Switch#conf t
#### Setting Nama Switch ####
Switch(config)#hostname "Switch Core"
#### Setting switch agar bisa di telnet ####
Switch Core(config)#line vty 0 4
Switch Core(config-line)#password uchiha
Switch Core(config-line)#login
Switch Core(config-line)#exit
#### Setting password Switch ####
Switch Core(config)#enable secret cisco
#### Setting VTP ( Vritual Trunking Protokol)####
Switch Core(config)#vtp mode server
Switch Core(config)#vtp domain hacker-cisadane
Switch Core(config)#vtp password hacker-cisadane
#### Setting Trunk untuk port Fa0/22, Fa0/23, Fa0/24 ####
Switch Core(config)#int fa0/22
Switch Core(config-if)#description **** Trunk ke Router ****
Switch Core(config-if)#switchport trunk encapsulation dot1q( lewatin aja di PT ud defaultnya)
Switch Core(config-if)#switchport mode trunk
Switch Core(config-if)#no shut
Switch Core(config-if)#exit
Switch Core(config)#int fa0/23
Switch Core(config-if)#description **** Trunk ke Switch 1 ****
Switch Core(config-if)#switchport trunk encapsulation dot1q
Switch Core(config-if)#switchport mode trunk
Switch Core(config-if)#no shut
Switch Core(config-if)#exit
Switch Core(config)#int fa0/24
Switch Core(config-if)#description **** Trunk ke Switch 2 ****
Switch Core(config-if)#switchport trunk encapsulation dot1q
Switch Core(config-if)#switchport mode trunk
Switch Core(config-if)#no shut
Switch Core(config-if)#exit
#### Setting untuk Create VLAN####
Switch Core(config)#vlan 2
Switch Core(config-vlan)#name KONOHA
Switch Core(config-vlan)#exit
Switch Core(config)#vlan 3
Switch Core(config-vlan)#name SUNA
Switch Core(config-vlan)#exit
Switch Core(config)#vlan 4
Switch Core(config-vlan)#name AKATSUKI
Switch Core(config-vlan)#exit
#### Memberi IP pada interface vlan Core agar switch bisa di telnet####
Switch Core(config)#int vlan 1
Switch Core(config-if)#description **** Native VLAN ***
Switch Core(config-if)#ip address 192.168.0.10 255.255.255.0
Switch Core (config-if)#no shut
Switch Core (config-if)#exit
Switch Core (config)#ip default-gateway 192.168.0.1 (Setting Gateway pada Switch)
Switch Core (config)#end
Switch Core #copy run start (Save konfigurasi ke NVAM)
Switch Core#
===============================================================
Switch 1 Konfigurasi
===============================================================
Switch>en
Switch#conf t
#### Setting Nama Switch ####
Switch(config)#hostname "Switch 1"
#### Setting password Cisco ####
Switch 1(config)#enable secret cisco
#### Setting switch agar bisa di telnet ####
Switch 1(config)#line vty 0 4
Switch 1(config-line)#password uchiha
Switch 1(config-line)#login
Switch 1(config-line)#exit
#### Setting VTP sebagai Client ####
Switch 1(config)#vtp mode client
Switch 1(config)#vtp domain hacker-cisadane
Switch 1(config)#vtp password hacker-cisadane
#### Setting Trunk di Switch 1 ke arah Switch Core ####
Switch 1(config)#int fa0/24
Switch 1(config-if)#description **** Trunk Ke Switch Core ****
Switch 1(config-if)#switchport trunk encapsulation dot1q( lewatin aja di PT ud defaultnya)
Switch 1(config-if)#switch mode trunk
Switch 1(config-if)#no shut
Switch 1(config-if)#exit
#### Setting VLAN Membership untuk setiap port ####
Switch 1(config)#int range fa0/1-7
Switch 1(config-if-range)#description **** Connect to KONOHA VLAN ****
Switch 1(config-if-range)#switchport mode access
Switch 1(config-if-range)#switchport access vlan 2
Switch 1(config-if-range)#exit
Switch 1(config)#int range fa0/8-14
Switch 1(config-if-range)#description **** Connect to SUNA VLAN ****
Switch 1(config-if-range)#switchport mode access
Switch 1(config-if-range)#switchport access vlan 3
Switch 1(config-if-range)#exit
Switch 1(config)#int range fa0/15-21
Switch 1(config-if-range)#description **** Connect to AKATSUKI VLAN ****
Switch 1(config-if-range)#switchport mode access
Switch 1(config-if-range)#switchport access vlan 4
Switch 1(config-if-range)#exit
#### setting IP untuk VLAN 1 ####
Switch 1(config)#int vlan 1
Switch 1(config-if)#description **** Native VLAN ****
Switch 1(config-if)#ip add 192.168.0.11 255.255.255.0
Switch 1(config-if)#no shut
Switch 1(config-if)#exit
Switch 1(config)#ip default-gateway 192.168.0.1 (Settiing gateway si Switch 1)
Switch 1(config)#end
Switch 1#copy run start
Switch 1#
===============================================================
Switch 2 Konfigurasi
===============================================================
Switch>en
Switch#conf t
#### Setting Nama Switch ####
Switch(config)#hostname "Switch 2"
#### Setting password Switch ####
Switch 2(config)#enable secret cisco
#### Setting Password Telnet ####
Switch 2(config)#line vty 0 4
Switch 2(config-line)#password uchiha
Switch 2(config-line)#login
Switch 2(config-line)#exit
#### Setting VTP Client di Switch 2 ####
Switch 2(config)#vtp mode client
Switch 2(config)#vtp domain hacker-cisadane
Switch 2(config)#vtp password hacker-cisadane
#### Setting Trunk ke Switch Core di Switch 2 ####
Switch 2(config)#int fa0/24
Switch 2(config-if)#description **** Trunk ke Switch Core ****
Switch Core(config-if)#switchport trunk encapsulation dot1q( lewatin aja di PT ud defaultnya)
Switch 2(config-if)#switchport mode trunk
Switch 2(config-if)#no shut
Switch 2(config-if)#exit
#### Setting VLAN Membership untuk setiap port ####
Switch 2(config)#int range fa0/1-7
Switch 2(config-if-range)#description **** Connect ke KONOHA VLAN ****
Switch 2(config-if-range)#switchport mode access
Switch 2(config-if-range)#switchport access vlan 2
Switch 2(config-if-range)#int range fa0/8-14
Switch 2(config-if-range)#description **** Connect ke SUNA VLAN ****
Switch 2(config-if-range)#switchport mode access
Switch 2(config-if-range)#switchport access vlan 3
Switch 2(config-if-range)#exit
Switch 2(config)#int range fa0/15-21
Switch 2(config-if-range)#description **** Connect ke AKATSUKI VLAN ****
Switch 2(config-if-range)#switchport mode access
Switch 2(config-if-range)#switchport access vlan 4
Switch 2(config-if-range)#exit
#### Setting ip di VLAN 1 ####
Switch 2(config)#int vlan 1
Switch 2(config-if)#description **** Native VLAN ****
Switch 2(config-if)#ip add 192.168.0.12 255.255.255.0
Switch 2(config-if)#no shut
Switch 2(config-if)#exit
Switch 2(config)#ip default-gateway 192.168.0.1
Switch 2(config)#end
Switch 2#copy run start
Switch 2#
Sampe disini PC sudah dapat terkoneksi dengan sesama VLAN saja belum antar VLAN maka w pake 1 router agar bisa antar VLAN bisa berhubungan.
===============================================================
Router Konfigurasi
===============================================================
Router>en
Router#conf t
#### Setting Password Switch ####
Router(config)#enable secret cisco
#### Setting password telnet ####
Router(config)#line vty 0 4
Router(config-line)#password cisco
Router(config-line)#login
Router(config-line)#exit
#### tidak memberikan interface Fa0/0 IP ####
Router(config)#int fa0/0
Router(config-if)#no ip add
Router(config-if)#no shut
#### Setting ip di sub interface untuk VLAn 1,2,3,4 ####
Router(config-if)#int fa0/0.1
Router(config-subif)#encapsulation dot1Q 1
Router(config-subif)#ip add 192.168.0.1 255.255.255.0
Router(config-subif)#no shut
Router(config-subif)#int fa0/0.2
Router(config-subif)#encapsulation dot1Q 2
Router(config-subif)#ip add 192.168.1.1 255.255.255.0
Router(config-subif)#no shut
Router(config-subif)#int fa0/0.3
Router(config-subif)#encapsulation dot1Q 3
Router(config-subif)#ip add 192.168.2.1 255.255.255.0
Router(config-subif)#no shut
Router(config-subif)#int fa0/0.4
Router(config-subif)#encapsulation dot1Q 4
Router(config-subif)#ip add 192.168.3.1 255.255.255.0
Router(config-subif)#no shut
Router(config-subif)#end
Router#copy run start
Router#
Berikut Hasil Pingnya :
Router#p 192.168.1.100
!!!!!
Router#p 192.168.2.101
!!!!!
Router#p 192.168.3.101
!!!!!
Router#p 192.168.0.10
!!!!!
Router#p 192.168.0.11
!!!!!
Router#p 192.168.0.12
Sumber: http://shareit.ucoz.net/news/konfigurasi_vtp_virtual_trunking_protokol/2010-11-17-15 (dengan sedikit gubahan
0 komentar:
Posting Komentar