Konfigurasi Router dan Vlan Cisco packet tracer

Pertama tama kita akan membuat konfigurasi vlan sepert pada gambar berikut

Jika sudah membuat topologi seperti gambar diatas, selanjutnya kita isi ip pc dari masing masing pc
pc 0

pc 1

pc 2

pc3

pc 4

pc 5

pc 6

pc 7

kemudian kita buat vlan di switch 1 dengan perintah 
Switch>en
Switch#conf t
Enter configuration commands, one per line.  End with CNTL/Z.
Switch(config)#vlan 10
Switch(config-vlan)#name hanip
Switch(config-vlan)#ex
Switch(config)#vlan 20
Switch(config-vlan)#name angger
Switch(config-vlan)#ex
Kemudian Juga di Switch 0

Switch>en
Switch#conf t
Enter configuration commands, one per line.  End with CNTL/Z.
Switch(config)#vlan 30
Switch(config-vlan)#name pakeko
Switch(config-vlan)#ex
Switch(config)#vlan 40
Switch(config-vlan)#name masheru
Switch(config-vlan)#ex 
Lanjut kemudian kita bagi Pc 0-1 ke vlan 10 Pc 2-3 ke vlan 20

Switch(config)#int fa0/1
Switch(config-if)#sw
Switch(config-if)#switchport mo
Switch(config-if)#switchport mode ac
Switch(config-if)#switchport mode access
Switch(config-if)#sw
Switch(config-if)#switchport ac
Switch(config-if)#switchport access vl
Switch(config-if)#switchport access vlan 10
Switch(config-if)#ex
Switch(config)#int fa0/2
Switch(config-if)#sw
Switch(config-if)#switchport mo
Switch(config-if)#switchport mode ac
Switch(config-if)#switchport mode access
Switch(config-if)#sw
Switch(config-if)#switchport ac
Switch(config-if)#switchport access vl
Switch(config-if)#switchport access vlan 10
Switch(config-if)#ex
Switch(config)#int fa0/3
Switch(config-if)#sw
Switch(config-if)#switchport mo
Switch(config-if)#switchport mode ac
Switch(config-if)#switchport mode access
Switch(config-if)#sw
Switch(config-if)#switchport mo
Switch(config-if)#switchport ac
Switch(config-if)#switchport access vl
Switch(config-if)#switchport access vlan 20
Switch(config-if)#ex
Switch(config)#int fa0/4
Switch(config-if)#sw
Switch(config-if)#switchport mo
Switch(config-if)#switchport mode ac
Switch(config-if)#switchport mode access
Switch(config-if)#sw
Switch(config-if)#switchport ac
Switch(config-if)#switchport access vl
Switch(config-if)#switchport access vlan 20
Switch(config-if)#ex
Juga di pc 4-5 kita masukan ke vlan 30 dan pc 6-7 ke vlan 40

Switch(config-if)#sw
Switch(config-if)#switchport mo
Switch(config-if)#switchport mode ac
Switch(config-if)#switchport mode access
Switch(config-if)#sw
Switch(config-if)#switchport ac
Switch(config-if)#switchport access vlan 30
Switch(config-if)#ex
Switch(config)#int fa0/2
Switch(config-if)#sw
Switch(config-if)#switchport mo
Switch(config-if)#switchport mode ac
Switch(config-if)#switchport mode access
Switch(config-if)#sw
Switch(config-if)#switchport ac
Switch(config-if)#switchport access vlan 30
Switch(config-if)#ex
Switch(config)#int fa0/3
Switch(config-if)#sw
Switch(config-if)#switchport mo
Switch(config-if)#switchport mode acc
Switch(config-if)#switchport mode access
Switch(config-if)#sw
Switch(config-if)#switchport acc
Switch(config-if)#switchport access vlan 40
Switch(config-if)#ex
Switch(config)#int fa0/4
Switch(config-if)#sw
Switch(config-if)#switchport mo
Switch(config-if)#switchport mode acc
Switch(config-if)#switchport mode access
Switch(config-if)#sw
Switch(config-if)#switchport ac
Switch(config-if)#switchport access vlan 40
Switch(config-if)#ex
Switch(config)# 

Lalu kita tambahkan ip pada router 2 bagian fa0/0 dan 0/1 dengan konfigurasi seperti ini

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.7 255.255.255.128
Router(config-if)#no shut
Router(config-if)#
%LINK-5-CHANGED: Interface FastEthernet0/1, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/1, changed state to up
Router(config-if)#ex
Router(config)#int fa0/0
Router(config-if)#ip add 192.168.20.64 255.255.255.192
Router(config-if)#no shut
Router(config-if)#
%LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to up
Router(config-if)#ex 
Juga kita tambahkan ip pada router 0 dengan konfigurasi seperti ini
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)#
%LINK-5-CHANGED: Interface FastEthernet0/1, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/1, changed state to up
Router(config-if)#ex
Router(config)#int fa0/0
Router(config-if)#ip add 192.168.10.11 255.255.255.0
Router(config-if)#no shut
Router(config-if)#
%LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to up
Router(config-if)#ex 
jika sudah kita daftarkan vlan 10 dan 20 ke router 2 dengan konfigurasi seperti ini

 Router>en
