#arp 명령어를 이용하여 나와 근접해 있는 ip의 맥 주소를 확인 할 수 있다.
[root@ns ~]# arp -v
Address HWtype HWaddress Flags Mask Iface
1xx.xx.74.1 ether 00:30:4f:b2:f0:9x C eth0
Entries: 1 Skipped: 0 Found: 1
[root@ns ~]#
[root@ns ~]# 게이트웨이 주소로 arp -c ping 명령어를 이용하여 게이트웨이의 맥주소 확인
[root@ns ~]# arping -c 5 115.68.74.1
ARPING 115.68.74.1 from 115.68.74.210 eth0
Unicast reply from 115.68.74.1 [00:30:4F:B2:F0:9x] 2.342ms
Unicast reply from 115.68.74.1 [00:30:4F:B2:F0:9x] 1.967ms
Unicast reply from 115.68.74.1 [00:30:4F:B2:F0:9x] 2.249ms
Unicast reply from 115.68.74.1 [00:30:4F:B2:F0:9x] 1.966ms
Unicast reply from 115.68.74.1 [00:30:4F:B2:F0:9x] 1.937ms
Sent 5 probes (1 broadcast(s))
'Linux > 자주쓰는 명령어 정리' 카테고리의 다른 글
iptables 특정 ip 허용 (0) | 2016.07.08 |
---|---|
NMAP 을 이용하여 사용하는 데몬 및 버전 확인 (0) | 2016.02.22 |
iptables//-save,-restore (0) | 2016.01.21 |
심볼릭 링크 ln -s (0) | 2016.01.20 |
[CentOS 6.x]아파치 웹로그파일 방문자수 카운트 (0) | 2015.12.13 |