Konfigurasi VLAN pada Cisco Catalyst Switch

Konfigurasi VLAN pada Cisco Catalyst Switch

Task 1: Konfigurasi VTP
(config)# vtp mode server à switch-A
(config)# vtp mode client à switch-B
(config)# vtp domain ccna

Task 2: Konfigurasi VLAN Trunking
SWITCH-A:
(config)# int f0/12
(config-if)# description  *** TO Fa0/12 SWITCH-B ***
(config-if)# switchport mode trunk

(config-if)# int f0/10
(config-if)# description  *** TO  Fa0/0  ROUTER***
(config-if)# switchport mode trunk
(config-if)# exit

SWITCH-B:
(config)# int f0/12
(config-if)# description  *** TO Fa0/12 SWITCH-A ***
(config-if)# switchport mode trunk
(config-if)# exit

Task 3: Membuat VLAN
(config)# vlan 2
(config-vlan)# name cyro-2
(config-vlan)# vlan 3
(config-vlan)# name cyro-3
(config-vlan)# exit

Task 4: Konfigurasi VLAN-membership
SWITCH-A:
(config-if)# int f0/2
(config-if)# description *** TO PC-A ***
(config-if)# switchport mode access
(config-if)# switchport access vlan 2

SWITCH-B:
(config-if)# int f0/2
(config-if)# description *** TO PC-B ***
(config-if)# switchport mode access
(config-if)# switchport access vlan 3

ALL SWITCHES:
# copy run start
# sh int f0/12 switchport
# sh int f0/12 trunk
# sh vlan
# sh vtp status

Task 5: Konfigurasi Router-on-a-stick
Router:
> enable
# erase start

Tunggu sampai selesai booting:
Would you like to enter initial configuration? n

> enable
# conf t
(config)# int f0/0
(config-if)# desc    *** TO VLAN-1 ***
(config-if)# ip address 10.1.1.1 255.255.255.0
(config-if)# no shutdown

(config-if)# int f0/0.2
(config-subif)# desc  *** TO VLAN-2 ***
(config-subif)# encap dot1q 2
(config-subif)# ip address 10.1.2.1 255.255.255.0

  
(config-subif)# int f0/0.3
(config-subif)# desc   *** TO VLAN-3 ***
(config-subif)# encap dot1q 3
(config-subif)# ip address 10.1.3.1 255.255.255.0
(config-subif)# end

# sh ip route       è melihat routing table
# ping 10.1.1.10
# ping 10.1.1.20

Verifikasi:
PC-A:
C:> ping 10.1.2.1  à gateway-nya (vlan 2)
C:> ping 10.1.1.10  à switch-A (vlan 1)
C:> ping 10.1.1.20
C:> ping 10.1.3.1 à vlan 3
C:> ping 10.1.3.21 à vlan 3

Task 6: Menghapus Konfigurasi VLAN:
Router:
# erase start
# reload

ALL SWITCHES:
(config)# vtp mode transparent

(config)# int range f0/1 – 12
(config-if-range)# switchport mode access
(config-if-range)# switchport access vlan 1
(config-if-range)# exit

(config)# no vlan 2
(config)# no vlan 3
(config)# end
# copy run start

Back To Top