Link to home
Avatar of blnukem
blnukem

asked on

Redhat 9 IP Address Can't Ping Server

Hi All

I just install a new Redhat 9 server, but I cant ping it from any workstations. I'm very new to this so be easy, here is what I have.

etc/sysconfig/network looks like this:

NETWORKING=yes
HOSTNAME=mydomain.com
GATEWAY=192.168.1.1     <-- My routers IP address
GATEWAYDEV=eth0


etc/sysconfig/network-scripts/ifcfg-eth0 file looks like this:


DEVICE=eth0
ONBOOT=yes
BOOTPROTO=static
IPADDRESS=192.168.1.50      <-- The IP I want the RH9 box to have
NETMASK=255.255.255.0
GATEWAY=192.168.1.1



#####################################
# I Also tried:
#####################################

/etc/hosts

127.0.0.1     localhost.localdomain localhost
192.168.1.50  mydomain.com mydomian

and /etc/sysconfig/network-scripts/ifcfg-eth0 to:

DEVICE=eth0
BOOTPROTO=static
BROADCAST=192.168.1.255
IPADDR=192.168.1.50
NETMASK=255.255.255.0
NETWORK=192.168.1.0
ONBOOT=yes



Avatar of mglxxx
mglxxx

What do you get, if you do an 'ifconfig -a'? Can you ping any of the workstations from the server?
Avatar of blnukem

ASKER

mglxxx

ifconfig -a returns command not found.

It appears the I can ping 192.168.1.1 <-- My routers IP address and I can ping 192.168.1.3 <-- My workstation IP address that is handed via a Linksys  router using DHCP.
Avatar of blnukem

ASKER


If I ping http://www.msn.com or http:/www.goggle.com I get: unknown host
Avatar of Julian Parker
Thats a DNS issue, add;

search 192.168.1.1

into your /etc/resolv.conf file
ASKER CERTIFIED SOLUTION
Avatar of mglxxx
mglxxx

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
Ahhhh.... I knew I'd use the wrong option :-)

The ol'memory aint what it used to be! Please don't tell the lads in the office !