Paul Rogers wrote:
> Dear All
>
> This is driving me scatty, can't any one help?
>
> I have recently setup a new server running RH linux 7.3, which will,
> if it ever works be web server.
>
> The problem is that I cant connect to anything when the box initiates
> the request. For example if I ping localhost or the server's own IP
> address I get a reply, but anything else, including other boxes on the
> same subnet and the GW just give host unreachable.
>
> I can connect to the box with SSH no problem and view web pages on
> Apache which is running on it (tho' as soon as the box uses a page
> that connects to another server ie mail etc it fails). I can also ping
> the box from any other PC and receive a reply. I can even connect via
> a windows box to the samba server running on the box.
Sounds like your gateway or netmask are wrong. Take a look in
/etc/sysconfig/network to see what these are, or in
/etc/sysconfig/network-scripts/ifcfg-eth* for multiple network ports.
> I'm sure the problem is with the network config, but can't see where
> the issue lies. I've included the outputs from ifconfig and netstat
> -rn below. Below those are the outputs from tcpdump when pinging
> between two servers. The first is where the ping was initiated by a
> server that is working fine and the second by the box that is
> "faulty". When the faulty box initiates the connection I only get
> repeated arp who-has messages.
>
> Can anyone suggest either what I can do to fix this or alternatively
> what can be done to further investigate this problem?
>
> Many thanks
>
> Paul
>
> ifconfig shows
>
> eth0 Link encap:Ethernet HWaddr 00:06:5B:F6:63:73
> inet addr:10.80.18.207 Bcast:10.80.23.255
> Mask:255.255.248.0
This part looks OK. The bitmapping from IP, Netmask, and broadcast all
look good.
> Kernel IP routing table
> Destination Gateway Genmask Flags MSS Window
> irtt Iface
> 10.80.16.0 0.0.0.0 255.255.248.0 U 40 0 0 eth0
> 127.0.0.0 0.0.0.0 255.0.0.0 U 40 0 0 lo
> 0.0.0.0 10.80.16.1 0.0.0.0 UG 40 0 0 eth0
This.... looks a little weird. Are you sure your gateway is 10.80.16.1?
And is your upstream switch or router correctly configured to route the
10.18.16.0/255.255.248.0 subnet for you?
|