Jumat, 07 Februari 2014

konfigurasi data VLAN

Pengertian VLAN : klik

Langkah-langkahnya :

  1. Siapkan topologinya
  2. PC 0-3 diberi ip 192.168.1.3-192.168.1.254 dan dihubungkan di FastEthernet 0/11 - 0/13
  3. PC 4-6 diberi ip 192.168.2.3-192.168.2.254 dan dihubungkan di FastEthernet 0/14 - 0/16
  4. PC 7-9 diberi ip 192.168.3.3-192.168.3.254 dan dihubungkan di FastEthernet 0/17 - 0/19
  5. Setting Switchnya
  6. Menambahkan 3 Vlan
    Switch>enable
    Switch#
    vlan database
    Switch(vlan)#vlan 10 name dosen
    Switch(vlan)#vlan 20 name student
    Switch(vlan)#vlan 30 name admin
    Switch(vlan)#
    exit
  7. Menambahkan ip address di Vlan 10
    Switch#configure terminal
    Switch(config)#interface Vlan 10
    Switch(config-if)#ip address 192.168.1.2 255.255.255.0
    Switch(config-if)#no shutdown
    Switch(config-if)#exit
    Switch(config)#end
  8. Menambahkan ip address di Vlan 20
    Switch#configure terminal
    Switch(config)#interface Vlan 20
    Switch(config-if)#ip address 192.168.2.2 255.255.255.0
    Switch(config-if)#no shutdown
    Switch(config-if)#exit
    Switch(config)#end
  9. Menambahkan ip address di Vlan 30
    Switch#configure terminal
    Switch(config)#interface Vlan 30
    Switch(config-if)#ip address 192.168.3.2 255.255.255.0
    Switch(config-if)#no shutdown
    Switch(config-if)#exit
    Switch(config)#end
  10. Memasukkan PC yang terhubung ke VLan 10
    Switch(config)#interface fastethernet 0/11
    Switch(config-if)#switchport mode access
    Switch(config-if)#switchport access vlan 10
    Switch(config-if)#no shutdown
    Switch(config-if)#exit
    Switch(config)#interface fastethernet 0/12

    Switch(config-if)#switchport mode access
    Switch(config-if)#switchport access vlan 10
    Switch(config-if)#no shutdown
    Switch(config-if)#exit
    Switch(config)#interface fastethernet 0/13

    Switch(config-if)#switchport mode access
    Switch(config-if)#switchport access vlan 10
    Switch(config-if)#no shutdown
    Switch(config-if)#exit
  11. Memasukkan PC yang terhubung ke VLan 20
    Switch(config)#interface fastethernet 0/14
    Switch(config-if)#switchport mode access
    Switch(config-if)#switchport access vlan 20
    Switch(config-if)#no shutdown
    Switch(config-if)#exi
    Switch(config)#interface fastethernet 0/15
    Switch(config-if)#switchport mode access
    Switch(config-if)#switchport access vlan 20
    Switch(config-if)#no shutdown
    Switch(config-if)#exi
    Switch(config)#interface fastethernet 0/16
    Switch(config-if)#switchport mode access
    Switch(config-if)#switchport access vlan 20
    Switch(config-if)#no shutdown
    Switch(config-if)#exi
  12. Memindahkan PC yang terhubung ke VLan 30
    Switch(config)#interface fastethernet 0/17
    Switch(config-if)#switchport mode access
    Switch(config-if)#switchport access vlan 30
    Switch(config-if)#no shutdown
    Switch(config-if)#exit
    Switch(config)#interface fastethernet 0/18
    Switch(config-if)#switchport mode access
    Switch(config-if)#switchport access vlan 30
    Switch(config-if)#no shutdown
    Switch(config-if)#exit
    Switch(config)#interface fastethernet 0/19
    Switch(config-if)#switchport mode access
    Switch(config-if)#switchport access vlan 30
    Switch(config-if)#no shutdown
    Switch(config-if)#exit
  13. Hasilnya
  14. Test ping dari Switch ke semua PC yang ada di VLan
  15. Test ping dari PC di Vlan 1 ke PC di Vlan 2 (jika VLan jadi maka hasil ping akan Request Time Out)
  16. Test ping dari PC di Vlan 2 ke PC di Vlan 3 (jika VLan jadi maka hasil ping akan Request Time Out)
  17. Test ping dari PC di Vlan 3 ke PC di Vlan 1 (jika VLan jadi maka hasil ping akan Request Time Out)

2 komentar: