Cara Membuat Jaringan VLAN
1. kebutuhannya
- Komputer
- switch
- Server
- Router
- kabel straight dan kabel Cross
2. Kemudian Gambar seperti gambar di atas
3. Atur IP Address menggunakan DHCP
LAB 1:
Server : IP Address 192.168.1.1/24
Gateway 192.168.1.248
LAB 2:
Server : IP Address 192.168.2.1/24
Gateway 192.168.2.248
LAB 3:
Server : IP Address 192.168.3.1/24
Gateway 192.168.3.248
LAB Bahasa:
Server : IP Address 192.168.4.1/24
Gateway 192.168.4.248
4. kemudian kita atur switch
klik CLI
Switch>enable
Switch#vlan database
% Warning: It is
recommended to configure VLAN from config mode,
as VLAN database mode is being deprecated.
Please consult user
documentation for configuring VTP/VLAN in
config mode.
Switch(vlan)#vlan
100 name lab_1
VLAN 100 added:
Name: lab_1
Switch(vlan)#vlan
200 name lab_2
VLAN 200 added:
Name: lab_2
Switch(vlan)#vlan
300 name lab_3
VLAN 300 added:
Name: lab_3
Switch(vlan)#vlan
400 name lab_4
VLAN 400 added:
Name: lab_4
Switch(vlan)#exit
APPLY completed.
Exiting....
Switch#sh vlan
5. kemudian enter dan ketik ini
Switch#configure
terminal
Enter configuration
commands, one per line. End with CNTL/Z.
Switch(config)#interface
fa0/1
Switch(config-if)#switchport
access vlan 100
Switch(config-if)#exit
Switch(config)#interface
fa0/2
Switch(config-if)#switchport
access vlan 200
Switch(config-if)#exit
Switch(config)#interface
fa0/3
Switch(config-if)#switchport
access vlan 300
Switch(config-if)#exit
Switch(config)#interface
fa0/4
Switch(config-if)#switchport
access vlan 400
Switch(config-if)#exit
Switch(config)#exit
Switch#
%SYS-5-CONFIG_I:
Configured from console by console
6. kemudian tambahkan router dengan interface fa 0/24
Router>enable
Router#configure
terminal
Enter configuration
commands, one per line. End with CNTL/Z.
Router(config)#interface
fa 0/0.100
Router(config-subif)#encapsulation
dot1q 100
Router(config-subif)#ip
address 192.168.1.248 255.255.255.0
Router(config-subif)#exit
Router(config)#interface
fa 0/0.200
Router(config-subif)#encapsulation
dot1q 200
Router(config-subif)#ip
address 192.168.2.248 255.255.255.0
Router(config-subif)#exit
Router(config)#interface
fa 0/0.300
Router(config-subif)#encapsulation
dot1q 300
Router(config-subif)#ip
address 192.168.3.248 255.255.255.0
Router(config-subif)#exit
Router(config)#interface
fa 0/0.400
Router(config-subif)#encapsulation
dot1q 400
Router(config-subif)#ip
address 192.168.4.248 255.255.255.0
Router(config-subif)#exit
Router(config)#interface
fa 0/0
Router(config-if)#no
shutdown
7.kemudian atur lagi switchnya
Switch#
Switch#configure
terminal
Enter configuration
commands, one per line. End with CNTL/Z.
Switch(config)#interface
fa 0/24
Switch(config-if)#switchport
mode trunk
Switch(config-if)#
%LINEPROTO-5-UPDOWN:
Line protocol on Interface FastEthernet0/24, changed state to down
%LINEPROTO-5-UPDOWN:
Line protocol on Interface FastEthernet0/24, changed state to up
Switch(config-if)#exit
Switch(config)#exit
Switch#
%SYS-5-CONFIG_I:
Configured from console by console
Switch#write
Building
configuration...
[OK]
Switch#
8. Kemudian ping dari server lab1 ke Lab2
Sekian yang saya bisa kerjakan, semoga bermanfaat buat kalian.....:):)

Tidak ada komentar:
Posting Komentar