Yeah I tried mtr again recently. After maybe 30 seconds of working fine, it'll exit with an error like "no route to host" (even though it was getting responses before). Yeah, packet loss is exactly why I'm opening mtr: to see where on the path it occurs... how in the world does that make it crash
I'm interested in the topic so skimmed the whole thing but it's all just basics. Most people won't know them all, but so FYI: skip the lengthy article if you know how traceroute and ARP and ICMP work in general, what the difference is between connection times out and connection refused, and why sometimes traceroute returns more than one host for a given hop.
I wouldn't call the details he goes into with traceroute "just basics", its common even for network engineers to come to the wrong conclusion based on traceroute output, or not realising that they need more information to truly know what is going on (traceroute from both sides).
> Further, the system that replies with a Destination host unreachable is the system which doesn’t have a path to the requested network - so you immediately know where to start looking.
No, that's "Destination net unreachable". Destination host unreachable means it didn't get an ARP response so it doesn't know the MAC address of the system with that IP.
I love these types of practical approaches to networking. At least for me, I think it's the clearest way to learn about these things (rather than just read about them). Would have certainly made my university networkings course much more clear!
That's what made Crafting Interpreters[0] so compelling to me. Does anyone know any similar resources for networking?
ping and traceroute used to be very useful tools. Then for a period of time -- maybe still ongoing -- sysadmins and some network security folks decided that by blocking ALL ICMP at their network edge, they were increasing security. (Wrong!) As a result, you get hanging traceroutes with one or two hops left and you can't use ping to verify a host is online. Worse, blocking all ICMP breaks things like MTU discovery along the path. Recently I have seen admins coming to their senses and unblocking ICMP, but it's still an old rule-of-thumb held by many.
Another common basic test for at-least windows clients that you should also add to the beginning is when you run a ping test and has the reply of your own host IP.
I don’t know how many times I’ve had systems admins or engineers come to me saying there’s a network is but there NIC port is misconfigured. This usually happens due to two NICs being configured or they something else tuned incorrectly with vlan tagging at the nic under properties or the vswitch is incorrectly configured.
tedd4u|3 years ago
brew install mtr
Try tapping 'd' twice to enable a stripchart
? for help
Aachen|3 years ago
layer8|3 years ago
neilv|3 years ago
sim7c00|3 years ago
alam2000|3 years ago
[deleted]
Aachen|3 years ago
Hikikomori|3 years ago
herpderperator|3 years ago
No, that's "Destination net unreachable". Destination host unreachable means it didn't get an ARP response so it doesn't know the MAC address of the system with that IP.
atoav|3 years ago
justinsaccount|3 years ago
rtev|3 years ago
An easy trick I use a lot is host OS identification via ICMP. A TTL of around 64 is Linux, ~128 is windows.
pbardea|3 years ago
That's what made Crafting Interpreters[0] so compelling to me. Does anyone know any similar resources for networking?
[0] https://craftinginterpreters.com/
psim1|3 years ago
JackGreyhat|3 years ago
Bluecobra|3 years ago
https://ma.ttias.be/silly-little-ip-tricks/
manaskarekar|3 years ago
ketchup_057|3 years ago
MauranKilom|3 years ago
ekiauhce|3 years ago
This tool has great documentation, see https://nmap.org/book/intro.html for more details
zeristor|3 years ago
https://nmap.org/movies/
Some times you can’t make out the text in films, but that is what Enhance is for.
_gmax0|3 years ago
mrex|3 years ago
ianai|3 years ago
owlbynight|3 years ago
curl -v telnet://example.com:8000
dah00pl3|3 years ago
nc example.com 8080 -v -w 60
effnorwood|3 years ago
[deleted]