[질문]arp 관련 arping 패킷 문의
글쓴이: nidle / 작성시간: 목, 2007/10/18 - 3:04오후
안녕하세요.
arp를 공부중에 arping 를 실행하다가 패킷내용이 궁금해서 질문드립니다.
arping 에 -D옵션 (Duplicate address detection mode (DAD)) 이라고 해서 실행해봤습니다.
#arping -D 172.16.1.3
그런데 실제 하나의ip 에대해 두개의 pc에서 reply 를 보냈습니다. (그런데도 arping에서는 특별한 중복 메시지가 없었습니다)
패킷내용을 보았을때 request 내용과 reply 내용이 일반적인 arp 패킷과 내용이 달랐습니다. 아래의 패킷처럼 보내는의미가 무엇인가요??
참고로 mac 주소는 172.16.1.1 : M1
172.16.1.3 : M2
172.16.1.3동일 1p에 다른 mac : M3 수정했습니다.
패킷덤프 내용은 이더리얼로 했습니다.
.
.
.
No. Time Source Destination Protocol Info 1 0.000000 172.16.1.1 Broadcast ARP Who has 172.16.1.3? Tell 0.0.0.0 Frame 1 (42 bytes on wire, 42 bytes captured) Ethernet II, Src: 172.16.1.1 (M1), Dst: Broadcast (ff:ff:ff:ff:ff:ff) Destination: Broadcast (ff:ff:ff:ff:ff:ff) Source: 172.16.1.1 (M1) Type: ARP (0x0806) Address Resolution Protocol (request) Hardware type: Ethernet (0x0001) Protocol type: IP (0x0800) Hardware size: 6 Protocol size: 4 Opcode: request (0x0001) Sender MAC address: 172.16.1.1 (M1) Sender IP address: 0.0.0.0 (0.0.0.0) Target MAC address: Broadcast (ff:ff:ff:ff:ff:ff) Target IP address: 172.16.1.3 (172.16.1.3)
위의 패킷에서 일반적인 arp request는 Sender IP address: 0.0.0.0 (0.0.0.0) 가 아닌 자신의 ip 를 넣는것으로 알고있는데
0.0.0.0 이 들어가 있습니다.
.
.
.
No. Time Source Destination Protocol Info 2 0.000355 AbitComp_4a:21:b8 172.16.1.1 ARP 172.16.1.3 is at M2 Frame 2 (60 bytes on wire, 60 bytes captured) Ethernet II, Src: AbitComp_4a:21:b8 (M2), Dst: 172.16.1.1 (M1) Destination: 172.16.1.1 (M1) Source: AbitComp_4a:21:b8 (M2) Type: ARP (0x0806) Trailer: 000000000000000000000000000000000000 Address Resolution Protocol (reply) Hardware type: Ethernet (0x0001) Protocol type: IP (0x0800) Hardware size: 6 Protocol size: 4 Opcode: reply (0x0002) Sender MAC address: AbitComp_4a:21:b8 (M2) Sender IP address: 172.16.1.3 (172.16.1.3) Target MAC address: AbitComp_4a:21:b8 (M2) Target IP address: 172.16.1.3 (172.16.1.3) No. Time Source Destination Protocol Info 3 0.000360 172.16.1.3 172.16.1.1 ARP 172.16.1.3 is at M3 Frame 3 (60 bytes on wire, 60 bytes captured) Ethernet II, Src: 172.16.1.3 (M3), Dst: 172.16.1.1 (M1) Destination: 172.16.1.1 (M1) Source: 172.16.1.3 (M3) Type: ARP (0x0806) Trailer: 000000000000000000000000000000000000 Address Resolution Protocol (reply) Hardware type: Ethernet (0x0001) Protocol type: IP (0x0800) Hardware size: 6 Protocol size: 4 Opcode: reply (0x0002) Sender MAC address: 172.16.1.3 (M3) Sender IP address: 172.16.1.3 (172.16.1.3) Target MAC address: 172.16.1.3 (M3) Target IP address: 172.16.1.3 (172.16.1.3)
응답으로 위의 두 패킷이 왔습니다. 여기서도 일반적인 arp reply 는 Target 주소에 requtet한 장비의 주소 (mac, ip)를
넣는것으로 알고 있는데 자신의 주소를 넣어서 보냈습니다.
.
.
.
No. Time Source Destination Protocol Info 4 11.248128 172.16.1.1 Broadcast ARP Who has 172.16.1.3? Tell 172.16.1.1 Frame 4 (42 bytes on wire, 42 bytes captured) Ethernet II, Src: 172.16.1.1 (M1), Dst: Broadcast (ff:ff:ff:ff:ff:ff) Destination: Broadcast (ff:ff:ff:ff:ff:ff) Source: 172.16.1.1 (M1) Type: ARP (0x0806) Address Resolution Protocol (request) Hardware type: Ethernet (0x0001) Protocol type: IP (0x0800) Hardware size: 6 Protocol size: 4 Opcode: request (0x0001) Sender MAC address: 172.16.1.1 (M1) Sender IP address: 172.16.1.1 (172.16.1.1) Target MAC address: Broadcast (ff:ff:ff:ff:ff:ff) Target IP address: 172.16.1.3 (172.16.1.3)
위의 4번패킷은 arping 에서 옵션없이 #arping 172.16.1.3 한 request 패킷입니다.
Target MAC address: Broadcast (ff:ff:ff:ff:ff:ff) 에서 일반적인 arp패킷은 0.0.0.0(00:00:~~:00)을
넣는것으로 알고있습니다. 이런 내용들이 무슨기능이 있는것인지 궁금합니다.
아 그리고 arp request 할때 이더넷 소스 주소(Ethernet Src)와 Sender MAC address 와 다를수도 있나요??
Forums:
댓글 달기