LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 10-28-2004, 10:42 AM   #1
cbriscoejr
Member
 
Registered: Sep 2004
Location: Baltimore, Md
Distribution: Red Hat
Posts: 47

Rep: Reputation: 15
Unhappy 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.
 
Old 10-28-2004, 11:20 AM   #2
maxut
Senior Member
 
Registered: May 2003
Location: istanbul
Distribution: debian - redhat - others
Posts: 1,188

Rep: Reputation: 50
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.
 
Old 10-28-2004, 12:00 PM   #3
cbriscoejr
Member
 
Registered: Sep 2004
Location: Baltimore, Md
Distribution: Red Hat
Posts: 47

Original Poster
Rep: Reputation: 15
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
 
Old 10-28-2004, 12:18 PM   #4
maxut
Senior Member
 
Registered: May 2003
Location: istanbul
Distribution: debian - redhat - others
Posts: 1,188

Rep: Reputation: 50
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.

Last edited by maxut; 10-28-2004 at 12:20 PM.
 
Old 10-28-2004, 01:14 PM   #5
cbriscoejr
Member
 
Registered: Sep 2004
Location: Baltimore, Md
Distribution: Red Hat
Posts: 47

Original Poster
Rep: Reputation: 15
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?

 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Network card not working? Cannot activate network device eth0 lifeonitsown Linux - Networking 1 11-17-2005 06:30 AM
Network Adapter Working but no Internet on Suse 10.0 Sleepy_Sentry Linux - Wireless Networking 1 11-10-2005 01:15 AM
redhat network working but no internet thru router pengy666 Linux - Networking 6 05-10-2005 08:16 AM
Internet working, network not working... phoenix07 Fedora 1 04-11-2004 02:30 AM
Ethernet Adapter not working or Network not working... phoenix07 Linux - Hardware 2 04-09-2004 06:58 PM


All times are GMT -5. The time now is 07:32 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration