LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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 01-13-2011, 10:01 PM   #1
Mitchal
LQ Newbie
 
Registered: Aug 2008
Location: Sydney
Distribution: Fedora
Posts: 9

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


Hi,
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:
DEVICE="eth0"
BOOTPROTO="static"
BROADCAST="10.27.18.255"
IPADDR="10.27.18.117"
NETMASK="255.255.255.0"
HWADDR="00:1E:0B:AD:04:E7"
NM_CONTROLLED="yes"
ONBOOT="yes"
TYPE="Ethernet"
USERCTL="no"
IPV6INIT="no"
PEERDNS="yes"

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?
Cheers,
Mitch
 
Old 01-13-2011, 10:07 PM   #2
jmc1987
Member
 
Registered: Sep 2009
Location: Oklahoma
Distribution: Debian, CentOS, windows 7
Posts: 872

Rep: Reputation: 112Reputation: 112
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
Mitchal
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 google.com.au
ping: unknown host google.com.au
[root@ticket ~]# ping 66.102.11.104
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
trist007
Senior Member
 
Registered: May 2008
Distribution: Slackware
Posts: 1,027

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 192.168.1.1, assuming your gateway is 192.168.1.1.
 
Old 01-16-2011, 05:00 PM   #5
Mitchal
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!
 
  


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
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


All times are GMT -5. The time now is 01:13 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