Networking Forums  

Go Back   Networking Forums > Networking Newsgroups > Linux Networking

No response from the gateway

Reply
 
Thread Tools Display Modes
  #1  
Old 05-16-2005, 02:44 PM
Default No response from the gateway



I am setting up a small office network. Its only one of the worksation
on the network that could ping the linux server while the server can
only ping one workstation (the one that can ping it), even I put all
the workstations in the /etc/hosts file.
Could this be because of the cable or Hub? Cos the response from the
workstations (windows) is Request Time Out while on the server (Linux)
it says, DestinationHost unreachable.

Also, the Linux is a gateway (router) to an ISP (External Internet
Connection), After configuring the (two)NICs, One for local and the
other for External network.

The local NIC config is

ip addy: 10.0.0.1
network: 10.0.0.0
broadcast: 10.0.0.255
netmask: 255.255.255.0

The External NIC is:

ip addy: 198.44.182.173
netmask: 255.255.255.224
The network addy is not given but I tried calculating it. It is thus:

network: 198.44.182.160
broadcast: 198.44.182.192

The route table looks like this:

Destination Gateway Netmask Flag Metric Ref Use IFace
198.44.182.160 * 255.255.255.224 U 0 0 0 eth0
10.0.0.0 * 255.255.255.0 U 0 0 0 eth1
169.254.0.0 * 255.255.0.0 U 0 0 0 eth1
127.0.0.1 * 255.0.0.0 U 0 0 0 lo
default 198.44.182.161 0.0.0.0 UG 0 0 0 eth0

I don't understand where the 169.254.0.0 came from.

I The /etc/resolv.conf looks like this
search inetgateway.geoniger.lab
nameserver 198.6.1.1
nameserver 198.44.182.140

I also made sure the file /proc/sys/net/ipv4/ip_forward is 1

However, I don't know the details of the NAT scripts.

The /etc/hosts looks like:
127.0.0.1 inetgateway.geoniger.lab localhost
10.0.0.1
10.0.0.2 system1
10.0.0.3 system2

The problem is when I try pinging the ISP gateway server from the local
server, there is no response, Just a waiting prompt - as if waiting for
a command to finish execution.

Why is this?


Nakel



lekkie.aydot@gmail.com
Reply With Quote
  #2  
Old 05-16-2005, 03:09 PM
falke
Guest
 
Posts: n/a
Default Re: No response from the gateway

"(E-Mail Removed)" wrote:
Jusdt a fast comment:
given your netmask *.224 and your nw address *.160,
the broadcast address should be *.191, not *.192.

>
> The External NIC is:
>
> ip addy: 198.44.182.173
> netmask: 255.255.255.224
> The network addy is not given but I tried calculating it. It is thus:
>
> network: 198.44.182.160
> broadcast: 198.44.182.192


Uwe

Reply With Quote
  #3  
Old 05-16-2005, 04:02 PM
Allen McIntosh
Guest
 
Posts: n/a
Default Re: No response from the gateway

(E-Mail Removed) wrote:
> I am setting up a small office network. Its only one of the worksation
> on the network that could ping the linux server while the server can
> only ping one workstation (the one that can ping it), even I put all
> the workstations in the /etc/hosts file.

Likely either the workstation is misconfigured. or it's hardware. Try
swapping workstation cables, looking for green lights on hubs and NICs,
etc. etc.
> Could this be because of the cable or Hub? Cos the response from the
> workstations (windows) is Request Time Out while on the server (Linux)
> it says, DestinationHost unreachable.

Likely your Linux box is getting no reply when it ARPs for the
workstation. tcpdump -n -i eth1 would tell you.
> Also, the Linux is a gateway (router) to an ISP (External Internet
> Connection), After configuring the (two)NICs, One for local and the
> other for External network.
>
> The local NIC config is
>
> ip addy: 10.0.0.1
> network: 10.0.0.0
> broadcast: 10.0.0.255
> netmask: 255.255.255.0
>
> The External NIC is:
>
> ip addy: 198.44.182.173
> netmask: 255.255.255.224
> The network addy is not given but I tried calculating it. It is thus:
>
> network: 198.44.182.160
> broadcast: 198.44.182.192

191, but that's not your problem. Should be right if you do ifconfig -a
>
> The route table looks like this:
>
> Destination Gateway Netmask Flag Metric Ref Use IFace
> 198.44.182.160 * 255.255.255.224 U 0 0 0 eth0
> 10.0.0.0 * 255.255.255.0 U 0 0 0 eth1
> 169.254.0.0 * 255.255.0.0 U 0 0 0 eth1
> 127.0.0.1 * 255.0.0.0 U 0 0 0 lo
> default 198.44.182.161 0.0.0.0 UG 0 0 0 eth0
>
> I don't understand where the 169.254.0.0 came from.

Google for it.
>
> I The /etc/resolv.conf looks like this
> search inetgateway.geoniger.lab

If this is bogus (you don't have a nameserver for it) don't use it.
> nameserver 198.6.1.1
> nameserver 198.44.182.140
>
> I also made sure the file /proc/sys/net/ipv4/ip_forward is 1

You're nowhere near needing this yet.
>
> However, I don't know the details of the NAT scripts.
>
> The /etc/hosts looks like:
> 127.0.0.1 inetgateway.geoniger.lab localhost
> 10.0.0.1


127.0.0.1 localhost.localdomain localhost
10.0.0.1 inetgateway inetgateway.geoniger.lab

Folks can argue about the order of these, whether localhost.localdomain
is necessary (RH likes it) and whether the bogus domain is a Good Idea,
but you should at least have a name here.

> 10.0.0.2 system1
> 10.0.0.3 system2
>
> The problem is when I try pinging the ISP gateway server from the local
> server, there is no response, Just a waiting prompt - as if waiting for
> a command to finish execution.
> Why is this?

For starters, use ping -n, which turns off DNS resolution. (Same thing
if you wind up using tcpdump, by the way.) That way ping doesn't stall
if the nameserver is misconfigured. I assume you are pinging
198.44.182.161 here. Try also pinging 10.0.0.2.
Reply With Quote
  #4  
Old 05-19-2005, 07:38 PM
lekkie.aydot@gmail.com
Guest
 
Posts: n/a
Default Re: No response from the gateway

I don't understand the output of the tcpdumps.

Reply With Quote
Reply

Tags
gateway, response

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT. The time now is 07:54 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.