Konfigurasi 2 VLAN & Router

sebelumnya buat topologi sepeti ini
saya jelaskan perintah yang akan digunakan
 kurang lebih seperti itu
pertama tama beri IP pada semua PC sesuai vlan nya pada bagian destop>ip confuguration

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 JiddN
Switch(config-vlan)#ex
Switch(config)#vlan 20
Switch(config-vlan)#aKMAL
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)#switchport mode access
Switch(config-if)#switchport access vlan 10
Switch(config-if)#ex
Switch(config)#int fa0/2
Switch(config-if)#switchport mode access
Switch(config-if)#switchport access vlan 10
Switch(config-if)#ex
Switch(config)#int fa0/3
Switch(config-if)#switchport mode access
Switch(config-if)#switchport access vlan 20
Switch(config-if)#ex
Switch(config)#int fa0/4
Switch(config-if)#switchport mode access
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)#int fa0/1
Switch(config-if)#switchport mode access
Switch(config-if)#switchport access vlan 30
Switch(config-if)#ex
Switch(config)#int fa0/2
Switch(config-if)#switchport mode access
Switch(config-if)#switchport access vlan 30
Switch(config-if)#ex
Switch(config)#int fa0/3
Switch(config-if)#switchport mode access
Switch(config-if)#switchport access vlan 40
Switch(config-if)#ex
Switch(config)#int fa0/4
Switch(config-if)#switchport mode access
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)#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)#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)#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)#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:

Switch 1   
Switch(config)#int fa0/5(yang menuju ke router)
Switch(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)#switchport mode trunk 
Switch(config)#int fa0/3(yang menuju ke router)
Switch(config-if)#switchport mode trunk 
 

di switch 0 
Switch(config)#int fa0/5(yang menuju ke router)
Switch(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

 
jika sudah konek semua  tambahkan ip server pada kotak DNS
sebelumnya hidupkan fiture DNS Server
tes apakah Dns Sudah aktif


selesai

 



 

Newest
Previous
Next Post »