Apa itu InterVLAN?
InterVLAN adalah proses pembagian segmen pada jaringan lokal yang tujuannya yaitu untuk menghubungkan vlan yang berbeda network maupun ip. InterVLAN memerlukan perangkat yang dapat berjalan dengan layer 3, disini dengan menggunakan router sebagai penghubungnya.
Disini saya menggunakan 3 jaringan vlan yaitu : vlan5, vlan10, dan vlan15
Disini saya menggunakan 3 jaringan vlan yaitu : vlan5, vlan10, dan vlan15
Contoh Kasus :
Berikut konfigurasi dari bentuk jaringan diatas :
Pertama buat dulu 3 buah jaringan vlan pada Switch1, Switch2, dan Switch3
Switch1
Switch1>en
Switch1#conf t
Switch1(config)#vlan 5
Switch1(config-vlan)#name vlan5
Switch1(config-vlan)#exit
Switch1(config)#vlan 10
Switch1(config-vlan)#name vlan10
Switch1(config-vlan)#exit
Switch1(config-vlan)#name vlan5
Switch1(config-vlan)#exit
Switch1(config)#vlan 10
Switch1(config-vlan)#name vlan10
Switch1(config-vlan)#exit
Switch1(config)#vlan 15
Switch1(config-vlan)#name vlan15
Switch1(config-vlan)#exit
Switch2
Switch1>en
Switch1#conf t
Switch1(config)#vlan 5
Switch1(config-vlan)#name vlan5
Switch1(config-vlan)#exit
Switch1(config)#vlan 10
Switch1(config-vlan)#name vlan10
Switch1(config-vlan)#exit
Switch1(config-vlan)#name vlan5
Switch1(config-vlan)#exit
Switch1(config)#vlan 10
Switch1(config-vlan)#name vlan10
Switch1(config-vlan)#exit
Switch1(config)#vlan 15
Switch1(config-vlan)#name vlan15
Switch1(config-vlan)#exit
Switch3
Switch1>en
Switch1#conf t
Switch1(config)#vlan 5
Switch1(config-vlan)#name vlan5
Switch1(config-vlan)#exit
Switch1(config)#vlan 10
Switch1(config-vlan)#name vlan10
Switch1(config-vlan)#exit
Switch1(config-vlan)#name vlan5
Switch1(config-vlan)#exit
Switch1(config)#vlan 10
Switch1(config-vlan)#name vlan10
Switch1(config-vlan)#exit
Switch1(config)#vlan 15
Switch1(config-vlan)#name vlan15
Switch1(config-vlan)#exit
Selanjutnya Konfigurasi Switch1,2, dan 3 dengan command berikut :
Switch1
Switch1>en
Switch1#conf t
Switch1(config)#int fa0/1
Switch1(config-if)#switchport mode trunk
Switch1(config-if)#exit
Switch1(config)#int fa0/2
Switch1(config-if)#switchport mode trunk
Switch1(config-if)#exit
Switch1(config)#int fa0/3
Switch1(config-if)#switchport mode access
Switch1(config-if)#switchport access vlan 5
Switch1(config-if)#exit
Switch1(config)#int fa0/4
Switch1(config-if)#switchport mode access
Switch1(config-if)#switchport access vlan 5
Switch1(config-if)#exit
Switch1(config-if)#switchport mode trunk
Switch1(config-if)#exit
Switch1(config)#int fa0/2
Switch1(config-if)#switchport mode trunk
Switch1(config-if)#exit
Switch1(config)#int fa0/3
Switch1(config-if)#switchport mode access
Switch1(config-if)#switchport access vlan 5
Switch1(config-if)#exit
Switch1(config)#int fa0/4
Switch1(config-if)#switchport mode access
Switch1(config-if)#switchport access vlan 5
Switch1(config-if)#exit
Switch1(config)#int fa0/5
Switch1(config-if)#switchport mode access
Switch1(config-if)#switchport access vlan 5
Switch1(config-if)#exit
Switch1(config-if)#switchport mode access
Switch1(config-if)#switchport access vlan 5
Switch1(config-if)#exit
Switch2
Switch2>en
Switch2#conf t
Switch2(config)#int fa0/1
Switch2(config-if)#switchport mode trunk
Switch2(config-if)#exit
Switch2(config)#int fa0/2
Switch2(config-if)#switchport mode trunk
Switch2(config-if)#exit
Switch2(config)#int fa0/3
Switch2(config-if)#switchport mode access
Switch2(config-if)#switchport access vlan 10
Switch2(config-if)#exit
Switch2(config)#int fa0/4
Switch2(config-if)#switchport mode access
Switch2(config-if)#switchport access vlan 10
Switch2(config-if)#exit
Switch2(config-if)#switchport mode trunk
Switch2(config-if)#exit
Switch2(config)#int fa0/2
Switch2(config-if)#switchport mode trunk
Switch2(config-if)#exit
Switch2(config)#int fa0/3
Switch2(config-if)#switchport mode access
Switch2(config-if)#switchport access vlan 10
Switch2(config-if)#exit
Switch2(config)#int fa0/4
Switch2(config-if)#switchport mode access
Switch2(config-if)#switchport access vlan 10
Switch2(config-if)#exit
Switch2(config)#int fa0/5
Switch2(config-if)#switchport mode access
Switch2(config-if)#switchport access vlan 10
Switch2(config-if)#exit
Switch2(config-if)#switchport mode access
Switch2(config-if)#switchport access vlan 10
Switch2(config-if)#exit
Switch3
Switch3>en
Switch3#conf t
Switch3(config)#int fa0/1
Switch3(config-if)#switchport mode trunk
Switch3(config-if)#exit
Switch3(config)#int fa0/3
Switch3(config-if)#switchport mode access
Switch3(config-if)#switchport access vlan 15
Switch3(config-if)#exit
Switch3(config)#int fa0/4
Switch3(config-if)#switchport mode access
Switch3(config-if)#switchport access vlan 15
Switch3(config-if)#exit
Switch3(config-if)#switchport mode trunk
Switch3(config-if)#exit
Switch3(config)#int fa0/3
Switch3(config-if)#switchport mode access
Switch3(config-if)#switchport access vlan 15
Switch3(config-if)#exit
Switch3(config)#int fa0/4
Switch3(config-if)#switchport mode access
Switch3(config-if)#switchport access vlan 15
Switch3(config-if)#exit
Switch3(config)#int fa0/5
Switch3(config-if)#switchport mode access
Switch3(config-if)#switchport access vlan 15
Switch3(config-if)#exit
Switch3(config-if)#switchport mode access
Switch3(config-if)#switchport access vlan 15
Switch3(config-if)#exit
Setelah mensetting switch kita lanjut ke router
Router
Router>en
Router#conf t
Router(config)#int fa0/0
Router(config-if)#no shutdown
Router(config-if)#exit
Router(config)#int fa0/0.5
Router(config-subif)#encapsulation dot1Q 5
Router(config-subif)#ip address 192.168.5.1 255.255.255.0
Router(config-subif)#exit
Router(config)#int fa0/0.10
Router(config-subif)#encapsulation dot1Q 10
Router(config-subif)#ip address 192.168.10.1 255.255.255.0
R-1(config-subif)#exit
Router(config-if)#exit
Router(config)#int fa0/0.5
Router(config-subif)#encapsulation dot1Q 5
Router(config-subif)#ip address 192.168.5.1 255.255.255.0
Router(config-subif)#exit
Router(config)#int fa0/0.10
Router(config-subif)#encapsulation dot1Q 10
Router(config-subif)#ip address 192.168.10.1 255.255.255.0
R-1(config-subif)#exit
Router(config)#int fa0/0.15
Router(config-subif)#encapsulation dot1Q 15
Router(config-subif)#ip address 192.168.15.1 255.255.255.0
R-1(config-subif)#exit
Setelah mensetting router masukan konfiguras ip berikut pada masing masing pc :
PC0 :
IP : 192.168.5.10
NETMASK :255.255.255.0
DEFAULT GATEWAY : 192.168.5.1
PC1 :
IP : 192.168.5.11
NETMASK :255.255.255.0
DEFAULT GATEWAY : 192.168.5.1
PC2 :
IP : 192.168.5.12
NETMASK :255.255.255.0
DEFAULT GATEWAY : 192.168.5.1
PC3 :
IP : 192.168.10.10
NETMASK :255.255.255.0
DEFAULT GATEWAY : 192.168.10.1
PC4 :
IP : 192.168.10.11
NETMASK :255.255.255.0
DEFAULT GATEWAY : 192.168.10.1
PC5 :
IP : 192.168.10.12
NETMASK :255.255.255.0
DEFAULT GATEWAY : 192.168.10.1
PC6 :
IP : 192.168.15.10
NETMASK :255.255.255.0
DEFAULT GATEWAY : 192.168.15.1
PC7 :
IP : 192.168.15.11
NETMASK :255.255.255.0
DEFAULT GATEWAY : 192.168.15.1
PC8 :
IP : 192.168.15.12
NETMASK :255.255.255.0
DEFAULT GATEWAY : 192.168.15.1
Selanjutnya coba lakukan simple PDU atau ping dari komputer dijaringan yang berbeda (misal:PC0 ke PC8). Jika konfigurasi sudah benar maka komputer akan saling bisa berinteraksi.
Sekian. Semoga Bermanfaat.
PC0 :
IP : 192.168.5.10
NETMASK :255.255.255.0
DEFAULT GATEWAY : 192.168.5.1
PC1 :
IP : 192.168.5.11
NETMASK :255.255.255.0
DEFAULT GATEWAY : 192.168.5.1
PC2 :
IP : 192.168.5.12
NETMASK :255.255.255.0
DEFAULT GATEWAY : 192.168.5.1
PC3 :
IP : 192.168.10.10
NETMASK :255.255.255.0
DEFAULT GATEWAY : 192.168.10.1
PC4 :
IP : 192.168.10.11
NETMASK :255.255.255.0
DEFAULT GATEWAY : 192.168.10.1
PC5 :
IP : 192.168.10.12
NETMASK :255.255.255.0
DEFAULT GATEWAY : 192.168.10.1
PC6 :
IP : 192.168.15.10
NETMASK :255.255.255.0
DEFAULT GATEWAY : 192.168.15.1
PC7 :
IP : 192.168.15.11
NETMASK :255.255.255.0
DEFAULT GATEWAY : 192.168.15.1
PC8 :
IP : 192.168.15.12
NETMASK :255.255.255.0
DEFAULT GATEWAY : 192.168.15.1
Selanjutnya coba lakukan simple PDU atau ping dari komputer dijaringan yang berbeda (misal:PC0 ke PC8). Jika konfigurasi sudah benar maka komputer akan saling bisa berinteraksi.
Sekian. Semoga Bermanfaat.
Komentar
Posting Komentar