Comments (3)
From the README:
Q: After compiling arping without any problem, i test it first with
localhost... but it doesn't respond. Isn't that strange?
A: Not really, as you can see by typing 'ifconfig' the lo (local) interface
does not have a MAC address. It's not a physical device! MAC addresses are
there to differentiate computers on a shared medium (the aether, or ether)
and since packets to localhost does not go over any wire there is no need
to identify which box is talking to which. There is only one.
from arping.
Still Getting timeout.I am using mac OS for this.
$ ifconfig
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384
options=1203<RXCSUM,TXCSUM,TXSTATUS,SW_TIMESTAMP>
inet 127.0.0.1 netmask 0xff000000
inet6 ::1 prefixlen 128
inet6 fe80::1%lo0 prefixlen 64 scopeid 0x1
nd6 options=201<PERFORMNUD,DAD>
gif0: flags=8010<POINTOPOINT,MULTICAST> mtu 1280
stf0: flags=0<> mtu 1280
en0: flags=8863<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST> mtu 1500
ether ::::
inet6 fe80::888:3687::%en0 prefixlen 64 secured scopeid 0x4
inet 10.222.41.27 netmask 0xfffff000 broadcast 10.222.47.255
nd6 options=201<PERFORMNUD,DAD>
media: autoselect
status: active
First I did this
$ sudo ./a.out -v -c 3 google.com
arping: lookup dev: No matching interface found using getifaddrs().
arping: Unable to automatically find interface to use. Is it on the local LAN?
arping: Use -i to manually specify interface. Guessing interface en0.
This box: Interface: en0 IP: 10.222.41.27 MAC address: ::::
ARPING 172.217.160.46
Timeout
Timeout
Timeout
After knowing the active interface I finally I did this
$ sudo ./a.out -i en0 -c 3 -v google.com
This box: Interface: en0 IP: 10.222.41.27 MAC address: ::::
ARPING 172.217.160.46
Timeout
Timeout
Timeout
--- 172.217.160.46 statistics ---
3 packets transmitted, 0 packets received, 100% unanswered (0 extra)
from arping.
Please read the whole README. Now you're just asking another question that's already answered in it:
Q: I tried to ping my own MAC address, but it doesn't work.
A: A sane OS will think it's suspicious if you send packets to yourself over
the wire and will ignore them.
And why would you want to lookup the IP or MAC of yourself? ifconfig
can tell you that.
And you can't arping google because google is not on the same LAN segment as you.
from arping.
Related Issues (20)
- configure: error: libnet 1.1.x not found HOT 9
- -bash: ./configure: No such file or directory ? HOT 1
- No ./configure. Bootstrap looks for autoreconf which is not provided :/ HOT 2
- False positives when the pinging machine receives ARP requests at the same time HOT 2
- Cross compiling Arping causes multiple definitions error HOT 3
- Retrieve unknown IP if Mac is known HOT 3
- libnet_get_hwaddr(): socket: Permission denied HOT 4
- arping: libnet_init(LIBNET_LINK, <null>): <no error message> HOT 38
- RFE: support the -f option for iputils arping compatibility HOT 3
- Fail to ping device by MAC address HOT 3
- arping_test compile failure HOT 8
- unsupport libnet 1.2 and libnet 1.1.2.1 HOT 1
- unicast HOT 1
- arping on macOS 10.11.6 not working HOT 4
- -t not changing Target MAC Address HOT 8
- Compilation error HOT 1
- How security vulnerabilities for this package is tracked in NIST/NVD? HOT 4
- Build error under Termux (Android) HOT 23
- No replies received using vlan option with older libpcap HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from arping.