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

There's more...

If you want to see our routed traffic that's hitting centos2, log onto your second VM and make sure that tcpdump is installed:

$ sudo yum install -y tcpdump

Next, ensure that your extra route from the before is in place on centos1, and start a ping going to any address in the range:

$ ping 172.16.0.3PING 172.16.0.3 (172.16.0.3) 56(84) bytes of data.

Back on centos2, start tcpdump against our eth1 interface:

$ sudo tcpdump -i eth1

You should start to see ICMP echo requests from centos1, without a response:

12:48:26.735055 IP 192.168.33.10 > 172.16.0.3: ICMP echo request, id 1696, seq 1, length 6412:48:27.736195 IP 192.168.33.10 > 172.16.0.3: ICMP echo request, id 1696, seq 2, length 6412:48:28.738030 IP 192.168.33.10 > 172.16.0.3: ...
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