본문 바로가기

Hojung's Command List

Total Commands : 232

 (e)grep (6)
 * find large files (2)
 * System info (12)
 * Term Key (8)
 * use previous argu (1)
 *CD/DVD cmd (5)
 *DNS test (4)
 ab (2)
 apg (1)
 arping (4)
 at (1)
 awk (1)
 cal (2)
 cd and pushd (3)
 crontab (7)
 curl (4)
 dd (1)
 dhclient (1)
 dig (2)
 du (1)
 echo (1)
 editcap (1)
 ethtool (2)
 find (20)
 head (1)
 history (1)
 host (1)
 hping3 (6)
 ifconfig (3)
 lftp (1)
 logger (1)
 ls (2)
 lsof (2)
 mail (2)
 man (1)
 mergecap (1)
 mount (8)
 nc (netcat) (1)
 ncftpput (1)
 netcat(nc) (1)
 netstat (1)
 nice (2)
 nl (1)
 nmap (5)
 ntpdate (1)
 openssl (15)
 ping (1)
 pkill (1)
 ps (2)
 rar (1)
 recode (6)
 rename (3)
 rm (1)
 route (2)
 rpm (4)
 sed (4)
 smb (3)
 snmpwalk (2)
 sort (4)
 ssh (1)
 tar (6)
 tcpdump (10)
 top (1)
 touch (2)
 uniq (1)
 vi (11)
 wall (2)
 wget (3)
 yum (5)
 zip/unzip (6)

호스트의 MAC 주소 보기
(계속 ARP Request를 broadcast)

arping -bI eth0 192.168.206.50

#arping -b 192.168.206.50
ARPING 192.168.206.50 from 192.168.206.123 eth0
Unicast reply from 192.168.206.50 [00:12:79:C3:02:22] 0.956ms
Unicast reply from 192.168.206.50 [00:12:79:C3:02:22] 0.782ms
-------------------------
16:40:00.194691 ARP, Request who-has 192.168.206.50 (ff:ff:ff:ff:ff:ff) tell 192.168.206.123, length 28
16:40:00.195098 ARP, Reply 192.168.206.50 is-at 00:12:79:c3:02:22, length 46
16:40:01.194738 ARP, Request who-has 192.168.206.50 (ff:ff:ff:ff:ff:ff) tell 192.168.206.123, length 28
16:40:01.194991 ARP, Reply 192.168.206.50 is-at 00:12:79:c3:02:22, length 46
Written by Hojung at 2010-05-20 17:37:11

호스트의 MAC 주소 보기
(처음 ARP Request를 broadcast하고 응답이 오면 arp request 해당 MAC으로만 보냄)

arping -fI eth0 192.168.206.50 <-------- 응답이 오면 끝냄. -I는 대문자 i
arping -I eth0 192.168.206.50 <-------- 반복적으로 arp request 보냄

#arping -I eth0 192.168.206.50
ARPING 192.168.206.50 from 192.168.206.123 eth0
Unicast reply from 192.168.206.50 [00:12:79:C3:02:22] 0.722ms
Unicast reply from 192.168.206.50 [00:12:79:C3:02:22] 0.942ms
---------------------------------
16:30:23.715252 ARP, Request who-has 192.168.206.50 (ff:ff:ff:ff:ff:ff) tell 192.168.206.123, length 28
16:30:23.715430 ARP, Reply 192.168.206.50 is-at 00:12:79:c3:02:22, length 46
16:30:24.715303 ARP, Request who-has 192.168.206.50 (00:12:79:c3:02:22) tell 192.168.206.123, length 28
16:30:24.715710 ARP, Reply 192.168.206.50 is-at 00:12:79:c3:02:22, length 46
Written by Hojung at 2010-05-20 17:35:14

ARP Reply 보내기 (broadcast)

arping -A 192.168.206.123

16:38:00.643997 00:26:b9:7b:a1:8d > ff:ff:ff:ff:ff:ff, ethertype ARP (0x0806), length 42: Reply 192.168.206.123 is-at 00:26:b9:7b:a1:8d, length 28
16:38:01.644034 00:26:b9:7b:a1:8d > ff:ff:ff:ff:ff:ff, ethertype ARP (0x0806), length 42: Reply 192.168.206.123 is-at 00:26:b9:7b:a1:8d, length 28
Written by Hojung at 2010-05-20 17:33:34

네트워크의 중복 IP 감지기

arping -D 192.168.206.50

ARPING 192.168.206.50 from 0.0.0.0 eth0
Unicast reply from 192.168.206.50 [00:12:79:C3:02:22] 0.947ms
Sent 1 probes (1 broadcast(s))
Received 1 response(s)
Written by Hojung at 2010-05-20 17:28:59