December 2018
Beginner
826 pages
22h 54m
English
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: ...