LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   No route to host error... (https://www.linuxquestions.org/questions/programming-9/no-route-to-host-error-379942/)

alwaysrookie 11-04-2005 12:16 PM

No route to host error...
 
hello, everyone.

I met NO route to host error while i am doing udp-msg sending program

routing tables are given

192.168.2.0 0.0.0.0 255.255.255.0 U 0 0 0 ath0
192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 eth1

I want to send a udp message to 192.168.1.11
Is there always default gate way?
I guess 192.168.1.11 destination packet will be sent by eth1.

Any answers will be appreciated

Thanks in advance

regards
always rookie

paulsm4 11-04-2005 12:27 PM

Maybe this would probably be better to have posted to the "network" group instead?

I'd troubleshoot (in roughly this order);

1. Can the client host ping the server?
2. If not, is there a firewall in the way?
3. If not, are they on the same (or different!) physical segments?
<= Remember: 192.168.x.x is a non-routable LAN.
If you've got two DIFFERENT "192.168.x.x", you're SOL in terms of getting the two to talk with each other

So make sure they can ping each other first. Troubleshoot at the network configuration level first.

alwaysrookie 11-04-2005 12:33 PM

thanks for comment paulsm4

they can ping each other and no firewall is set up.

they are on same physical segments (they use same channel)

I dont understand that 192.168.x.x is a non-routable LAN.

I set ip_forward option true. I think it can route...


All times are GMT -5. The time now is 03:38 AM.