Sabtu, 04 November 2017
Minggu, 29 November 2015
cara setting vlan
Cara Membuat VLAN Simple
Pada Cisco
VLAN disebut
juga virtual LAN, pada tutorial kali ini akan dijelaskan bagaiman membuat VLAN
pada CISCO. disini saya memakai simulasi CISCO yaitu Packet Tracer V5,
sedangkan definisi VLAN sendiri anda bisa melihat disini
kita akan
membuat 3 valan yaitu :
1. vlan 30 dosen
2. vlan 40 mahasiswa
3. vlan 50 karyawan
1. vlan 30 dosen
2. vlan 40 mahasiswa
3. vlan 50 karyawan
berikut
gambarannya :
definisikan
ip address gateway di router dengan membuat interface virtual :
– untuk
gateway vlan 30
Router>enable
Password:
Router#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#interface fa0/0.30
Router(config-subif)#encapsulation dot1Q 30
Router(config-subif)#ip address 192.168.30.254
255.255.255.0
Router(config-if)#exit
Router(config)#exit
%SYS-5-CONFIG_I: Configured from console by console
– untuk
gateway vlan 40
Router>enable
Password:
Router#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#interface fa0/0.40
Router(config-subif)#encapsulation dot1Q 40
Router(config-subif)#ip address 192.168.40.254
255.255.255.0
Router(config-if)#exit
Router(config)#exit
%SYS-5-CONFIG_I: Configured from console by console
– untuk
gateway vlan 50
Router>enable
Password:
Router#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#interface fa0/0.50
Router(config-subif)#encapsulation dot1Q 50
Router(config-subif)#ip address 192.168.50.254
255.255.255.0
Router(config-if)#exit
Router(config)#exit
%SYS-5-CONFIG_I: Configured from console by console
Lalu kita
setting switchnya, langkah-langkahnya sebagai berikut :
– Definisikan Vlan :
– Definisikan Vlan :
Switch#vlan database
Switch(vlan)#vlan 30 name Dosen
Switch(vlan)#vlan 40 name Mahasiswa
Switch(vlan)#vlan 50 name Karyawan
–
Delegasikan port untuk mengakses tiap-tiap Vlan yang sudah didefinisikan :
Switch>enable
Switch#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#interface fa0/1 -> Menuju router
Switch(config-if)#switchport mode trunk
Switch(config-if)#exit
Switch(config)#interface fa0/2 -> Menuju PC Dosen
Switch(config-if)#switchport access vlan 30
Switch(config-if)#exit
Switch(config)#interface fa0/3 -> Menuju PC
Mahasiswa
Switch(config-if)#switchport access vlan 40
Switch(config-if)#exit
Switch(config)#interface fa0/4 -> Menuju PC
Karyawan
Switch(config-if)#switchport access vlan 50
Switch(config-if)#exit
– verifikasi
vlan
Switch#show vlan
VLAN Name Status Ports
---- -------------------------------- ---------
-------------------------------
1
default
active 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
30 dosen active Fa0/2
40
mahasiswa
active Fa0/3
50
karyawan
active Fa0/4
Setting IP
masing – masing PC :
- PC 0 :
IP Address………………….: 192.168.30.1
Subnet Mask…………………: 255.255.255.0
Default Gateway……………..: 192.168.30.254
- PC 1 :
IP Address………………….: 192.168.40.1
Subnet Mask…………………: 255.255.255.0
Default Gateway……………..: 192.168.40.254
- PC 2 :
IP Address………………….: 192.168.50.1
Subnet Mask…………………: 255.255.255.0
Default Gateway……………..: 192.168.50.254
– Test Ping
ke router dan ke masing – masin pc :
PC>ipconfig