I am practising for LFCS. I have two virtual machines, ubuntu 18.04 both.
On machine1, when i run traceroute 8.8.8.8
I have a normal output. When on machine1 I run
sudo ip route add 8.8.0.0/16 proto static metric 10 via inet if-of-machine2 dev ens3
then the traceroute stops at the first hop as follows
traceroute to 8.8.8.8 (8.8.8.8), 30 hops max, 60 byte packets
1 machine2 0.439 ms 0.380 ms 0.359 ms
2 * * *
3 * * *
4 * * *
5 * * *
6 * * *
.....
and never completes.
On machine2, traceroute 8.8.8.8
is absolutely successful. Also I set
sysctl net.ipv4.ip_forward=1
I flushed iptables
and i made sure all policies are set to ACCEPT. ufw
is disabled.
What am i missing? Why is traceroute not going further my first hop on machine1?