You are on page 1of 2

192.168.1.

1 / 24
11000000 . 10101000 . 00000001 . 00000001
11111111 . 11111111 . 11111111 . 00000000 adalah bentuk digital dari submask 25
5.255.255.0
------------------------------------------ operasi and
11000000 . 10101000 . 00000001 . 000000000 = 192.168.1.0 = network , memiliki
range ip antara 192.168.1.1 - 192.168.1.254

192.168.1.1 192.168.1.156 ===> satu network


192.168.1.3 192.168.3.1

===> Beda Network

Fungsi Router itu menghubungkan yang berbeda network , jika dia satu network gun
akanlah switch .

Settingan Router
----Previlged ---router > en
router# config terminal
router(config)#
router(config)# interface fa 0/0
rotuer (config-if)#
rotuer (config-if)# exit
router(config)#
router(config)#exit
router#
***Menkonfigurasi port G1/0 dengan ip address 192.168.1.1***
R1#config terminal
Enter configuration commands, one per line. End with CNTL/Z.
R1(config)#interface g1/0
R1(config-if)#ip address 192.168.1.1 255.255.255.0
R1(config-if)#no sh
R1(config-if)#ex
R1(config)#ex
R1#
***Menyimpan Konfigurasi file ****
R1#copy run start
Destination filename [startup-config]?
Building configuration...
[OK]
***Menkonfigurasi port G3/0 dengan ip address 192.168.2.1**
R1#config ter
Enter configuration commands, one per line. End with CNTL/Z.
R1(config)#inter g3/0
R1(config-if)#ip add 192.168.2.1 255.255.255.0

R1(config-if)#no sh
***Cara Mengeping ke ip lainya via rotuer ***
R1(config-if)#do ping 192.168.2.3
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.2.3, timeout is 2 seconds:
.!!!!
Success rate is 80 percent (4/5), round-trip min/avg/max = 8/15/32 ms
***Menkonfigurasi port G2/0 dengan ip address 192.168.3.1**
R1(config-if)#ex
R1(config)#inter g2/0
R1(config-if)#ip add 192.168.3.1 255.255.255.0
R1(config-if)#no sh
R1(config-if)#
R1(config-if)# exit

Perutingan meggunakan ospf


R1#config terminal
R1(config)#router ospf 10
R1(config-router)#network 192.168.1.0 0.0.0.255 area 0
R1(config-router)#network 192.168.2.0 0.0.0.255 area 0
R1(config-router)#network 192.168.3.0 0.0.0.255 area 0

You might also like