Apa itu VLAN ???
Vlan (Virtual Local Area Network) adalah kelompok device dalam sebuah LAN yang dikonfigurasi (menggunakan software management) sehingga meraka dapat saling berkomonikasi asalkan dihubungkan dengan jaringan yang sama walaupun secara fisikal mereka pada segmen LAN yang berbeda. Secara logika, VLAN membagi jaringan ke dalam beberapa subnetwork.VLAN juga mengijinkan banyak subnet dalam jaringan yang menggunakan switch yang sama.
Dibawah ini sedikit penjelasan mengenai perintah pada switch dalam pembuatan Vlan :
Switch_Vlan(config-if)#switchport mode trunk
Perintah di atas di gunakan untuk menandakan sebuah port yang difungsikan ketika ada hubungan antara dua switch atau router dan switch yang membawa lalu lintas lebih dari satu VLAN. Sebuah port trunk harus menjalankan protokol trunking khusus. Protokol yang digunakan akan menjadi milik Cisco link Inter-switch (ISL) atau standar IEEE 802.1q.
Switch_Vlan(config-if)#switchport trunk native vlan 1
Perintah di atas di gunakan untuk Vlan management (switchport trunk native vlan vlan-id)
Switch>enable
Switch#conf terminal
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#hostname roma
roma(config)#banner motd #Selamat Datang Di Switch_roma#
roma(config)#line console 0
roma(config-line)#password rian
roma(config-line)#login
roma(config-line)#exit
roma(config)#line vty 0 4
roma(config-line)#password rian
roma(config-line)#login
roma(config-line)#exit
roma(config)#enable password rian
roma(config)#enable secret rian
roma(config)#exit
%SYS-5-CONFIG_I: Configured from console by console
roma#conf terminal
Enter configuration commands, one per line. End with CNTL/Z.
roma(config)#vlan 2
roma(config-vlan)#name tk1
roma(config-vlan)#exit
roma(config)#vlan 3
roma(config-vlan)#name tk2
roma(config-vlan)#exit
roma(config)#vlan 4
roma(config-vlan)#name tk3
roma(config-vlan)#exit
roma(config)#vlan 5
roma(config-vlan)#name tk4
roma(config-vlan)#exit
roma(config)#vlan 6
roma(config-vlan)#name tk5
roma(config-vlan)#exit
roma(config)#vlan 7
roma(config-vlan)#name tk6
roma(config-vlan)#exit
roma(config)#vlan 8
roma(config-vlan)#name tk7
roma(config-vlan)#exit
roma(config)#vlan 9
roma(config-vlan)#name tk8
roma(config-vlan)#exit
roma(config)#vlan 10
roma(config-vlan)#name tk9
roma(config-vlan)#exit
roma(config)#vlan 11
roma(config-vlan)#name tk10
roma(config-vlan)#exit
roma(config)#interface fastEthernet 0/1
roma(config-if)#switchport mode trunk
roma(config-if)#switchport trunk
roma(config-if)#switchport trunk native vlan 1
roma(config-if)#exit
roma(config)#interface fastEthernet 0/2
roma(config-if)#switchport mode
roma(config-if)#switchport mode access
roma(config-if)#switchport access vlan 2
roma(config-if)#exit
roma(config)#interface fastEthernet 0/3
roma(config-if)#switchport mode access
roma(config-if)#switchport access vlan 3
roma(config-if)#exit
roma(config)#interface fastEthernet 0/4
roma(config-if)#switchport mode access
roma(config-if)#switchport access vlan 4
roma(config-if)#exit
roma(config)#interface fastEthernet 0/5
roma(config-if)#switchport mode access
roma(config-if)#switchport access vlan 5
roma(config-if)#exit
roma(config)#interface fastEthernet 0/6
roma(config-if)#switchport mode access
roma(config-if)#switchport access vlan 6
roma(config-if)#exit
roma(config)#interface fastEthernet 0/7
roma(config-if)#switchport mode access
roma(config-if)#switchport access vlan 7
roma(config-if)#exit
roma(config)#interface fastEthernet 0/8
roma(config-if)#switchport mode access
roma(config-if)#switchport access vlan 8
roma(config-if)#exit
roma(config)#interface fastEthernet 0/9
roma(config-if)#switchport mode access
roma(config-if)#switchport access vlan 9
roma(config-if)#exit
roma(config)#interface fastEthernet 0/10
roma(config-if)#switchport mode access
roma(config-if)#switchport access vlan 10
roma(config-if)#exit
roma(config)#interface fastEthernet 0/11
roma(config-if)#switchport mode access
roma(config-if)#switchport access vlan 11
roma(config-if)#exit
roma(config)#^Z
roma#
%SYS-5-CONFIG_I: Configured from console by console
roma#
roma#coopy run start
^
% Invalid input detected at '^' marker.
roma#copy run start
Destination filename [startup-config]?
Building configuration...
[OK]
roma#sh vlan
VLAN Name Status Ports
---- -------------------------------- --------- -------------------------------
1 default active Fa0/1, 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
2 tk1 active Fa0/2
3 tk2 active Fa0/3
4 tk3 active Fa0/4
5 tk4 active Fa0/5
6 tk5 active Fa0/6
7 tk6 active Fa0/7
8 tk7 active Fa0/8
9 tk8 active Fa0/9
10 tk9 active Fa0/10
11 tk10 active Fa0/11
1002 fddi-default act/unsup
1003 token-ring-default act/unsup
1004 fddinet-default act/unsup
1005 trnet-default act/unsup
--More--
________________________________________________________________
ROUTER
Router>enable
Router#conf terminal
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#hostname roma
roma(config)#banner motd #Selamat Datang Di Router_roma#
roma(config)#line console 0
roma(config-line)#password rian
roma(config-line)#login
roma(config-line)#exit
roma(config)#line vty 0 4
roma(config-line)#password rian
roma(config-line)#login
roma(config-line)#exit
roma(config)#enable password rian
roma(config)#enable secret rian
roma(config)#interface fastEthernet 0/0
roma(config-if)#no shutdown
%LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to up
roma(config-if)#exit
roma(config)#interface fastEthernet 0/0.2
%LINK-5-CHANGED: Interface FastEthernet0/0.2, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0.2, changed state to up
roma(config-subif)#encapsulation dot1Q 2
roma(config-subif)#ip address 192.168.2.1 255.255.255.0
roma(config-subif)#exit
roma(config)#interface fastEthernet 0/0.3
%LINK-5-CHANGED: Interface FastEthernet0/0.3, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0.3, changed state to up
roma(config-subif)#encapsulation dot1Q 3
roma(config-subif)#ip address 192.168.3.1 255.255.255.0
roma(config-subif)#exit
roma(config)#interface fastEthernet 0/0.4
%LINK-5-CHANGED: Interface FastEthernet0/0.4, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0.4, changed state to up
roma(config-subif)#encapsulation dot1Q 4
roma(config-subif)#ip address 192.168.4.1 255.255.255.0
roma(config-subif)#exit
roma(config)#interface fastEthernet 0/0.5
%LINK-5-CHANGED: Interface FastEthernet0/0.5, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0.5, changed state to up
roma(config-subif)#encapsulation dot1Q 5
roma(config-subif)#ip address 192.168.5.1 255.255.255.0
roma(config-subif)#exit
roma(config)#interface fastEthernet 0/0.6
%LINK-5-CHANGED: Interface FastEthernet0/0.6, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0.6, changed state to up
roma(config-subif)#encapsulation dot1Q 6
roma(config-subif)#ip address 192.168.6.1 255.255.255.0
roma(config-subif)#exit
roma(config)#interface fastEthernet 0/0.7
%LINK-5-CHANGED: Interface FastEthernet0/0.7, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0.7, changed state to up
roma(config-subif)#encapsulation dot1Q 7
roma(config-subif)#ip address 192.168.7.1 255.255.255.0
roma(config-subif)#exit
roma(config)#interface fastEthernet 0/0.8
%LINK-5-CHANGED: Interface FastEthernet0/0.8, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0.8, changed state to up
roma(config-subif)#encapsulation dot1Q 8
roma(config-subif)#ip address 192.168.8.1 255.255.255.0
roma(config-subif)#exit
roma(config)#interface fastEthernet 0/0.9
%LINK-5-CHANGED: Interface FastEthernet0/0.9, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0.9, changed state to up
roma(config-subif)#encapsulation dot1Q 9
roma(config-subif)#ip address 192.168.9.1 255.255.255.0
roma(config-subif)#exit
roma(config)#interface fastEthernet 0/0.10
%LINK-5-CHANGED: Interface FastEthernet0/0.10, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0.10, changed state to up
roma(config-subif)#encapsulation dot1Q 10
roma(config-subif)#ip address 192.168.10.1 255.255.255.0
roma(config-subif)#exit
roma(config)#interface fastEthernet 0/0.11
%LINK-5-CHANGED: Interface FastEthernet0/0.11, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0.11, changed state to up
roma(config-subif)#encapsulation dot1Q 11
roma(config-subif)#ip address 192.168.11.1 255.255.255.0
roma(config-subif)#exit
roma(config)#ip dhcp pool rian
roma(dhcp-config)#default-router 192.168.2.1
roma(dhcp-config)#network 192.168.2.0 255.255.255.0
roma(dhcp-config)#exit
roma(config)#ip dhcp pool rian2
roma(dhcp-config)#default-router 192.168.3.1
roma(dhcp-config)#network 192.168.3.0 255.255.255.0
roma(dhcp-config)#exit
roma(config)#ip dhcp pool rian3
roma(dhcp-config)#default-router 192.168.4.1
roma(dhcp-config)#network 192.168.4.0 255.255.255.0
roma(dhcp-config)#exit
roma(config)#ip dhcp pool rian4
roma(dhcp-config)#default-router 192.168.5.1
roma(dhcp-config)#network 192.168.5.0 255.255.255.0
roma(dhcp-config)#exit
roma(config)#ip dhcp pool rian5
roma(dhcp-config)#default-router 192.168.6.1
roma(dhcp-config)#network 192.168.6.0 255.255.255.0
roma(dhcp-config)#exit
roma(config)#ip dhcp pool rian6
roma(dhcp-config)#default-router 192.168.7.1
roma(dhcp-config)#network 192.168.7.0 255.255.255.0
roma(dhcp-config)#exit
roma(config)#ip dhcp pool rian7
roma(dhcp-config)#default-router 192.168.8.1
roma(dhcp-config)#network 192.168.8.0 255.255.255.0
roma(dhcp-config)#exit
roma(config)#ip dhcp pool rian8
roma(dhcp-config)#default-router 192.168.9.1
roma(dhcp-config)#network 192.168.9.0 255.255.255.0
roma(dhcp-config)#exit
roma(config)#ip dhcp pool rian9
roma(dhcp-config)#ip dhcp pool rian8
roma(dhcp-config)#default-router 192.168.8.1
roma(dhcp-config)#network 192.168.9.0 255.255.255.0
roma(dhcp-config)#exit
roma(config)#ip dhcp pool rian9
roma(dhcp-config)#default-router 192.168.10.1
roma(dhcp-config)#network 192.168.10.0 255.255.255.0
roma(dhcp-config)#exit
roma(config)#ip dhcp pool rian10
roma(dhcp-config)#default-router 192.168.11.1
roma(dhcp-config)#network 192.168.11.0 255.255.255.0
roma(dhcp-config)#exit
roma(config)#^Z
roma#
%SYS-5-CONFIG_I: Configured from console by console
roma#copy run start
Destination filename [startup-config]?
Building configuration...
[OK]
roma#
Download Doc
Download Pdf
Download Packet Tracer
aaaaaa
BalasHapusrada
Transmisi Data
Transmisi Data
BalasHapus