Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
takenek opened this issue Jul 3, 2017 · 22 comments
Closed

Comments

@takenek
Copy link

takenek commented Jul 3, 2017

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.

@apadin1
Copy link

apadin1 commented Jul 13, 2017

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

@hamaney
Copy link

hamaney commented Dec 13, 2017

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

@WSLUser
Copy link

WSLUser commented Dec 13, 2017

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.

@therealkenc
Copy link
Collaborator

therealkenc commented Dec 14, 2017

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.

@SergeiZiuz
Copy link

SergeiZiuz commented Aug 14, 2019

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

@therealkenc
Copy link
Collaborator

/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.

@feland207
Copy link

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.

@IyadKhuder
Copy link

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!

@AdrienEdoukou
Copy link

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

@vonmoraes
Copy link

try using arp.exe -a on WSL.

@risinek
Copy link

risinek commented Sep 3, 2020

try using arp.exe -a on WSL.

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

@robbhaker
Copy link

try using arp.exe -a on WSL.

thanks for the solution.

@caowenbo2000
Copy link

try using arp.exe -a on WSL.

thinks

@bvandenbon
Copy link

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.

@BurgessX
Copy link

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

@bvandenbon
Copy link

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

@JaK0B-Pro
Copy link

try using arp.exe -a on WSL.

try using arp.exe -a on WSL.

Thaks it's working 💯

@rakgup
Copy link

rakgup commented Dec 2, 2021

try using arp.exe -a on WSL.

Works on Bash on Ubuntu on Windows too. thanks

@jsotopian-chwy
Copy link

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

@suguanYang
Copy link

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

@Switch-H
Copy link

Switch-H commented Mar 9, 2023

alias arp="arp.exe"

@eggbean
Copy link

eggbean commented Jul 18, 2023

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 arp can only get MAC addresses within the same Layer 2 network. WSL2 works within its own subnet, so arp on WSL can only work within that subnet. You need to use the Windows arp.exe only because the host Windows NIC is on the same network as the device you are trying to get the MAC address from.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests