LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-20-2011, 12:28 AM   #1
dushyantgohil
Member
 
Registered: Aug 2011
Location: India
Distribution: Cent OS & Ubuntu
Posts: 107

Rep: Reputation: 3
Unhappy no internet access in cent os 5.5


hi,
i am using cent os 5.5, i am not able to access internet through this machine.machine is connected with router,when system gets dhcp from router internet is working but when i am entering ip manually internet is not working.
 
Old 12-20-2011, 12:39 AM   #2
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,284

Rep: Reputation: 371Reputation: 371Reputation: 371Reputation: 371
If you're router is assigning IP addresses through DHCP, why do you need to set the IP manually? Can you post the commands you use or describe the steps you take to set the IP address? Are you sure that you're setting an IP that is valid for your network and is not already in use by another computer or other device? When you set the IP, can you ping the IP address of your router? Do you remember to set your default gatrway to the IP address of the router?

Some more information would really help diagnose this.
 
Old 12-20-2011, 12:41 AM   #3
fukawi1
Member
 
Registered: Apr 2009
Location: Melbourne
Distribution: Fedora & CentOS
Posts: 854

Rep: Reputation: 190Reputation: 190
It sounds like you aren't configuring the static ip propperly.

Is the subnet right?
Route?
nameserver in /etc/resolve.conf?
 
Old 12-23-2011, 01:01 AM   #4
dushyantgohil
Member
 
Registered: Aug 2011
Location: India
Distribution: Cent OS & Ubuntu
Posts: 107

Original Poster
Rep: Reputation: 3
Quote:
Originally Posted by btmiller View Post
If you're router is assigning IP addresses through DHCP, why do you need to set the IP manually? Can you post the commands you use or describe the steps you take to set the IP address? Are you sure that you're setting an IP that is valid for your network and is not already in use by another computer or other device? When you set the IP, can you ping the IP address of your router? Do you remember to set your default gatrway to the IP address of the router?

Some more information would really help diagnose this.

its server and router is generating different ip every time so it creates problem for client and router doesn't having functionality of binding mac address that's why i need to assign ip statically.i can ping the router's ip as well my gateway and dns too.
 
Old 12-23-2011, 01:06 AM   #5
dushyantgohil
Member
 
Registered: Aug 2011
Location: India
Distribution: Cent OS & Ubuntu
Posts: 107

Original Poster
Rep: Reputation: 3
Quote:
Originally Posted by fukawi1 View Post
It sounds like you aren't configuring the static ip propperly.

Is the subnet right?
Route?
nameserver in /etc/resolve.conf?
every thing is correct, i can ping my self ip,gateway,dns and router ip perfectly. i can access local network from this server, client are accessing server perfectly but not able to access internet.
 
Old 12-23-2011, 01:17 AM   #6
dushyantgohil
Member
 
Registered: Aug 2011
Location: India
Distribution: Cent OS & Ubuntu
Posts: 107

Original Poster
Rep: Reputation: 3
Quote:
Originally Posted by fukawi1 View Post
It sounds like you aren't configuring the static ip propperly.

Is the subnet right?
Route?
nameserver in /etc/resolve.conf?
i have make entry in resolve.conf but after restarting the network service its been like the file before, so the entries which i have done in resolve.conf are not there.
 
Old 12-23-2011, 01:39 AM   #7
fukawi1
Member
 
Registered: Apr 2009
Location: Melbourne
Distribution: Fedora & CentOS
Posts: 854

Rep: Reputation: 190Reputation: 190
To isolate if it is a DNS related problem, can you ping an external address, by IP, rather than name?

As btmiller suggested, how are you configuring the static IP?

Can you post the output of
Code:
cat /etc/sysconfig/network-scripts/ifcfg-ethX
 
Old 12-23-2011, 04:55 AM   #8
dushyantgohil
Member
 
Registered: Aug 2011
Location: India
Distribution: Cent OS & Ubuntu
Posts: 107

Original Poster
Rep: Reputation: 3
Unhappy

i have also tried multiple ip on single network card tric for this in that i was able to access internet as well local network but after restarting the server the secondary ip is being stored automatically as a master ip of server.
 
Old 12-23-2011, 07:12 AM   #9
deep27ak
Senior Member
 
Registered: Aug 2011
Location: Bangalore, India
Distribution: rhel 5x,6.0,6.2, centOS 5x,6.0,6.2
Posts: 1,194
Blog Entries: 4

Rep: Reputation: 221Reputation: 221Reputation: 221
Quote:
Originally Posted by dushyantgohil View Post
i have make entry in resolve.conf but after restarting the network service its been like the file before, so the entries which i have done in resolve.conf are not there.
I am surprised to see resolve.conf all the time because as far as I know it should be

resolv.conf

as asked by fukawi1

post the output of

Code:
#cat /etc/sysconfig/network-scripts/ifcfg-ethx
#cat /etc/sysconfig/network
#cat /etc/resolv.conf
post these output as well and please use code tags

and ping status of any website
Code:
#ping google.com -t
Code:
#ping your gateway
#ping dns server
 
  


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
internet connection sharing between win7 and cent os. help me? rameshkarajada Linux - Networking 2 11-01-2011 04:05 PM
how to connect mobile internet in cent os5.2 sathishvegeta Linux - Mobile 2 08-12-2011 05:05 AM
Prob setting up internet in cent-os vedaprasad Linux - Newbie 4 03-03-2010 08:16 PM
Cannot access Internet from Vmware guest : Cent O/S when adsl router is bridge mode kumvinod Linux - Networking 0 03-02-2009 12:42 PM
LXer: Windows internet share drops below 90 per cent LXer Syndicated Linux News 0 12-02-2008 02:40 PM


All times are GMT -5. The time now is 10:09 PM.

Main Menu
Advertisement
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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration