So suddenly I was getting this weird error. Don’t know the exact reason. But some forum says it may happens because of having multiple NICs.
Anyway, then I checked $ sudo netstat -nr
Kernel IP routing table Destination Gateway Genmask Flags MSS Window irtt Iface 10.10.10.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
then run the following command
$ /sbin/route add -net 0.0.0.0 gw 10.10.10.1 eth0
and this time the result was different
Kernel IP routing table Destination Gateway Genmask Flags MSS Window irtt Iface 0.0.0.0 10.10.10.1 0.0.0.0 UG 0 0 0 eth0 10.10.10.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
….tada!!! It started working!