Pada kesempatan ini kita akan mengkoneksikan PC ke internet dengan mikrotik sebagai gateway , mikrotik terhubung ke internet lewat ethernet (kabel).
A. Buat Topologi sebagai berikut
Belajar dan berbagi dari hal yang dasar
Go to Blogger edit html and find these sentences.Now replace these sentences with your own descriptions.This theme is Bloggerized by Lasantha Bandara - Premiumbloggertemplates.com.
Go to Blogger edit html and find these sentences.Now replace these sentences with your own descriptions.This theme is Bloggerized by Lasantha Bandara - Premiumbloggertemplates.com.
Go to Blogger edit html and find these sentences.Now replace these sentences with your own descriptions.This theme is Bloggerized by Lasantha Bandara - Premiumbloggertemplates.com.
Go to Blogger edit html and find these sentences.Now replace these sentences with your own descriptions.This theme is Bloggerized by Lasantha Bandara - Premiumbloggertemplates.com.
Go to Blogger edit html and find these sentences.Now replace these sentences with your own descriptions.This theme is Bloggerized by Lasantha Bandara - Premiumbloggertemplates.com.
Router>enb. Router2
Router#configure terminal
Router(config)#interface fa0/0
Router(config-if)#ip address 192.168.10.1 255.255.255.0
Router(config-if)#no shutdown
Router(config-if)#exit
Router(config)#interface s0/1/0
Router(config-if)#ip address 10.1.1.1 255.255.255.252
Router(config-if)#no shutdown
Router(config-if)#exit
Router(config)#interface s0/1/1
Router(config-if)#ip address 10.2.2.1 255.255.255.252 Router(config-if)#no shut
Router(config-if)#exit
Router>en
Router#configure terminal
Router(config)#interface s0/1/0
Router(config-if)#ip address 10.1.1.2 255.255.255.252
Router(config-if)#clock rate 64000
Router(config-if)#no shut
Router(config-if)#exit
Router(config)#interace fa0/0
Router(config-if)#ip address 192.168.20.1 255.255.255.0
Router(config-if)#no shut
Router(config-if)#exit
Router(config)#interface s0/1/1
Router(config-if)#ip add 10.3.3.2 255.255.255.252
Router(config-if)#clock rate 64000
Router(config-if)#no shut
Router(config-if)#exit
Router(config)#interface s0/0/0
Router(config-if)#ip address 10.4.4.1 255.255.255.252
Router(config-if)#no shut
Router(config)#exit
Router>en
Router#configure terminal
Router(config)#int fa0/0
Router(config-if)#ip add 192.168.30.1 255.255.255.0
Router(config-if)#no shut
Router(config-if)#ex
Router(config)#int s0/1/0
Router(config-if)#ip add 10.2.2.2 255.255.255.252
Router(config-if)#clock rate 64000
Router(config-if)#no shut
Router(config-if)#ex
Router(config)#int s0/1/1
Router(config-if)#ip add 10.3.3.2 255.255.255.252
Router(config-if)#clock rate 64000
Router(config-if)#n shut
Router(config-if)#ex
Router(config)#interface s0/0/0
Router(config-if)#ip add 10.5.5.1 255.255.255.252
Router(config-if)#no shut
Router(config-if)#ex
Router>en
Router#conf t
Router(config)#int fa0/0
Router(config-if)#ip add 192.168.40.1 255.255.255.0
Router(config-if)#no shut Router(config-if)#ex
Router(config)#interface s0/1/0
Router(config-if)#ip address 10.4.4.2 255.255.255.252
Router(config-if)#clock rate 64000
Router(config-if)#no shut
Router(config-if)#ex
Router(config)#int s0/0/0
Router(config-if)#ip add 10.6.6.1 255.255.255.252
Router(config-if)#no shut
Router(config-if)#ex
Router(config)#interface s0/1/1
Router(config-if)#ip add 10.7.7.1 255.255.255.252
Router(config-if)#no shut
Router(config-if)#ex
Router>en
Router#conf t
Router(config)#int fa0/0
Router(config-if)#ip add 192.168.50.1 255.255.255.0
Router(config-if)#no shut
Router(config-if)#ex
Router(config)#int s0/1/0
Router(config-if)#ip add 10.5.5.2 255.255.255.252
Router(config-if)#no shut
Router(config-if)#ex
Router(config)#int s0/0/0
Router(config-if)#ip add 10.6.6.2 255.255.255.252 Router(config-if)#clock rate 64000
Router(config-if)#no shut
Router(config-if)#ex
Router(config)#int s0/1/1
Router(config-if)#ip add 10.8.8.1 255.255.255.252
Router(config-if)#no shut
Router(config-if)#ex
Router>en
Router#conf t
Router(config)#int fa0/0
Router(config-if)#ip add 192.168.60.1 255.255.255.0
Router(config-if)#no shut
Router(config-if)#ex
Router(config)#int s0/1/1
Router(config-if)#ip add 10.7.7.2 255.255.255.252
Router(config-if)#clock rate 64000
Router(config-if)#no shut
Router(config-if)#ex
Router(config)#int s0/1/0
Router(config-if)#ip add 10.8.8.2 255.255.255.252
Router(config-if)#clock rate 64000
Router(config-if)#no shut
Router(config-if)#ex
Router(config)#router ospf 1
Router(config-router)#network 192.168.10.0 0.0.0.255 area 1
Router(config-router)#network 10.1.1.0 0.0.0.3 area 1
Router(config-router)#network 10.2.2.0 0.0.0.3 area 1
Router(config)#router ospf 1
Router(config-router)#network 192.168.20.0 0.0.0.255 area 1
Router(config-router)#network 10.1.1.0 0.0.0.3 area 1
Router(config-router)#network 10.4.4.0 0.0.0.3 area 0
Router(config-router)#network 10.3.3.0 0.0.0.3 area 0
Router(config)#router ospf 1
Router(config-router)#network 192.168.30.0 0.0.0.255 area 1
Router(config-router)#network 10.2.2.0 0.0.0.3 area 1
Router(config-router)#network 10.3.3.0 0.0.0.3 area 0
Router(config-router)#network 10.5.5.0 0.0.0.3 area 0
Router(config)#router ospf 1
Router(config-router)#network 192.168.40.0 0.0.0.255 area 1
Router(config-router)#network 10.4.4.0 0.0.0.3 area 0
Router(config-router)#network 10.6.6.0 0.0.0.3 area 0
Router(config-router)#network 10.7.7.0 0.0.0.3 area 1
Router(config)#router ospf 1
Router(config-router)#network 192.168.50.0 0.0.0.255 area 1
Router(config-router)#network 10.5.5.0 0.0.0.3 area 0
Router(config-router)#network 10.6.6.0 0.0.0.3 area 0
Router(config-router)#network 10.8.8.0 0.0.0.3 area 1
Router(config)#router ospf 1ket.
Router(config-router)#network 192.168.60.0 0.0.0.255 area 1
Router(config-router)#network 10.7.7.0 0.0.0.3 area 1
Router(config-router)#network 10.8.8.0 0.0.0.3 area 1
Switch > enableSwitch # config terminalSwitch(config)#vlan 10Switch(config-vlan)#name mahasiswaSwitch(config-vlan)#exSwitch(config)#vlan 20Switch(config-vlan)#name dosenSwitch(config-vlan)#exSwitch(config)#vlan 30Switch(config-vlan)#name karyawanSwitch(config-vlan)#exSwitch(config)#vlan 40Switch(config-vlan)#name perkantoranSwitch(config-vlan)#end
Switch > enableSwitch # config terminalSwitch(config)#int range fa0/1-fa0/5Switch(config-if-range)#switchport mode accessSwitch(config-if-range)#switchport access vlan 10Switch(config-if-range)#exSwitch(config)#int range fa0/6-fa0/10Switch(config-if-range)#switchport mode accessSwitch(config-if-range)#switchport access vlan 20Switch(config-if-range)#exSwitch(config)#int range fa0/11 - fa0/15Switch(config-if-range)#switchport mode accessSwitch(config-if-range)#switchport access vlan 30Switch(config-if-range)#exSwitch(config)#int range fa0/16-fa0/20Switch(config-if-range)#switchport mode accessSwitch(config-if-range)#switchport access vlan 40Switch(config-if-range)#exSwitch(config)#endSwitch#
Switch>en4. Konfigurasi Switch1
Switch#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#vlan 99
Switch(config-vlan)#name antarswitch
Switch(config-vlan)#ex
Switch(config)#int fa0/24 //perhatikan port/kabel penghubung antar switches
Switch(config-if)#switchport mode trunk // memungkinkan untuk meneruskan lalu lintas antara switch
Switch(config-if)#
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/24, changed state to down
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/24, changed state to up
Switch(config-if)#switchport trunk native vlan 99 //vlan yang di gunakan
Switch(config-if)#exit
Switch(config)#
Switch>enb. Mendaftarkan Port pada vlan
Switch#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#
%CDP-4-NATIVE_VLAN_MISMATCH: Native VLAN mismatch discovered on FastEthernet0/24 (1), with Switch FastEthernet0/24 (99).
Switch(config)#vlan 10
Switch(config-vlan)#name mahasiswa
Switch(config-vlan)#ex
Switch(config)#vlan 20
Switch(config-vlan)#name dosen
Switch(config-vlan)#
%CDP-4-NATIVE_VLAN_MISMATCH: Native VLAN mismatch discovered on FastEthernet0/24 (1), with Switch FastEthernet0/24 (99).
Switch(config-vlan)#ex
Switch(config)#vlan 30
Switch(config-vlan)#name karyawan
Switch(config-vlan)#ex
Switch(config)#vlan 40
Switch(config-vlan)#name perkantoran
Switch(config-vlan)#end
Switch#
%SYS-5-CONFIG_I: Configured from console by console
Switch#
Switch#conf tc. Konfigurasi mode trunk
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#int range fa0/1-fa0/5 //range port interface yg didaftarkan
Switch(config-if-range)#
%CDP-4-NATIVE_VLAN_MISMATCH: Native VLAN mismatch discovered on FastEthernet0/24 (1), with Switch FastEthernet0/24 (99).
Switch(config-if-range)#switchport mode access //menghubungkan antar anggota VLAN
Switch(config-if-range)#switchport access vlan 10 //menghubungan ke VLAN 10
Switch(config-if-range)#ex
Switch(config)#int range fa0/6-fa0/10
Switch(config-if-range)#switchport mode access
Switch(config-if-range)#switchport access vlan 20
Switch(config-if-range)#ex
Switch(config)#int range fa0/11-fa0/15
Switch(config-if-range)#switchport mode access
Switch(config-if-range)#switchport access vlan 30
Switch(config-if-range)#ex
Switch(config)#int range fa0/16-fa0/20
Switch(config-if-range)#
%CDP-4-NATIVE_VLAN_MISMATCH: Native VLAN mismatch discovered on FastEthernet0/24 (1), with Switch FastEthernet0/24 (99).
Switch(config-if-range)#switchport mode access
Switch(config-if-range)#switchport access vlan 40
Switch(config-if-range)#end
Switch#
%SYS-5-CONFIG_I: Configured from console by console
Switch#
Switch>en
Switch#conf t
Switch(config)#vlan 99
Switch(config-vlan)#name antarswitch
Switch(config-vlan)#ex
Switch(config)#int fa0/24 //perhatikan port/kabel penghubung antar switches
Switch(config-if)#switchport mode trunk // memungkinkan untuk meneruskan lalu lintas antara switch
Switch(config-if)#
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/24, changed state to down
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/24, changed state to up
Switch(config-if)#switchport trunk native vlan 99 //vlan yang di gunakan
Switch(config-if)#exit
Switch(config)#
Router>enRouter#conf tEnter configuration commands, one per line. End with CNTL/Z.Router(config)#int fa0/0Router(config-if)#ip address 192.168.24.1 255.255.255.0Router(config-if)#no shutdownRouter(config-if)#%LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to upRouter(config-if)#exitRouter(config)#int se0/0Router(config-if)#ip address 172.16.12.1 255.255.255.0Router(config-if)#clock rate 9600Router(config-if)#no shutdown%LINK-5-CHANGED: Interface Serial0/0, changed state to downRouter(config-if)#exitRouter(config)#do cop run starDestination filename [startup-config]?Building configuration...[OK]Router(config)#do wr memBuilding configuration...[OK]Router(config)#exitRouter#%SYS-5-CONFIG_I: Configured from console by consoleRouter#
Router>enableRouter#conf tEnter configuration commands, one per line. End with CNTL/Z.Router(config)#int fa0/0Router(config-if)#ip address 192.168.32.1 255.255.255.0Router(config-if)#no shutdownRouter(config-if)#%LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to upRouter(config-if)#exitRouter(config)#int se0/0Router(config-if)#ip address 172.16.12.2 255.255.255.0Router(config-if)#no shutdownRouter(config-if)#%LINK-5-CHANGED: Interface Serial0/0, changed state to upRouter(config-if)#exitRouter(config)#do cop run starDestination filename [startup-config]?Building configuration...[OK]Router(config)#do wr memBuilding configuration...[OK]Router(config)#
b. Router 1Router>enRouter#conf tEnter configuration commands, one per line. End with CNTL/Z.Router(config)#router eigrp 100Router(config-router)#net 172.16.12.0Router(config-router)#net 192.168.24.0Router(config-router)#exitRouter(config)#do cop run starDestination filename [startup-config]?Building configuration...[OK]Router(config)#do wr memBuilding configuration...[OK]Router(config)#
Router>enRouter#conf tEnter configuration commands, one per line. End with CNTL/Z.Router(config)#router eigrp 100Router(config-router)#net 172.16.12.0Router(config-router)#%DUAL-5-NBRCHANGE: IP-EIGRP 100: Neighbor 172.16.12.1 (Serial0/0) is up: new adjacencyRouter(config-router)#net 172.16.12.0Router(config-router)#net 192.168.32.0Router(config-router)#exitRouter(config)#do cop run starDestination filename [startup-config]?Building configuration...[OK]Router(config)#do wr memBuilding configuration...[OK]Router(config)#
atau melihat eigrpRouter#show ip routeCodes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGPD - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter areaN1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGPi - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area* - candidate default, U - per-user static route, o - ODRP - periodic downloaded static routeGateway of last resort is not set172.16.0.0/16 is variably subnetted, 2 subnets, 2 masksD 172.16.0.0/16 is a summary, 00:09:50, Null0C 172.16.12.0/24 is directly connected, Serial0/0C 192.168.24.0/24 is directly connected, FastEthernet0/0D 192.168.32.0/24 [90/2172416] via 172.16.12.2, 00:01:27, Serial0/0Router#
Router#sh ip eigrp topology
IP-EIGRP Topology Table for AS 100
Codes: P - Passive, A - Active, U - Update, Q - Query, R - Reply,
r - Reply status
P 192.168.24.0/24, 1 successors, FD is 28160
via Connected, FastEthernet0/0
P 172.16.12.0/24, 1 successors, FD is 2169856
via Connected, Serial0/0
P 172.16.0.0/16, 1 successors, FD is 2169856
via Summary (2169856/0), Null0
P 192.168.32.0/24, 1 successors, FD is 2172416
via 172.16.12.2 (2172416/28160), Serial0/0
Router#
atau melihat eigrpRouter#show ip routeCodes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGPD - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter areaN1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGPi - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area* - candidate default, U - per-user static route, o - ODRP - periodic downloaded static routeGateway of last resort is not set172.16.0.0/16 is variably subnetted, 2 subnets, 2 masksD 172.16.0.0/16 is a summary, 00:01:12, Null0C 172.16.12.0/24 is directly connected, Serial0/0D 192.168.24.0/24 [90/2172416] via 172.16.12.1, 00:07:50, Serial0/0C 192.168.32.0/24 is directly connected, FastEthernet0/0Router#
Router#sh ip eigrp topology
IP-EIGRP Topology Table for AS 100
Codes: P - Passive, A - Active, U - Update, Q - Query, R - Reply,
r - Reply status
P 192.168.32.0/24, 1 successors, FD is 28160
via Connected, FastEthernet0/0
P 172.16.12.0/24, 1 successors, FD is 2169856
via Connected, Serial0/0
P 172.16.0.0/16, 1 successors, FD is 2169856
via Summary (2169856/0), Null0
P 192.168.24.0/24, 1 successors, FD is 2172416
via 172.16.12.1 (2172416/28160), Serial0/0
Router#