On 12/3/07, Agnello George agnello.dsouza@gmail.com wrote:
Now is have one client with ip 10.0.0.5 , when i try to ping 10.0.0.5 ( following is the result ). I am neither able to ping 10.0.0.1 from my client machine ( 10.0.0.5 ) . My firewall is stoped and SElinux is disabled. [root@squid ~]# ping 10.0.0. 8 PING 10.0.0.8 (10.0.0.8) 56(84) bytes of data. From 203.199.24.154 icmp_seq=1 Destination Host Unreachable From 203.199.24.154 icmp_seq=2 Destination Host Unreachable From 203.199.24.154 icmp_seq=3 Destination Host Unreachable From 203.199.24.154 icmp_seq=4 Destination Host Unreachable From 203.199.24.154 icmp_seq=5 Destination Host Unreachable From 203.199.24.154 icmp_seq=6 Destination Host Unreachable From 203.199.24.154 icmp_seq=7 Destination Host Unreachable
too wired !! from where did i get this IP address ( 203.199.24.154 ) ???
I predict you have a line from VSNL!! :P How did I know that? Well the IP 203.199.24.154 belongs to VSNL. Now why are you getting THIS IP while pinging 10.0.0.8? Well, its YOUR fault ;) You've told the routing table to use 192.168.0.254 as the gateway for 10.0.0.0/24 IPs. So it sends the ping requests through THAT gateway. But what the heck is at the other end of 192.168.0.254? VSNL. VSNL's router i.e 203.199.24.154 doesn't know how to route your packet i.e. 10.0.0.8 so IT says "Destination host unreachable". Get it?
Now if you simply want 10.0.0.0/24 IPs to reach the internet then you need to setup NATing on this machine. Search for NAT Linux, IP forwarding etc... you'll get lots of resource.
If you cant do it, pay me. I'll do it for you ;)