Pain in the butt Gateway

Mike Rambo mrambo@lsd.k12.mi.us
Mon, 06 Mar 2000 10:25:06 -0500


<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
Matt Fuerst wrote:
Hey all,

I have set up a RedHat boxen on my network. I set the machine to install via
FTP via my gateway machine, lets say 192.168.255.1. The boxen IP is
192.168.255.3. Allright, /etc/sysconfig/network says my gateway is
"192.168.255.1". All should be well, right?

Well, it isn't. I can ping all my internal network, 192.168.255.X. However,
I cannot ping anywhere outside my world, while the rest of my internal
network can. I do a "netstat -rn" and it tells me that my IP 192.168.255.3
has a gateway of 0.0.0.0, and my IP address of 0.0.0.0 has a gateway of
192.168.255.1. ifconfig says inet addr:192.168.255.3  Bcast:192.168.255.255

Why would that be?

This is just weird...  any suggestions? what files to manipulate?
 

(Assuming your gateway machine is Linux - you didn't specify.)

Do you have forwarding turned on and the gateway device set on your gateway machine?

(/etc/sysconfig/network - this assumes two netcards - eth0 internal network and eth1 outside network)
[mrambo@linuxbox sysconfig]$ more network
NETWORKING=yes
FORWARD_IPV4=yes
HOSTNAME=gateway.yourdomain.com
DOMAINNAME=yourdomain.com
GATEWAY=10.8.1.251     <<<This IP points at the gateway (network router or ISP) your gateway machine uses.
GATEWAYDEV=eth1

Then for your new machine at x.x.x.3 you have forwarding off and the gateway IP set to x.x.x.1 and it should work.  The key is to get your gateway machine to forward packets it receives to the next gateway device on the network.

NETWORKING=yes
FORWARD_IPV4=no
HOSTNAME=newhost.yourdomain.com
DOMAINNAME=yourdomain.com
GATEWAY=x.x.x.1
GATEWAYDEV=

Hope this helps and isn't too confusing.

Mike Rambo
Lansing School District