Little boy questioned his mother, he asked what he can be in the future..with a sad smile, she tells him he can be anything he wants to be.... Boy said he’d become (an) astronaut and fly out into space crews around the universe he wanted to see the stars and also see other planets in outer space------------- "Why don’t we just keep dreaming, let’s keep our mind with dream and faith, as long as we wish we can make it come true, how old you are never forget your dream and keep dreaming "

Sunday 19 June 2016

Konfigurasi Inter-VLAN Routing

Hola..
Setelah sebelumnnya pernah posting tentang Konfigurasi VLAN, kali ini saya akan bahas bagaimana cara Routing antar VLAN (inter-VLANs Routing).. Cekibroott


Inter-VLAN Routing

Tujuan utama dari Routing antar Virtual LAN (VLAN) adalah meneruskan traffic dari  antar VLAN artinya menhubungkan dua buah VLAN yang berbeda no ID-nya. Sebagaimana kita tahu jika VLAN membagi sebuah jaringan menjadi beberapa segmen dan broadcast domain, dimana paket data tidak akan diteruskan ke VLAN yang bukan tujuannya.
Untuk dapat menghubungkan antar VLAN kita akan butuh perangkat yang memilki kapasitas untuk melakukan routing yaitu Router atau Layer 3 Switch.
Okeh, Cukup jelas?! Next >>>>>

Ada beberapa opsi untuk menghubungkan dua buah VLAN yang berbeda, antara lain :
  1. Router dengan interface yang berbeda untuk setiap VLAN.
  2. Router dengan Trunk link (Router on a Stick).
  3. Multi Layer Switch.
Untuk melakukannya, saya akan coba simulasikan ketiga cara tersebut pada aplikasi Cisco Packet Tracer.

Opsi 1 : Router dengan interface yang berbeda untuk setiap VLAN.
Skema :
Konfigurasi :

PC 
PC 0 : 
IP address  : 192.168.1.10
Subnet Mask : 255.255.255.0
Gateway : 192.168.1.1
PC 1 : 
IP address  : 192.168.2.10
Subnet Mask : 255.255.255.0
Gateway : 192.168.2.1

Router 
Router>enable 
Router#configure terminal
Router(config)#interface fastEthernet 0/0
Router(config-if)#ip address 192.168.1.1 255.255.255.0
Router(config-if)#no shut
Router(config-if)#exit
Router(config)#interface FastEthernet 1/0
Router(config-if)#ip address 192.168.2.1 255.255.255.0
Router(config-if)#no shut
Router(config-if)#exit
Router(config)#exit
Router#copy running-config startup-config 
Destination filename [startup-config]? 
Building configuration...
[OK]

Switch 
Switch>enable 
Switch#configure terminal 
Switch(config)#vlan 10
Switch(config-vlan)#name BIRU
Switch(config-vlan)#vlan 20
Switch(config-vlan)#name KUNING
Switch(config-vlan)#exit
Switch(config)#interface range fastEthernet 0/1, fastEthernet 0/3
Switch(config-if-range)#switchport mode access 
Switch(config-if-range)#switchport access vlan 10
Switch(config-if-range)#exit
Switch(config)#interface range fastEthernet 0/2, fastEthernet 0/4
Switch(config-if-range)#switchport mode access 
Switch(config-if-range)#switchport access vlan 20
Switch(config-if-range)#exit
Switch(config)#exit
Switch#copy running-config startup-config 
Destination filename [startup-config]? 
Building configuration...
[OK]



Opsi 2 : Router dengan Trunk Link (ROAS)
Skema :
Konfigurasi :


PC
PC 0 : 
IP address  : 192.168.1.10
Subnet Mask : 255.255.255.0
Gateway : 192.168.1.1
PC 1 : 
IP address  : 192.168.2.10
Subnet Mask : 255.255.255.0
Gateway : 192.168.2.1

