WSL icon indicating copy to clipboard operation
WSL copied to clipboard

arp command not working at all - /proc/net/arp: No such file or directory

Open takenek opened this issue 9 years ago • 22 comments

root@SERWER:~# ping 192.168.1.1 PING 192.168.1.1 (192.168.1.1) 56(84) bytes of data. 64 bytes from 192.168.1.1: icmp_seq=1 ttl=64 time=1.90 ms 64 bytes from 192.168.1.1: icmp_seq=2 ttl=64 time=1.93 ms --- 192.168.1.1 ping statistics --- 2 packets transmitted, 2 received, 0% packet loss, time 1000ms rtt min/avg/max/mdev = 1.900/1.915/1.931/0.046 ms

root@SERWER:~# arp -a /proc/net/arp: No such file or directory

root@SERWER:~# arp /proc/net/arp: No such file or directory

arp command not working at all.

takenek avatar Jul 03 '17 03:07 takenek

Same problem. Using whereis arp shows this:

/usr/sbin/arp /usr/share/man/man7/arp.7.gz /usr/share/man/man8/arp.8.gz

But running /usr/sbin/arp again just prints:

/proc/net/arp: No such file or directory

apadin1 avatar Jul 13 '17 14:07 apadin1

I am having the same issue when I run arp command on "Bash on Ubuntu on Windows"

hamaney avatar Dec 13 '17 19:12 hamaney

First, you didn't fill out the template so we don't know what version you are running for starters, there's also no strace. Do a sudo mkdir /proc/net/arp and then see if ARP works then. If it doesn't, probably 69. Also check out 2621. If it does work, then is probably part of 2530. @therealkenc or @sunilmut should probably steer you better though.

WSLUser avatar Dec 13 '17 20:12 WSLUser

This issue is about as good a landing zone for /proc/net/arp as any. #69 is closed. ARP/wARP is a protein modeling system not arp(8). strace would be superfluous on this one because /proc/net/arp isn't a thing on WSL (in any version) right now. [It is of course a good idea to follow the issue template in any case because you get better service that way.] Ref #2538.

therealkenc avatar Dec 14 '17 00:12 therealkenc

I've some issue arp 10.23.171.25 /proc/net/arp: No such file or directory

SergeiZiuz avatar Aug 14 '19 09:08 SergeiZiuz

/proc/net/arp: No such file or directory

^--- Probably "try WSL2" in this case. Announcement here. Information on how to get on Windows 10 Insiders here. Waiting for Spring 2020 is a reasonable too, for the patient.

therealkenc avatar Aug 14 '19 21:08 therealkenc

No workaround for this issue? I'm running WLS this version

uname -a Linux N-20L6PF1PZ148 4.4.0-17763-Microsoft #379-Microsoft Wed Mar 06 19:16:00 PST 2019 x86_64 x86_64 x86_64 GNU/Linux

fandre@N-20L6PF1PZ148:/mnt/c/Users/$ arp /proc/net/arp: No such file or directory

Have this issue

sudo mkdir /proc/net/arp mkdir: cannot create directory ‘/proc/net/arp’: Operation not permitted

If creating the folder was the solution... but does anybody fixed arp issue?

Any comment is welcome.

feland207 avatar Nov 15 '19 09:11 feland207

No workaround for this issue? I'm running WLS this version

uname -a Linux N-20L6PF1PZ148 4.4.0-17763-Microsoft #379-Microsoft Wed Mar 06 19:16:00 PST 2019 x86_64 x86_64 x86_64 GNU/Linux

fandre@N-20L6PF1PZ148:/mnt/c/Users/$ arp /proc/net/arp: No such file or directory

Have this issue

sudo mkdir /proc/net/arp mkdir: cannot create directory ‘/proc/net/arp’: Operation not permitted

If creating the folder was the solution... but does anybody fixed arp issue?

Any comment is welcome.

I have exactly the same situation and have tried sudo mkdir /proc/net/arp to no avail!

IyadKhuder avatar Mar 02 '20 00:03 IyadKhuder

Same, arp command still doesn't work, mkdir didn't change anything

AdrienEdoukou avatar May 07 '20 21:05 AdrienEdoukou

try using arp.exe -a on WSL.

vonmoraes avatar Jul 20 '20 13:07 vonmoraes

try using arp.exe -a on WSL.

this is really a weird yet simple and working solution! thanks.

risinek avatar Sep 03 '20 20:09 risinek

try using arp.exe -a on WSL.

thanks for the solution.

robbhaker avatar Oct 14 '20 00:10 robbhaker

try using arp.exe -a on WSL.

thinks

caowenbo2000 avatar Oct 27 '20 07:10 caowenbo2000

running arp.exe from wsl is a weird thing to do. You're cheating yourself.

The result is the same as running arp.exe directly from your windows terminal. WSL has nothing to do with this at all.

By contrast if you want to run the linux version of the arp command, then you're still stuck.

bvandenbon avatar Mar 30 '21 16:03 bvandenbon

I have the same issue, and maybe it's worth noticing that command arp --help works.

BurgessX avatar May 25 '21 15:05 BurgessX

Indeed, and a whereis arp lists arp: /usr/sbin/arp as its first result.

bvandenbon avatar May 25 '21 16:05 bvandenbon

try using arp.exe -a on WSL.

try using arp.exe -a on WSL.

Thaks it's working 💯

JaK0B-Pro avatar Aug 02 '21 16:08 JaK0B-Pro

try using arp.exe -a on WSL.

Works on Bash on Ubuntu on Windows too. thanks

rakgup avatar Dec 02 '21 19:12 rakgup

Did anyone find a solution for this? I am having the same issue.

jsotopian-chwy avatar Feb 24 '22 00:02 jsotopian-chwy

seems like the LAN is go through the windows system, it will only update the arp table in windows

suguanYang avatar Apr 07 '22 16:04 suguanYang