VLAN Virtual Local Area Network By Kustanto 1252022
VLAN (Virtual Local Area Network) By Kustanto 1/25/2022 by Kustanto, S. T. , M. Eng. 1
Definisi • Merupakan suatu switch network yang disegmen secara logika menurut fungsi, bagian atau departemen tanpa harus berdasarkan lokasi sebenarnya dari pemakai seperti tampak pada gambar berikut 1/25/2022 by Kustanto, S. T. , M. Eng. 2
Topologi VLAN 1/25/2022 by Kustanto, S. T. , M. Eng. 3
• Secara default semua port Cisco Catalyst Switch adalah miliknya VLAN 1 yaitu VLAN manajemen switch. Jika dikehendaki, port dapat dimasukkan menjadi milik suatu VLAN baru. Cara menerapkan suatu interface port kesuatu VLAN adalah dengan mengetikkan perintah-perintah seperti berikut : 1/25/2022 by Kustanto, S. T. , M. Eng. 4
Switch 0>en Switch 0#conf t Switch 0(config)#<nama Vlan> Switch 0(config)#int <nama ethernet /port> Switch 0(config-if)#switchport access <nama Vlan> • Switch 0(config-if)#end • Switch 0#wr mem • Switch 0# • • • 1/25/2022 by Kustanto, S. T. , M. Eng. 5
• Sebagai contoh, jika kita hendak memberi nama Vlan 2 (PC 0 & PC 1) dan Vlan 3 (PC 2 & PC 3) dengan IP address 192. 168. 0. 1 – 192. 168. 0. 4 dengan topologi jaringan sbb: 1/25/2022 by Kustanto, S. T. , M. Eng. 6
• • • • • Switch 0>en Switch 0#conf t Switch 0(config)#vlan 2 Switch 0(config-vlan)#exit Switch 0(config)#vlan 3 Switch 0(config-vlan)#exit Switch 0(config)#int fa 0/0 Switch 0(config-if)#switchport access vlan 2 Switch 0(config-if)#exit Switch 0(config)#int fa 1/0 Switch 0(config-if)#switchport access vlan 2 Switch 0(config-if)#exit Switch 0(config)#int fa 2/0 Switch 0(config-if)#switchport access vlan 3 Switch 0(config-if)#exit Switch 0(config)#int fa 3/0 Switch 0(config-if)#switchport access vlan 3 Switch 0(config-if)#end Switch 0#wr mem Switch 0# 1/25/2022 by Kustanto, S. T. , M. Eng. 7
TRUNK VLAN 2 VLAN 3 VLAN IP address : 172. 16. 0. 1/16 – 172. 16. 0. 4 /16 1/25/2022 by Kustanto, S. T. , M. Eng. 8
TRUNK VLAN Switch 0(config)#int fa 2/0 Switch 0(config-if)#switchport mode trunk Switch 0(config-if)#switchport trunk allowed vlan add 2 Switch 0(config-if)#switchport trunk allowed vlan add 3 Switch 1(config)#int fa 2/0 Switch 1(config-if)#switchport mode trunk Switch 1(config-if)#switchport trunk allowed vlan add 2 Switch 1(config-if)#switchport trunk allowed vlan add 3 Switch 0: Switch 0>en Switch 0#conf t Switch 0(config)#vlan 2 Switch 0(config-vlan)#exit Switch 0(config)#vlan 3 Switch 0(config-vlan)#exit Switch 0(config)#int fa 0/0 Switch 0(config-if)#switchport access vlan 2 Switch 0(config-if)#no shutdown Switch 0(config-if)#exit Switch 0(config)#int fa 1/0 Switch 0(config-if)#switchport access vlan 3 Switch 0(config-if)#no shutdown Switch 0(config-if)#exit Switch 1 : Switch 1>en Switch 1#conf t Switch 1(config)#vlan 2 Switch 1(config-vlan)#exit Switch 1(config)#vlan 3 Switch 1(config-vlan)#exit Switch 1(config)#int fa 0/0 Switch 1(config-if)#switchport access vlan 2 Switch 1(config-if)#no shutdown Switch 1(config-if)#exit Switch 1(config)#int fa 1/0 Switch 1(config-if)#switchport access vlan 3 Switch 1(config-if)#no shutdown Switch 1(config-if)#exit IP address : 172. 16. 0. 1/16 – 172. 16. 0. 4 /16 1/25/2022 by Kustanto, S. T. , M. Eng. 9
• • • • • • • Konfigurasi : Switch 0>en Switch 0#conf t Switch 0(config)#vlan 2 Switch 0(config-vlan)#exit Switch 0(config)#vlan 3 Switch 0(config-vlan)#exit Switch 0(config)#int fa 0/0 Switch 0(config-if)#switchport access vlan 2 Switch 0(config-if)#no shutdown Switch 0(config-if)#exit Switch 0(config)#int fa 1/0 Switch 0(config-if)#switchport access vlan 3 Switch 0(config-if)#no shutdown Switch 0(config-if)#exit Switch 0(config)#int fa 2/0 Switch 0(config-if)#switchport mode trunk Switch 0(config-if)#switchport trunk allowed vlan add 2 Switch 0(config-if)#switchport trunk allowed vlan add 3 Switch 0(config-if)#no shutdown Switch 0(config-if)#end Switch 0#wr mem Switch 0# 1/25/2022 by Kustanto, S. T. , M. Eng. 10
• • • • • • Switch 1 : Switch 1>en Switch 1#conf t Switch 1(config)#vlan 2 Switch 1(config-vlan)#exit Switch 1(config)#vlan 3 Switch 1(config-vlan)#exit Switch 1(config)#int fa 0/0 Switch 1(config-if)#switchport access vlan 2 Switch 1(config-if)#no shutdown Switch 1(config-if)#exit Switch 1(config)#int fa 1/0 Switch 1(config-if)#switchport access vlan 3 Switch 1(config-if)#no shutdown Switch 1(config-if)#exit Switch 1(config)#int fa 2/0 Switch 1(config-if)#switchport mode trunk Switch 1(config-if)#switchport trunk allowed vlan add 2 Switch 1(config-if)#switchport trunk allowed vlan add 3 Switch 1(config-if)#no shutdown Switch 1(config-if)#end Switch 1#wr mem 1/25/2022 by Kustanto, S. T. , M. Eng. 11
- Slides: 11