LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Internet not working - network is (https://www.linuxquestions.org/questions/linux-networking-3/internet-not-working-network-is-248391/)

cbriscoejr 10-28-2004 10:42 AM

Internet not working - network is
 
I have installed CentOS 3.1 and the network is set for DHCP. I am able to ping other servers in the network but the Internet is not. Mozilla issues a message :Site not found. Check the address and try again"

The /etc/host.conf file contains "order hosts,bind"
The /etc/resov.conf is correct

;generated by /sbin/dhclient-script
search (correct domain name)
nameserver 164.95.xxx.x
nameserver 164.95.xxx.x

What else should I be looking at? I don't have a Linux gui to compare to.
:confused: :newbie:

maxut 10-28-2004 11:20 AM

check routing table if u it got correct gateway ip from DHCP server.
#/sbin/route -n
if it doesnt get gateway ip, u can add default route like that:
#/sbin/route add default gw ip_of_gateway

good luck.

cbriscoejr 10-28-2004 12:00 PM

The default gateway shows when I do netstat -r. It is different from the default gateway on the Windows desktops on the same subnet (ipconfig /all). I attempted the route add command using the same gateway IP that is on the desktops and it replied "SIOCADDRT:File exist"

Still :confused:

maxut 10-28-2004 12:18 PM

try to remove the default routing first, then add correct one
Code:

/sbin/route del default
/sbin/route add default gw ip_of_gateway

if it still fails, try static ip instead of getting it from DHCP. it seems there s a trouble beetwen your DHCP server and linux.
u can configure your network with "/usr/sbin/netconfig"

good luck.

cbriscoejr 10-28-2004 01:14 PM

Its odd. When I delete the default I check and it is gone. After I do the route add I check and the default gw is back to the one it was before. I am on a subnet that is exclusive DHCP. I have a static on a different subnet. How would that work?

:scratch:


All times are GMT -5. The time now is 07:34 PM.