Skip to Content
Linux Administration Cookbook
book

Linux Administration Cookbook

by Adam K. Dean
December 2018
Beginner
826 pages
22h 54m
English
Packt Publishing
Content preview from Linux Administration Cookbook

Checking connectivity

Just knowing what device our box is using as its gateway is one thing, but actually being able to reach it is another thing entirely.

If you're standing before a box, there's a good chance you've been summoned to try and work out what's not working. Trying to ping the gateway is a good first step:

$ ping 10.0.2.2PING 10.0.2.2 (10.0.2.2) 56(84) bytes of data.64 bytes from 10.0.2.2: icmp_seq=1 ttl=64 time=0.768 ms64 bytes from 10.0.2.2: icmp_seq=2 ttl=64 time=0.333 ms64 bytes from 10.0.2.2: icmp_seq=3 ttl=64 time=0.637 ms

Here, our gateway device responded, but if yours doesn't, or you get Destination Host Unreachable, then there's a good chance something is going wrong (or you've been given duff information by your colleague ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Practical Linux Security Cookbook - Second Edition

Practical Linux Security Cookbook - Second Edition

Tajinder Kalsi
Mastering Linux Administration

Mastering Linux Administration

Alexandru Calcatinge, Julian Balog

Publisher Resources

ISBN: 9781789342529Supplemental Content