Router 
Router>enable 
Router#configure terminal
Router(config)#interface fastEthernet 0/0.10
Router(config-subif)#encapsulation dot1Q 10
Router(config-subif)#ip address 192.168.1.1 255.255.255.0
Router(config-subif)#exit
Router(config)#interface fastEthernet 0/0.20
Router(config-subif)#encapsulation dot1Q 20
Router(config-subif)#ip address 192.168.2.1 255.255.255.0
Router(config-subif)#exit
Router(config)#interface fastEthernet 0/0
Router(config-if)#no shutdown
Router(config-if)#exit
Router(config)#exit
Router#copy running-config startup-config 
Destination filename [startup-config]? 
Building configuration...
[OK]

Switch 
Switch>enable 
Switch#configure terminal
Switch(config)#vlan 10
Switch(config-vlan)#name BIRU
Switch(config-vlan)#vlan 20
Switch(config-vlan)#name KUNING
Switch(config-vlan)#exit
Switch(config)#interface fastEthernet 0/1
Switch(config-if)#switchport mode trunk 
Switch(config-if)#exit
Switch(config)#interface fastEthernet 0/2
Switch(config-if)#switchport mode access 
Switch(config-if)#switchport access vlan 10
Switch(config-if)#exit
Switch(config)#interface fastEthernet 0/3
Switch(config-if)#switchport mode access 
Switch(config-if)#switchport access vlan 20
Switch(config-if)#exit
Switch(config)#exit
Switch#copy running-config startup-config 
Destination filename [startup-config]? 
Building configuration...
[OK]

Opsi 3 : Multi Layer Switch
Skema :
Konfigurasi :

PC 
PC 0 : 
IP address  : 192.168.1.10
Subnet Mask : 255.255.255.0
Gateway : 192.168.1.1
PC 1 : 
IP address  : 192.168.2.10
Subnet Mask : 255.255.255.0
Gateway : 192.168.2.1

Switch
Switch>enable
Switch#configure terminal 
Switch(config)#vlan 10
Switch(config-vlan)#name BIRU
Switch(config-vlan)#vlan 20
Switch(config-vlan)#name KUNING
Switch(config-vlan)#exit
Switch(config)#interface fastEthernet 0/1
Switch(config-if)#switchport mode access 
Switch(config-if)#switchport access vlan 10
Switch(config-if)#exit
Switch(config)#interface fastEthernet 0/2
Switch(config-if)#switchport mode access 
Switch(config-if)#switchport access vlan 20
Switch(config-if)#exit
Switch(config)#interface vlan 10
Switch(config-if)#ip address 192.168.1.1 255.255.255.0
Switch(config-if)#no shutdown 
Switch(config-if)#exit
Switch(config)#interface vlan 20
Switch(config-if)#ip address 192.168.2.1 255.255.255.0
Switch(config-if)#no shutdown 
Switch(config-if)#exit
Switch(config)#ip routing
Switch(config)#exit
Switch#copy running-config startup-config 
Destination filename [startup-config]? 
Building configuration...
[OK]

Yap, itulah tiga opsi yang bisa anda gunakan untuk inter-VLAN routing, kalo ada pertanyaan atau kripik dan saran silahkan.. semoga bermanfaat ^^

referensi : iPexpert's Cisco CCNA R&S (200-120)



12 comments:

  1. Mantep mas, ilmu yang ngga akan pernah mati, sampeyean posting bulan juni 2016, saya baca april 2017. keep sharing mas...

    ReplyDelete
    Replies
    1. Alhamdulilah jika bermanfaat.. terima kasih sudah mampir

      Delete
  2. dari kmaren" nyari yang kayak opsi 1 , akhirnya ktemu juga. trimakasih.

    ReplyDelete
  3. Makasih kang! berkat anda saya lulus SMK sekarang. Alhamdulillah..

    ReplyDelete
  4. Makasih gan berkat anda punya saya jadi jauh lebih besar

    *Nilai

    ReplyDelete
    Replies
    1. Alhamdulilah kalo bermanfaa.. kalo nilai sih bonus ya :)

      Delete
  5. This comment has been removed by the author.

    ReplyDelete
  6. untuk menghapus perintah yg sudah diaktifkan, cara menonaktifkannya tambahkan "no" diawal perintah
    contoh : Router(config-subif)#no encapsulation dot1Q 10

    ReplyDelete
  7. boleh private ngoding CLi kah bang :(

    ReplyDelete
    Replies
    1. boleh aja dong.. bisa kontak messenger aja sis

      Delete