LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Host Ureachable (https://www.linuxquestions.org/questions/linux-networking-3/host-ureachable-140458/)

King Richard 01-30-2004 02:36 PM

Host Ureachable
 
I have a linux box with Mandrake 9.1(destop), a Dell W2K (portable) and an ancient Gateway with RH 7.1 (no gui-CharlieBrown) and a router(cisco). My ultimate goal is to be able to exchange files between the two Linux boxes and the W2K box.

desktop can ping loopback and portable using IP or names
portable can ping loopback and desktop using IP or names
CharlieBrown can ONLY ping loopback or 127.0.0.1

When portable pings CharlieBrown, I get a 'request timed out'
When desktop pings CharliesBrown, I get 'host unreachable'

I have /etc/hosts configured exactly the same both Linux PCs and the \WINNT\system32\drivers\etc\hosts file reads exactly the same.

/etc/hosts are also configured the same on both Linux PCs and correspond to the configuration for the W2K box.

from what I understand, if CharlieBrown can ping loopback successfuly, TCP/IP is installed and working correctly. That would not mean that the NIC neccessarily checks out though right?

if desktop and portable can ping each other ok using IP or names than that eliminates them as the potential source of the problem correct?

From here, I do not know what to do.

sal_paradise42 01-30-2004 04:26 PM

check the gateway on CharlieBrown, and type ifconfig and route, and post the results back to us, we might be able to figure out whats up with that. do they all go through the cisco router?

King Richard 01-30-2004 07:43 PM

ifconfig:
eth0 Link encap:Ethernet HWaddr 00:0C:76:59:58:89
inet addr:192.168.0.1 Bcast:192.168.0.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1681 errors:0 dropped:0 overruns:0 frame:0
TX packets:39702 errors:0 dropped:0 overruns:0 carrier:39434
collisions:0 txqueuelen:100
RX bytes:234188 (228.6 Kb) TX bytes:6532097 (6.2 Mb)
Interrupt:18 Base address:0xe000 Memory:dffee000-dffef080

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:31986 errors:0 dropped:0 overruns:0 frame:0
TX packets:31986 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:2564838 (2.4 Mb) TX bytes:2564838 (2.4 Mb)

ppp0 Link encap:Point-to-Point Protocol
inet addr:207.65.155.77 P-t-P:207.65.155.1 Mask:255.255.255.255
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1500 Metric:1
RX packets:847 errors:24 dropped:0 overruns:0 frame:0
TX packets:946 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:3
RX bytes:620227 (605.6 Kb) TX bytes:194054 (189.5 Kb)

route:
Active Routes:
Network Destinations Netmask Gateway Interface Metric
0.0.0.0 0.0.0.0 192.168.0.1 192.168.0.2 1
127.0.0.0 255.0.0.0 127.0.0.1 127.0.0.1 1
192.168.0.0 255.255.255.0 192.168.0.2 192.168.0.2 1
192.168.0.2 255.255.255.255 127.0.0.1 127.0.0.1 1
192.168.0.255 255.255.255.255 192.168.0.2 192.168.0.2 1
224.0.0.0 224.0.0.0 192.168.0.2 192.168.0.2 1
255.255.255.255 255.255.255.255 192.168.0.2 192.168.0.2 1

Default Gateway: 192.168.0.1

Persistant Routes: None

I have not done anything with the router yet, I don't really know anything about routers, including how to access the router. I have added it to my network configuration files on all the computers in anticipation of using it.
I connect to the internet through dial up still.

sal_paradise42 01-30-2004 09:15 PM

wow you need to delete your routing table entries, you do that by doing a "route del <ipaddress of the route> "except for the loopback address 127.0.0.1, and after that you need to give your Linux box a diff. address than 192.168.0.1 those are usually reserved for the routers. do this "route add -net 192.168.0.0 dev eth0" and then "route add default gw 192.168.0.1" that is assuming192.168.0.1 is your default gateway, and assuming that your gateway is also your DHCP server just do a network restart, "/etc/rc.d/init.d/network restart" and that would give your box the needed address. Im assuming a lot of things by giving you all this information, and we know what assuming does. if that doesn't work tell me if you using a DHCP server or static, and what your other machines are using as their gateway, and also run ifconfig aswell as route.


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