Router Mikrotik with Cisco-Switch 2950
Wednesday, 18 November 2015
How to connect the mikrotik with cisco switch as a router with MikroTik RouterOS.
view this network topologi,
PC-VLAN-12
Ip address : 192.168.12.1
Subnet Mask : 255.255.255.0
Gateway : 192.168.12.254
view this network topologi,
Create 2 vlan di router:
VLAN 2
Vlan-id : 2
ip address: 10.10.20.1/24
VLAN3
Vlan-id:3
ip address:10.10.30.1/24
Both VLAN Made in Port 1
Setting Switch
Port 12 : trunk
Port 13 : access
Port 14 : access
############### CONFIG IN SWITCH ###############
Switch>enable
Switch#configure terminal
Switch(config)#hostname SWITCH-VLAN
SWITCH-VLAN(config)#exit
SWITCH-VLAN#vlan database
SWITCH-VLAN(vlan)#vlan 11 name TO-NETWORK-VLAN-11
SWITCH-VLAN(vlan)#vlan 12 name TO-NETWORK-VLAN-12
SWITCH-VLAN(vlan)#exit
SWITCH-VLAN(vlan)#show vlan brief
SWITCH-VLAN#configure terminal
SWITCH-VLAN(config)#interface fastethernet 0/24
SWITCH-VLAN(config-if)#switchport mode trunk
SWITCH-VLAN(config-if)#description TO-ROUTER
SWITCH-VLAN(config-if)#no shutdown
SWITCH-VLAN(config-if)#exit
SWITCH-VLAN(config)#interface fastethernet 0/1
SWITCH-VLAN(config-if)#switchport access vlan 11
SWITCH-VLAN(config-if)#description TO-PC-VLAN-11
SWITCH-VLAN(config-if)#no shutdown
SWITCH-VLAN(config-if)#exit
SWITCH-VLAN(config)#interface fastethernet 0/2
SWITCH-VLAN(config-if)#switchport access vlan 12
SWITCH-VLAN(config-if)#description TO-PC-VLAN-12
SWITCH-VLAN(config-if)#no shutdown
SWITCH-VLAN(config-if)#end
SWITCH-VLAN#copy running-config startup-config
Switch#configure terminal
Switch(config)#hostname SWITCH-VLAN
SWITCH-VLAN(config)#exit
SWITCH-VLAN#vlan database
SWITCH-VLAN(vlan)#vlan 11 name TO-NETWORK-VLAN-11
SWITCH-VLAN(vlan)#vlan 12 name TO-NETWORK-VLAN-12
SWITCH-VLAN(vlan)#exit
SWITCH-VLAN(vlan)#show vlan brief
SWITCH-VLAN#configure terminal
SWITCH-VLAN(config)#interface fastethernet 0/24
SWITCH-VLAN(config-if)#switchport mode trunk
SWITCH-VLAN(config-if)#description TO-ROUTER
SWITCH-VLAN(config-if)#no shutdown
SWITCH-VLAN(config-if)#exit
SWITCH-VLAN(config)#interface fastethernet 0/1
SWITCH-VLAN(config-if)#switchport access vlan 11
SWITCH-VLAN(config-if)#description TO-PC-VLAN-11
SWITCH-VLAN(config-if)#no shutdown
SWITCH-VLAN(config-if)#exit
SWITCH-VLAN(config)#interface fastethernet 0/2
SWITCH-VLAN(config-if)#switchport access vlan 12
SWITCH-VLAN(config-if)#description TO-PC-VLAN-12
SWITCH-VLAN(config-if)#no shutdown
SWITCH-VLAN(config-if)#end
SWITCH-VLAN#copy running-config startup-config
Okeh, sampai tahap ini, kofigurasi di Router & Switch telah selesai, sekarang tinggal member pengalamatan pada PC-VLAN-11 & PC-VLAN-12, masukkan masing masing pengalamatan sperti di bawah ini :
PC-VLAN-11
Ip address : 192.168.11.1
Subnet Mask : 255.255.255.0
Gateway : 192.168.11.254
Nah, sampai di sini seharusnya sudah bisa saling terkomunikasi antara PC-VLAN-11 ke PC-VLAN-12,contoh disini saya akan mencoba ping dan tracert dari PC-VLAN-11 ke PC-VLAN-12. Sampai di sini dulu artikel yang saya berikan kali ini, semoga semua bisa sermanfaat buat teman-teman yang pengen belajar, terima kasih buat yang telah mengunjungi, ilmu komputer.