🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: linux.redhat.install
5 messages
5 total messages Started by Matthew Klassen Mon, 06 Nov 2000 00:00
ping: Destination Host Unreachable
#24
Author: Matthew Klassen
Date: Mon, 06 Nov 2000 00:00
11 lines
1443 bytes
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?

Thanx matt
Re: ping: Destination Host Unreachable
#25
Author: Karl Heyes
Date: Mon, 06 Nov 2000 00:00
15 lines
1561 bytes
In article <3A0736BD.2FB881E1@linuxfreak.com>, "Matthew Klassen"
<antibios@linuxfreak.com> wrote:

> 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.
> 

whats the output of ifconfig and netstat -rn

karl.
Re: ping: Destination Host Unreachable
#26
Author: Andrew Harwod
Date: Mon, 06 Nov 2000 23:29
52 lines
3244 bytes
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!
Re: ping: Destination Host Unreachable
#23
Author: Zebee Johnstone
Date: Thu, 09 Nov 2000 00:00
33 lines
2151 bytes
In aus.computers.linux on Thu, 09 Nov 2000 07:49:07 GMT
Matthew Klassen <antibios@linuxfreak.com> wrote:
>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.
>

Hmm..

Can you ping your network with either card?

Have you checked that you have unique IP addresses?

If you have been swapping alot, you may have old ARP addresses hanging
about too...

Post the results of ifconfig -a and netstat -rn, might seem something
that you've missed.

Zebee
Re: ping: Destination Host Unreachable
#22
Author: Matthew Klassen
Date: Thu, 09 Nov 2000 07:49
74 lines
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!
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads