Questions tagged [arp]

ARP is a protocol for resolution of network layer addresses such as IP into link layer addresses (such as MAC addresses). "arp" is also a command in Linux and Windows to manipulate the ARP cache.

Address Resolution Protocol (ARP) is a telecommunications protocol used for resolution of network layer addresses into link layer addresses, a critical function in multiple-access networks. ARP was defined by RFC826 in 1982.
It is also the name of the program for manipulating these addresses in most operating systems.

603 questions
4
votes
1 answer

"No route to host" when I do a telnet

I have two VM's in Azure with different public IP's: 10.10.1.9 10.10.1.6 When I do a telnet with following command from the server 10.10.1.6, I get the a error: telnet 10.10.1.9 2181 Trying 10.10.1.9... telnet: connect to address 10.10.1.9: No…
Nilotpal
  • 3,237
  • 4
  • 34
  • 56
4
votes
1 answer

Adding a new protocol to scapy (Similiar to ARP)

I would like to implement a new secure ARP protocol that is immune to ARP poisoning. The new "SecureArp" will hold a signature field that can be checked against an agreed upon hmac function. The scapy definition is as follows: class…
vito
  • 323
  • 1
  • 10
4
votes
1 answer

Why do we need Address Resolution Protocol?

I understand the mechanism of ARP but I am wondering why do we use it even if we have the recipient's IP address? Isn't it enough to rely on the recipient's IP address to send packets instead of taking extra steps of finding its matching MAC…
4
votes
2 answers

Find the MAC address of all devices connected to the same Wifi network

I'm trying to build a software that checks what devices are connected to my home network and return a list of those device's MAC address every 10 minutes or so. My approach was to ping all of the possible IP addresses on the network and call "arp…
4
votes
2 answers

Extracting MAC Address from arp table using grep regex

I am trying to extract MAC address from arp table without but it is returning a empty line. I tried to use the command: arp -a | grep eth1 | grep '^\A(([0-9a-fA-F]{2}):){5}([0-9a-fA-F]{2})$\z' The 'arp -a' command return: ? (192.168.36.20) at…
Ricardo
  • 667
  • 9
  • 25
4
votes
1 answer

Setting ICMP match with POX controller

I'm trying to add a flow entry to a switch using POX controller, my code is: fm = of.ofp_flow_mod() fm.match.in_port = 1 fm.priority = 33001 fm.match.dl_type = 0x800 fm.match.nw_src = IPAddr("10.0.0.1") fm.match.nw_dst =…
Daniel
  • 440
  • 4
  • 13
4
votes
2 answers

Sending scapy IP packet with no interface IP error

I'm currently trying to send an IP packet to an interface using the send(pkt, iface="eth0") function and I'm getting the error: WARNING: Mac address to reach destination not found. Using broadcast The interface I am trying to send out on doesn't…
geekscrap
  • 965
  • 2
  • 12
  • 26
4
votes
1 answer

IP Forwarding, MiTM in scapy

I am trying to conduct a MiTM attack using scapy, as a part of my project. Following are the details: pkt=ARP(op=1,hwdst='00:0c:29:9c:70:2e',pdst='192.168.1.105',psrc='192.168.1.1') send(pkt,loop=1) hwdst=Kali Linux MAC (attacker) pdst= Victims…
Muhammad Suleman
  • 727
  • 4
  • 13
  • 24
4
votes
2 answers

Send IP packet from Linux Kernel without destination mac address

I want to transmit an skb that contains a valid tcp and ip header in the linux kernel. It should go out a specific interface without being routed. My problem is, that I cannot use dev_queue_xmit because I dont know the destination mac-address. My…
kaidowei
  • 105
  • 1
  • 9
4
votes
2 answers

ARP Request in C#

I'm trying to make my Android Device think that I'm the router, using a simple ARP request in C# (Sending the arp from my laptop to my android device with C#). I thought that if i'll use SendArp Method (from Iphlpapi.dll), it'l…
albeck
  • 510
  • 1
  • 7
  • 16
4
votes
2 answers

No ARP response from gateway

I'm developing an embedded system that has to communicate with the outside world over 10Base-T ethernet. I have built all functions required to serve web pages, including ARP, IP, TCP, ICMP (ping), HTTP and portions of FTP. Now, I need to build…
3
votes
0 answers

How to create a python dictionary containing an ARP table?

I have created a python script to detect an ARP attack. I have already initiated a ARP spoof attack and stored the wireshark capture in a pcap file. Once the code is executed, the code is designed to alert of any possible attack based on the MAC…
koshila_dodan
  • 49
  • 1
  • 3
3
votes
0 answers

Android API level 30, Can't no longer get wifi network device MAC address from Android arp table

I have a small network scanner app which needs to find MAC addresses for scanned devices which responds to ping and so on. Soon Google requires targetSdkVersion 30 meaning that cannot no longer access arp table in any way without…
3
votes
0 answers

arp -s returning The ARP entry addition failed: Access is denied Win10

I am on windows 10, adding a static address with cmd arp -s 192.168.1.1 xx-xx-xx-xx-xx-xx It returns The ARP entry addition failed: Access is denied. I am running on administrator
jxefff422
  • 31
  • 2
3
votes
0 answers

Which function sends ARP packet to ARPD daemon in Linux kernel?

AFAIK, arpd is used to offload certain jobs and memory footprint from kernel. The arpd process can get packets from two sockets: notification messages from kernel via NETLINK regular ARP packets such as ARP_REPLY from the host's neighbors, via a…
QnA
  • 1,035
  • 10
  • 25