Cara Mengetahui MAC Address jika diketahui IP di jaringan lokal

kadang kita pengen tahu mac address mesin yang kita terhubung dengannya di jaringan. Mac Address adalah semacam kode identik yang tercantum pada tiap kartu jaringan, seperti kode IMEI pada hand phone gitu lho :D

Ingredients:
di Linux, digunakan 2 perintah: ping dan arp

[jazma101@kawung] ~ [Sat Jun 25] @ 09:46:25
=*>whereis ping
ping: /bin/ping /usr/share/man/man8/ping.8.gz

[jazma101@kawung] ~ [Sat Jun 25] @ 09:47:42
=*>whereis arp
arp: /usr/sbin/arp /usr/share/man/man8/arp.8.gz /usr/share/man/man7/arp.7.gz

Directions:
Misalnya, kita ingin tahu MAC address sebuah komputer bernama “bunga”
sedangkan saya (dalam kondisi kali ini) berada di host bernama kawung dan username saya adalah jazma101

[jazma101@kawung] ~ [Sat Jun 25] @ 09:45:57
=*>ping bunga
PING bunga.mhs.cs.ui.ac.id (152.118.25.25): 56 data bytes
64 bytes from 152.118.25.25: icmp_seq=0 ttl=64 time=0.4 ms
64 bytes from 152.118.25.25: icmp_seq=1 ttl=64 time=0.1 ms
64 bytes from 152.118.25.25: icmp_seq=2 ttl=64 time=0.1 ms
^C64 bytes from 152.118.25.25: icmp_seq=3 ttl=64 time=0.1 ms
64 bytes from 152.118.25.25: icmp_seq=4 ttl=64 time=0.1 ms
64 bytes from 152.118.25.25: icmp_seq=5 ttl=64 time=0.1 ms

— bunga.mhs.cs.ui.ac.id ping statistics —
6 packets transmitted, 6 packets received, 0% packet loss
round-trip min/avg/max = 0.1/0.1/0.4 ms

nah … setelah di ping server bernama “bunga” tadi,
sekarang kita panggil perintah “arp”

[jazma101@kawung] ~ [Sat Jun 25] @ 09:46:09
=*>/usr/sbin/arp -a bunga
bunga.mhs.cs.ui.ac.id (152.118.25.25) at 00:02:B3:03:EB:C1 [ether] on eth0

nah .. intinya adalah: ping dulu IP tersebut, lalu gunakan perintah arp
untuk melihat MAC Address mesin yang kita ping sebelumnya :D

nah .. MAC Address server bunga.mhs.cs.ui.ac.id adalah 00:02:B3:03:EB:C1
nah kalo dari bunga ke kawung:

[jazma101@bunga] /etc [Sat Jun 25] @ 09:56:48
=*>ping kawung
PING kawung.mhs.cs.ui.ac.id (152.118.25.2): 56 data bytes
64 bytes from 152.118.25.2: icmp_seq=0 ttl=64 time=0.3 ms
64 bytes from 152.118.25.2: icmp_seq=1 ttl=64 time=0.1 ms

— kawung.mhs.cs.ui.ac.id ping statistics —
2 packets transmitted, 2 packets received, 0% packet loss
round-trip min/avg/max = 0.1/0.2/0.3 ms
[jazma101@bunga] /etc [Sat Jun 25] @ 09:57:04
=*>/usr/sbin/arp kawung
Address HWtype HWaddress Flags Mask Iface
kawung.mhs.cs.ui.ac.id ether 00:D0:B7:B8:54:8D C eth1

—–=====—–=====—–=====—–=====—–=====—–=====
W I N D O W S
—–=====—–=====—–=====—–=====—–=====—–=====

Nah … sekarang bagaimana kalau pake MS Windows,
di windows ternyata juga ada tuh perintah ping dan arp

pertama kali, kita ping komputer yang bernama “gaucho”

D:\Documents and Settings\ocuKampau>ping gaucho

Pinging gaucho [152.118.26.145] with 32 bytes of data:

Reply from 152.118.26.145: bytes=32 time<1ms TTL=128
Reply from 152.118.26.145: bytes=32 time<1ms TTL=128
Reply from 152.118.26.145: bytes=32 time<1ms TTL=128
Reply from 152.118.26.145: bytes=32 time<1ms TTL=128

Ping statistics for 152.118.26.145:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 0ms, Maximum = 0ms, Average = 0ms

sekarang tinggal di arp -a

D:\Documents and Settings\ocuKampau>arp -a gaucho
ARP: bad argument: gaucho

yo i .. ternyata ngga mau kalau dimasukkan nama,
berhubung kita dah tau IP Address nya si gaucho, tinggal diganti

D:\Documents and Settings\ocuKampau>arp -a 152.118.26.145

Interface: 152.118.26.123 — 0x20004
Internet Address Physical Address Type
152.118.26.145 00-02-1e-f1-66-04 dynamic

nah … 00-02-1e-f1-66-04 adalah MAC Address nya si gaucho

About these ads

5 Responses to “Cara Mengetahui MAC Address jika diketahui IP di jaringan lokal”

  1. Good site!!! Thank you!

  2. abbah jawara Says:

    nah klo dah dapet si Mac address trus gimana

  3. sedikit saran bro….gak usah susah2 pakai cain aja. atau kunjungi freecrack.wordpress.com ada cara penggunaannya tuh….heheeee…

  4. teng kyu. nice post

  5. thanks..membantu

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.

%d bloggers like this: