Pertama buat topologi seperti di atas Lanjut kita Konfigurasi VLAN Di Cisco Packet Tracer , Yang pertama adalah IP Pada masing masing PC
- PC 0
- IP :192.168.10.34
- Subnetmask :255.255.255.224
- Gateway : 192.168.10.33
- DNS :192.168.70.66
- PC 1
- IP :192.168.10.35
- Subnetmask :255.255.255.224
- Gateway : 192.168.10.33
- DNS :192.168.70.66
- PC 2
- IP :192.168.20.66
- Subnetmask :255.255.255.224
- Gateway : 192.168.20.65
- DNS :192.168.70.66
- PC3
- IP :192.168.20.67
- Subnetmask :255.255.255.224
- Gateway : 192.168.20.65
- DNS :192.168.70.66
- PC4
- IP :192.168.30.34
- Subnetmask :255.255.255.240
- Gateway :192.168.30.33
- DNS :192.168.70.66
- PC5
- IP :192.168.30.35
- Subnetmask :255.255.255.240
- Gateway : 192.168.30.33
- DNS :192.168.70.66
- PC6
- IP :192.168.40.50
- Subnetmask :255.255.255.240
- Gateway : 192.168.40.49
- DNS :192.168.70.66
- PC7
- IP :192.168.40.51
- Subnetmask :255.255.255.240
- Gateway : 192.168.40.49
- DNS :192.168.70.66
Switch>en
Switch#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#int range fa0/1-2
Switch(config-if-range)#switchport mode access
Switch(config-if-range)#ex
Switch(config)#vlan 30
Switch(config-vlan)#name pakeko
Switch(config-vlan)#ex
Switch(config)#int range fa0/1-2
Switch(config-if-range)#switchport mode access
Switch(config-if-range)#switchport access vlan 30
Switch(config-if-range)#ex
Switch(config)#int range fa0/3-4
Switch(config-if-range)#switchport mode access
Switch(config-if-range)#switchport access vlan 40
Switch(config-if-range)#ex
Switch(config)#vlan 40
Switch(config-vlan)#name masheru
Switch(config-vlan)#ex
Switch(config)#int range fa0/3-4
Switch(config-if-range)#switchport mode access
Switch(config-if-range)#switchport access vlan 40
Switch(config-if-range)#ex
Switch(config)#int fa0/5
Switch(config-if)#switchport mode trunk
Lalu Konfigurasi Switch 1
Switch>en
Switch#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#int range fa0/1-2
Switch(config-if-range)#switchport mode access
Switch(config-if-range)#ex
Switch(config)#vlan 10
Switch(config-vlan)#name Nilna
Switch(config-vlan)#ex
Switch(config)#int range fa0/3-4
Switch(config-if-range)#switchport mode access
Switch(config-if-range)#switchport access vlan 20
Switch(config-if-range)#ex
Switch(config)#int range fa0/1-2
Switch(config-if-range)#switchport mode access
Switch(config-if-range)#switchport access vlan 10
Switch(config-if-range)#ex
Switch(config)#int range fa0/3-4
Switch(config-if-range)#switchport mode access
Switch(config-if-range)#switchport access vlan 20
Switch(config-if-range)#ex
Switch(config)#vlan 20
Switch(config-vlan)#name Dinar
Switch(config-vlan)#ex
Switch(config)#int range fa0/3-4
Switch(config-if-range)#switchport mode access
Switch(config-if-range)#switchport access vlan 20
Switch(config-if-range)#ex
Switch(config)#int fa0/5
Switch(config-if)#switchport mode trunk
Konfigurasi pada Router0
Router>en
Router#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#int fa0/0
Router(config-if)#ip add 192.168.10.10 255.255.255.0
% 192.168.10.0 overlaps with FastEthernet0/1.10
Router(config-if)#ip add 192.168.10.10 255.255.255.0
% 192.168.10.0 overlaps with FastEthernet0/1.10
Router(config-if)#ip add 192.168.10.0 255.255.255.0
Bad mask /24 for address 192.168.10.0
Router(config-if)#ip add 192.168.10.10 255.255.255.0
% 192.168.10.0 overlaps with FastEthernet0/1.10
Router(config-if)#no shut
Router(config-if)#ex
Router(config)#int fa0/0.30
Router(config-subif)#en
Router(config-subif)#encapsulation do
Router(config-subif)#encapsulation dot1Q 30
Router(config-subif)#ip add 192.168.30.33 255.255.255.240
Router(config-subif)#ex
Router(config)#en
Router(config)#int fa0/0.30
Router(config-subif)#encapsulation dot1Q 30
Router(config-subif)#ip add 192.168.30.33 255.255.255.240
Router(config-subif)#no shut
Router(config-subif)#ex
Router(config)#int fa0/0.40
Router(config-subif)#en
Router(config-subif)#encapsulation do
Router(config-subif)#encapsulation dot1Q 40
Router(config-subif)#ip add 192.168.40.49 255.255.255.240
Router(config-subif)#ex
Router(config)#int fa0/1
Router(config-if)#ip add 192.168.5.5 255.255.255.128
Router(config-if)#ex
Router(config)#ip route 192.168.70.64 255.255.255.192 192.168.5.6
Router(config)#ip route 192.168.10.32 255.255.255.224 192.168.5.6
Router(config)#ip route 192.168.20.64 255.255.255.224 192.168.5.6
Konfigurasi pada Router 2
Router>en
Router#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#int fa0/1
Router(config-if)#ip add 192.168.5.6 255.255.255.128
Router(config-if)#no shut
Router(config-if)#ex
Router(config)#int fa0/1
Router(config-if)#int fa0/1.10
Router(config-subif)#encapsulation dot1Q 10
Router(config-subif)#ip add 192.168.10.33 255.255.255.224
Router(config-subif)#ex
Router(config)#int fa0/1.20
Router(config-subif)#encapsulation dot1Q 20
Router(config-subif)#ip add 192.168.20.65 255.255.255.224
Router(config-subif)#ex
Router(config)#int fa0/0
Router(config-if)#ip add 192.168.70.65 255.255.255.192
Router(config-if)#no shut
Router(config-if)#ex
Router(config)#ip route 192.168.10.0 255.255.255.0 192.168.5.5
Router(config)#ip route 192.168.30.32 255.255.255.240 192.168.5.5
Router(config)#ip route 192.168.40.48 255.255.255.240 192.168.5.5
Selanjutnya klik server -) klik Services -) klik HTTP -) klik index. html (edit) kemudian akan muncul seperti gambar dibawah. ganti ukuran huruf, warna dan ganti tulisan cisco paket tracer dengan nama NilnaHima -) save klik Yes.
Kemudian cek Http kalian tadi pada Pc dengan cara. klik Pc terserah kalian kemudian klik web browser pada Pc kemudian isikan ip yang di server pada URL yang sudah tersedia kemudian Go maka akan muncul tampilan seperti pada gambar dibawah dan tertera nama yang sudah kalian buat tadi.
Kemudian membuat Dns. Klik Server -) Services -) Dns -) pilih On -) isikan name :nilna.com
-) Address : isikan ip 192.168.70.66 -) klik Add
Sebelum kalian mengecek Dns yang sudah kalian buat pastikan pc kalian sudah terisi Dns server. Kemudian cek seperti Http tadi. caranya sama yaitu : klik pc terserah yang kalian mau -) isikan nama yang sudah kalian buat tadi pada URL -) klik Go maka akan muncul tampilan seperti gambar dibawah sekaligus tertera nama yang sudah kalian buat.
SELESAI