120 likes | 144 Views
VLAN (Virtual Local Area Network). By Kustanto. 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. Topologi VLAN.
E N D
VLAN(Virtual Local Area Network) By Kustanto by Kustanto,S.T.,M.Eng.
Definisi • Merupakansuatu switch network yang disegmensecaralogikamenurutfungsi, bagianataudepartementanpaharusberdasarkanlokasisebenarnyadaripemakaisepertitampakpadagambarberikut by Kustanto,S.T.,M.Eng.
Topologi VLAN by Kustanto,S.T.,M.Eng.
Secara default semua port Cisco Catalyst Switch adalahmiliknya VLAN1 yaitu VLAN manajemen switch. Jikadikehendaki, port-port dapatdimasukkanmenjadimiliksuatu VLAN baru. Cara menerapkansuatu interface port kesuatu VLAN adalahdenganmengetikkanperintah-perintahsepertiberikut : by Kustanto,S.T.,M.Eng.
Switch0>en • Switch0#conf t • Switch0(config)#<namaVlan> • Switch0(config)#int <namaethernet /port> • Switch0(config-if)#switchport access <namaVlan> • Switch0(config-if)#end • Switch0#wr mem • Switch0# by Kustanto,S.T.,M.Eng.
Sebagaicontoh, jikakitahendakmemberinama Vlan2 (PC0 & PC1) dan Vlan3 (PC2 & PC3) dengan IP address 192.168.0.1 – 192.168.0.4 dengantopologijaringansbb: by Kustanto,S.T.,M.Eng.
Switch0>en • Switch0#conf t • Switch0(config)#vlan 2 • Switch0(config-vlan)#exit • Switch0(config)#vlan 3 • Switch0(config-vlan)#exit • Switch0(config)#int fa0/0 • Switch0(config-if)#switchport access vlan 2 • Switch0(config-if)#exit • Switch0(config)#int fa1/0 • Switch0(config-if)#switchport access vlan 2 • Switch0(config-if)#exit • Switch0(config)#int fa2/0 • Switch0(config-if)#switchport access vlan 3 • Switch0(config-if)#exit • Switch0(config)#int fa3/0 • Switch0(config-if)#switchport access vlan 3 • Switch0(config-if)#end • Switch0#wr mem • Switch0# by Kustanto,S.T.,M.Eng.
TRUNK VLAN TRUNK VLAN 2 VLAN 3 VLAN 2 VLAN 3 VLAN VLAN IP address : 172.16.0.1/16 – 172.16.0.4 /16 by Kustanto,S.T.,M.Eng.
TRUNK VLAN Switch0(config)#int fa2/0 Switch0(config-if)#switchport mode trunk Switch0(config-if)#switchport trunk allowed vlan add 2 Switch0(config-if)#switchport trunk allowed vlan add 3 Switch1(config)#int fa2/0 Switch1(config-if)#switchport mode trunk Switch1(config-if)#switchport trunk allowed vlan add 2 Switch1(config-if)#switchport trunk allowed vlan add 3 Switch 0: Switch0>en Switch0#conf t Switch0(config)#vlan 2 Switch0(config-vlan)#exit Switch0(config)#vlan 3 Switch0(config-vlan)#exit Switch0(config)#int fa0/0 Switch0(config-if)#switchport access vlan 2 Switch0(config-if)#no shutdown Switch0(config-if)#exit Switch0(config)#int fa1/0 Switch0(config-if)#switchport access vlan 3 Switch0(config-if)#no shutdown Switch0(config-if)#exit Switch 1 : Switch1>en Switch1#conf t Switch1(config)#vlan 2 Switch1(config-vlan)#exit Switch1(config)#vlan 3 Switch1(config-vlan)#exit Switch1(config)#int fa0/0 Switch1(config-if)#switchport access vlan 2 Switch1(config-if)#no shutdown Switch1(config-if)#exit Switch1(config)#int fa1/0 Switch1(config-if)#switchport access vlan 3 Switch1(config-if)#no shutdown Switch1(config-if)#exit IP address : 172.16.0.1/16 – 172.16.0.4 /16 by Kustanto,S.T.,M.Eng.
Konfigurasi : • Switch 0: • Switch0>en • Switch0#conf t • Switch0(config)#vlan 2 • Switch0(config-vlan)#exit • Switch0(config)#vlan 3 • Switch0(config-vlan)#exit • Switch0(config)#int fa0/0 • Switch0(config-if)#switchport access vlan 2 • Switch0(config-if)#no shutdown • Switch0(config-if)#exit • Switch0(config)#int fa1/0 • Switch0(config-if)#switchport access vlan 3 • Switch0(config-if)#no shutdown • Switch0(config-if)#exit • Switch0(config)#int fa2/0 • Switch0(config-if)#switchport mode trunk • Switch0(config-if)#switchport trunk allowed vlan add 2 • Switch0(config-if)#switchport trunk allowed vlan add 3 • Switch0(config-if)#no shutdown • Switch0(config-if)#end • Switch0#wr mem • Switch0# by Kustanto,S.T.,M.Eng.
Switch 1 : • Switch1>en • Switch1#conf t • Switch1(config)#vlan 2 • Switch1(config-vlan)#exit • Switch1(config)#vlan 3 • Switch1(config-vlan)#exit • Switch1(config)#int fa0/0 • Switch1(config-if)#switchport access vlan 2 • Switch1(config-if)#no shutdown • Switch1(config-if)#exit • Switch1(config)#int fa1/0 • Switch1(config-if)#switchport access vlan 3 • Switch1(config-if)#no shutdown • Switch1(config-if)#exit • Switch1(config)#int fa2/0 • Switch1(config-if)#switchport mode trunk • Switch1(config-if)#switchport trunk allowed vlan add 2 • Switch1(config-if)#switchport trunk allowed vlan add 3 • Switch1(config-if)#no shutdown • Switch1(config-if)#end • Switch1#wr mem by Kustanto,S.T.,M.Eng.