본문 바로가기

Network

arp 명령어

1.arp -a workstation의 local arp table을 표시한다.

C:>arp -a

Interface: 192.168.0.22 --- 0x2
Internet Address Physical Address Type
192.168.0.1 00-00-00-aa-bb-cc dynamic
192.168.0.3 00-00-aa-bb-cc-00 dynamic


2.잘못된 physical address가 지정 되었을 때 수정 방법.

# Delete the current arp entry for 192.168.0.1
c:>arp -d 192.168.0.1

# add a static entry for 192.168.0.1
c:>arp -s 192.168.0.1 00-00-00-11-22-33

# Display the arp table
C:>arp -a

Interface: 192.168.0.22 --- 0x2
Internet Address Physical Address Type
192.168.0.1 00-00-00-11-22-33 static
192.168.0.3 00-00-aa-bb-cc-00 dynamic
반응형