Article View: linux.redhat.install
Article #22Re: ping: Destination Host Unreachable
From: Matthew Klassen
Date: Thu, 09 Nov 2000 07:49
Date: Thu, 09 Nov 2000 07:49
74 lines
4193 bytes
4193 bytes
1. Yes i can ping 127.0.0.1 2. Yes each card can be pinged, ie. 192.168.0.1 (eth0) 192.168.0.2 (eth1) however if I try pinging one from the other, ie. ping 192.168.0.1 -I eth1 I get network host unreachable I gave the ip forward thing a try but that didn't help. basically the set up is that both cards are on the 192.168.0.0 network with a netmask of 255.255.255.0 Dont get too worried about me having the two cards in there and the problems with that, see I've just put them both in there to test it, the initial problem was that if one card was in there with the exact same settings as another rh6.2 box, it still couldn't ping the network, so i've been swaping cards and changing isa slots and even changing distributions, and nothing seems to be working. Matt Andrew Harwod wrote: > > in article 3A0736BD.2FB881E1@linuxfreak.com, Matthew Klassen at > antibios@linuxfreak.com wrote on 7/11/00 08:25: > > > This problem is really confusing. I'm trying to setup a linux box with > > two network cards as a gateway. No matter how I set it up when I try > > and ping it returns Destination Host Unreachable. All the connections > > are set up properly, I even went to the extend of setting up both the > > network cards on the same network, and trying to ping each other and > > that still doesn't work. My distro is a standard rh6.2 so i havn't > > touched firewall settings or host.allow/deny. > > > > Can anyone give me any other avenues to explore? > > If you had posted your setup details (ie, IP addresses, netmasks etc) for > each card, it would have helped greatly. > > Anyway, the following questions should help narrow down the problem. > > 1. Can you ping 127.0.0.1? > If not, then there is a serious problem, which playing around with the > interface settings will not fix. > > 2. Can you ping the interace addresses? (Ie, if eth0 has IP 192.168.0.1, can > you ping this address.) > If this fails for one or both cards, then pinging anything else will not > work. [1] > > 3. Are you pinging using IP addresses instead of hostnames? > If it works when using IPs, then the fault is with DNS. > > Assuming you pass all these tests, have you turned on IP forwarding? By > default, RH ships with this off. To enable it do the following: > > echo 1 > /proc/sys/net/ipv4.ip_forward > > The better way to set this option is in /etc/sysconfig/network file, where > you should have a line reading > > FORWARD_IPV4=yes > > Which will set IP forwarding up each time the system starts. > > If this does not help, please post your configuration details, along with > the answers to the above questions. > > [1] Unless you've turned off ping as a service, but you say its a default > RH6.2. > > -- > Andrew Harwood > > Don't bother trying to email me, it's an invalid address!
Technical Details
Message-ID:
<3A0A6510.487D7E92@linuxfreak.com>Path:
arc1-ca.pugleaf.net!supernews.google.com!sn-xit-02!supernews.com!isdnet!news.mel.connect.com.au!newshub1.rdc1.nsw.optushome.com.au!news1.belrs1.nsw.optushome.com.au.POSTED!not-for-mailReferences:
<3A0736BD.2FB881E1@linuxfreak.com> <B62D82F3.B601%nospam@nospam.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fcd6c,46213d15658bf82c X-Google-Attributes: gidfcd6c,public X-Google-Thread: 10669a,46213d15658bf82c X-Google-Attributes: gid10669a,public X-Google-Thread: 102983,46213d15658bf82c X-Google-Attributes: gid102983,public X-Google-ArrivalTime: 2000-11-08 23:49:09 PST Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-02!supernews.com!isdnet!news.mel.connect.com.au!newshub1.rdc1.nsw.optushome.com.au!news1.belrs1.nsw.optushome.com.au.POSTED!not-for-mail Message-ID: <3A0A6510.487D7E92@linuxfreak.com> From: Matthew Klassen <antibios@linuxfreak.com> X-Mailer: Mozilla 4.6 [en-gb]C-AtHomeI0407 (Win98; I) X-Accept-Language: en-GB,en,en-* MIME-Version: 1.0 Newsgroups: linux.redhat.install,comp.os.linux.networking,aus.computers.linux Subject: Re: ping: Destination Host Unreachable References: <3A0736BD.2FB881E1@linuxfreak.com> <B62D82F3.B601%nospam@nospam.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Lines: 74 Date: Thu, 09 Nov 2000 07:49:07 GMT NNTP-Posting-Host: 203.164.22.82 X-Complaints-To: abuse@optushome.com.au X-Trace: news1.belrs1.nsw.optushome.com.au 973756147 203.164.22.82 (Thu, 09 Nov 2000 18:49:07 EST) NNTP-Posting-Date: Thu, 09 Nov 2000 18:49:07 EST Organization: @Home Network