Router#conf t
Enter configuration commands, one per line.  End with CNTL/Z.
Router(config)#int fa0/1.10
Router(config-subif)#
%LINK-5-CHANGED: Interface FastEthernet0/0.30, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0.30, changed state to up
Router(config-subif)#enc
Router(config-subif)#encapsulation do
Router(config-subif)#encapsulation dot1Q 10
Router(config-subif)#ip add 192.168.10.35 255.255.255.224
Router(config-subif)#no shut
Router(config-subif)#ex
Router(config)#int fa0/1.20
Router(config-subif)#
%LINK-5-CHANGED: Interface FastEthernet0/1.20, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0.40, changed state to up
Router(config-subif)#en
Router(config-subif)#encapsulation do
Router(config-subif)#encapsulation dot1Q 20
Router(config-subif)#ip add 192.168.20.35 255.255.255.224
Router(config-subif)#no shut
Router(config-subif)#
kemudian kita juga tambahkan vlan 30 dan 40 di router 0 dengan konfigurasi seperti ini

Router>en
Router#conf t
Enter configuration commands, one per line.  End with CNTL/Z.
Router(config)#int fa0/0.30
Router(config-subif)#
%LINK-5-CHANGED: Interface FastEthernet0/0.30, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0.30, changed state to up
Router(config-subif)#enc
Router(config-subif)#encapsulation do
Router(config-subif)#encapsulation dot1Q 30
Router(config-subif)#ip add 192.168.30.35 255.255.255.240
Router(config-subif)#no shut
Router(config-subif)#ex
Router(config)#int fa0/0.40
Router(config-subif)#
%LINK-5-CHANGED: Interface FastEthernet0/0.40, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0.40, changed state to up
Router(config-subif)#en
Router(config-subif)#encapsulation do
Router(config-subif)#encapsulation dot1Q 40
Router(config-subif)#ip add 192.168.40.51 255.255.255.240
Router(config-subif)#no shut
Router(config-subif)# 
Lanjut kita akan menghubungkan kedua Vlan dengan membuat konfigurasi Trunk di kedua switch seperti di bawah ini:

Switch1

Switch(config)#int fa0/5(yang menuju ke router)Switch(config-if)#swSwitch(config-if)#switchport moSwitch(config-if)#switchport mode acSwitch(config-if)#switchport mode trSwitch(config-if)#switchport mode trunk 

Switch(config-if)#
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/5, changed state to down


%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/5, changed state to up

di switch 3 

Switch(config)#int fa0/1(yang menuju ke router)Switch(config-if)#swSwitch(config-if)#switchport moSwitch(config-if)#switchport mode acSwitch(config-if)#switchport mode trSwitch(config-if)#switchport mode trunk 
Switch(config)#int fa0/3(yang menuju ke router)Switch(config-if)#swSwitch(config-if)#switchport moSwitch(config-if)#switchport mode acSwitch(config-if)#switchport mode trSwitch(config-if)#switchport mode trunk  
di switch 0
Switch(config)#int fa0/5(yang menuju ke router)Switch(config-if)#swSwitch(config-if)#switchport moSwitch(config-if)#switchport mode acSwitch(config-if)#switchport mode trSwitch(config-if)#switchport mode trunk 
Jika sudah sebelumnya kita tuliskan konfigurasi vlan di switch 3 dengan tujuan agar vlan 10 dan 20 bisa di akses dengan konfigurasi seperti ini

Switch>en
Switch#conf t
Enter configuration commands, one per line.  End with CNTL/Z.
Switch(config)#vlan 10
Switch(config-vlan)#ex
Switch(config)#vlan 20
Switch(config-vlan)#ex
Selanjutnya kita akan menghubungkan router 0 dan router 2 dengan menggunakan ip route, konfigurasinya seperti ini


Di Router 0 

Router(config)#ip route 192.168.20.64 255.255.255.192 192.168.5.7
Router(config)#ip route 192.168.10.32 255.255.255.224 192.168.5.7
Router(config)#ip route 192.168.20.32 255.255.255.224 192.168.5.7

Di router 2 
Router(config)#ip route 192.168.40.48 255.255.255.240 192.168.5.6
Router(config)#ip route 192.168.30.32 255.255.255.240 192.168.5.6

Kemudian Kita sudah menghubungkan antar router kita cek jika succes kita lanjut menyeting Servernya seperti ini 

tambahkan Ip server seperti gambar di bawah ini 

Kita setting juga dns nya agar bisa di akses lewat browser di pc konfigurasinya seperti gambar di bawah ini


Dan hasilnya 
BERHASILL!! 



Dilarang keras Beriklan Dan menyisipkan link aktif di komentar Berkomentar dengan sopan Kalau tidak jelas bisa mengikuti di Google+ Kami
Latest


EmoticonEmoticon