VLAN?
VLAN kependekan dari Virtual LAN, suatu metoda yang ada di switch manageable. Dimana seolah olah terdapat lebih dari 1 LAN di perangkat switch tersebut.
Keuntungan
- Memudahkan pemindahan host di suatu LAN
- Memudahkan memasukkan host ke suatu LAN
- Memudahkan mengubah konfigurasi LAN
- Memudahkan mengawasi trafik jaringan
- Meningkatkan keamanan
Gunakan pakcekt tracer.
- Ada 2 vlan: vlan 10 dengan nama MARKETING dan vlan 20 dengan nama SALES
- Ada 4 host yang terkoneksi ke 1 switch.
Membuat VLAN pada switch (vlan 10 dan vlan 20)
Switch#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#vlan 10
Switch(config-vlan)#name MARKETING
Switch(config-vlan)#exit
Switch(config)#vlan 20
Switch(config-vlan)#name SALES
Switch(config-if)#switchport mode access
Switch(config-if)#switchport access vlan 10
Switch(config-if)#int f0/1
Switch(config-if)#switchport mode access
Switch(config-if)#switchport access vlan 10
Switch(config-if)#int f0/2
Switch(config-if)#switchport mode access
Switch(config-if)#switchport access vlan 20
Switch(config-if)#int f0/3
Switch(config-if)#switchport mode access
Switch(config-if)#switchport access vlan 20
Switch#sh 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
Gig0/1, Gig0/2
10 MARKETING active Fa0/1
20 SALES active Fa0/2, Fa0/3, Fa0/4
1002 fddi-default active
1003 token-ring-default active
1004 fddinet-default active
1005 trnet-default active
VLAN Type SAID MTU Parent RingNo BridgeNo Stp BrdgMode Trans1 Trans2
---- ----- ---------- ----- ------ ------ -------- ---- -------- ------ ------
1 enet 100001 1500 - - - - - 0 0
10 enet 100010 1500 - - - - - 0 0
20 enet 100020 1500 - - - - - 0 0
1002 fddi 101002 1500 - - - - - 0 0
1003 tr 101003 1500 - - - - - 0 0
1004 fdnet 101004 1500 - - - ieee - 0 0
1005 trnet 101005 1500 - - - ibm - 0 0
Remote SPAN VLANs
------------------------------------------------------------------------------
Primary Secondary Type Ports
------- --------- ----------------- ------------------------------------------
Lakukan tes ping di tiap PC.
Lakukan perintah show mac-address-table, untuk melihat mac address tabel.
Switch#sh mac-address-table
Mac Address Table
-------------------------------------------
Vlan Mac Address Type Ports
---- ----------- -------- -----
10 0001.c734.3dd1 DYNAMIC Fa0/2
10 0040.0be0.59e5 DYNAMIC Fa0/1
20 0001.639d.b062 DYNAMIC Fa0/4
20 0004.9a52.a7e4 DYNAMIC Fa0/3
Download file packet tracer di sini
Switch(config)#vlan 10
Switch(config-vlan)#name MARKETING
Switch(config-vlan)#exit
Switch(config)#vlan 20
Switch(config-vlan)#name SALES
Assign VLAN ke tiap portSwitch(config)#int f0/1
Switch(config-if)#switchport mode access
Switch(config-if)#switchport access vlan 10
Switch(config-if)#int f0/1
Switch(config-if)#switchport mode access
Switch(config-if)#switchport access vlan 10
Switch(config-if)#int f0/2
Switch(config-if)#switchport mode access
Switch(config-if)#switchport access vlan 20
Switch(config-if)#int f0/3
Switch(config-if)#switchport mode access
Switch(config-if)#switchport access vlan 20
Verifikasi vlanJalankan perintah show vlan
Switch#sh 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
Gig0/1, Gig0/2
10 MARKETING active Fa0/1
20 SALES active Fa0/2, Fa0/3, Fa0/4
1002 fddi-default active
1003 token-ring-default active
1004 fddinet-default active
1005 trnet-default active
VLAN Type SAID MTU Parent RingNo BridgeNo Stp BrdgMode Trans1 Trans2
---- ----- ---------- ----- ------ ------ -------- ---- -------- ------ ------
1 enet 100001 1500 - - - - - 0 0
10 enet 100010 1500 - - - - - 0 0
20 enet 100020 1500 - - - - - 0 0
1002 fddi 101002 1500 - - - - - 0 0
1003 tr 101003 1500 - - - - - 0 0
1004 fdnet 101004 1500 - - - ieee - 0 0
1005 trnet 101005 1500 - - - ibm - 0 0
Remote SPAN VLANs
------------------------------------------------------------------------------
Primary Secondary Type Ports
------- --------- ----------------- ------------------------------------------
Cek koneksi antar hostSetting IP di ke 4 host dengan IP 10.10.10.10/24 dan 10.10.10.11/24 untuk PC yang berada di VLAN 10 dan IP 20.20.20.20/24 dan 20.20.20.21/24 untuk PC yang berada di VLAN 20.
Lakukan tes ping di tiap PC.
Lakukan perintah show mac-address-table, untuk melihat mac address tabel.
Switch#sh mac-address-table
Mac Address Table
-------------------------------------------
Vlan Mac Address Type Ports
---- ----------- -------- -----
10 0001.c734.3dd1 DYNAMIC Fa0/2
10 0040.0be0.59e5 DYNAMIC Fa0/1
20 0001.639d.b062 DYNAMIC Fa0/4
20 0004.9a52.a7e4 DYNAMIC Fa0/3
Download file packet tracer di sini
Tidak ada komentar:
Posting Komentar