Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 01-13-2011, 10:01 PM   #1
LQ Newbie
Registered: Aug 2008
Location: Sydney
Distribution: Fedora
Posts: 9

Rep: Reputation: 3
Cannot reach the internet after configuring Static IP

I have installed fedora 14 minimum install and I have configured my machine for Static IP but now i cant reach any external sites or repository, in fact all i can do is ssh to the box.
below is the configuration in my /etc/sysconfig/network-scripts/ifcfg-eth0 file:

and my DNS is setup to point to my ISP's primary and secondary DNS servers.
I have brought the interface down then up after each change but still cannot ping anything.
Can anyone offer any advise or additional steps i could take to trouble shoot this?
Old 01-13-2011, 10:07 PM   #2
Registered: Sep 2009
Location: Oklahoma
Distribution: Debian, CentOS, windows 7/10
Posts: 879

Rep: Reputation: 113Reputation: 113
if you can SSH to the box then your internet seems like its working. From what this tells me either /etc/resov.conf isn't configure properly or you have a firewall blocking your connections. Try to access a website or something by IP to confirm. If you can access a website by IP then its your DNS servers in /etc/resolv.conf.

Good luck
Old 01-16-2011, 04:06 PM   #3
LQ Newbie
Registered: Aug 2008
Location: Sydney
Distribution: Fedora
Posts: 9

Original Poster
Rep: Reputation: 3
Hi JMC1987,
Thanks for your quick reply. I changed my configuration back to dhcp and pinged google as a test and had no issues. this is with no change made to the /etc/resolve.conf file. but if i change it back to static i get the following output:
[root@ticket ~]# ping
ping: unknown host
[root@ticket ~]# ping
connect: Network is unreachable
[root@ticket ~]#

How can i check to see if its blocked by my firewall?

Thanks again for your help

I might just add that i have confirmed the nameservers which appear in resolv.conf are the right ip addresses for our dns servers

Last edited by Mitchal; 01-16-2011 at 04:07 PM. Reason: additional info
Old 01-16-2011, 04:17 PM   #4
Senior Member
Registered: May 2008
Distribution: Slackware
Posts: 1,033

Rep: Reputation: 69
If you go with static make sure your DNS is setup correctly in /etc/resolv.conf and that you have a valid route to the gateway 'route -n'. If not, you can run 'ip r a default via, assuming your gateway is
Old 01-16-2011, 05:00 PM   #5
LQ Newbie
Registered: Aug 2008
Location: Sydney
Distribution: Fedora
Posts: 9

Original Poster
Rep: Reputation: 3
Thumbs up Solved!!!!!

Hi Trist007,
You hit the nail on the head. i had not specified my default gateway.
Thankyou heaps for your help guys. Now i don't have to go to my boss and tell him i can't complete such a noobular task as setting a machine up for static IP.
Saved my career!


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
kubuntu 9.10 can reach network but not internet babag Linux - Networking 3 04-16-2010 03:58 PM
ftp clients not able to reach internet rajesh.bahl Linux - Networking 3 05-24-2007 02:07 PM
cannot reach internet from private LAN toodr Linux - Networking 12 10-23-2005 08:44 PM
RH8.0 - Can not reach the internet donhoudek Linux - Newbie 1 11-21-2002 09:25 AM
Can someone help me reach the Internet!!!??? AMDPwred Linux - General 8 12-23-2001 03:14 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:47 PM.

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