Share your knowledge at the LQ Wiki.
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-06-2006, 02:08 PM   #1
Registered: Dec 2004
Distribution: Fedora Core 5
Posts: 64

Rep: Reputation: 15
Assigning Static IP Problem


I want to assign a static IP to my Slackware server I just setup so I read on a forum to change /etc/rc.d/rc.inet1.conf to the following:

# Config information for eth0:


# Default gateway IP address:

After restarting I can still ping it from my other computers but on it I can't access the internet. Did I miss a step somewhere??
Old 01-06-2006, 02:11 PM   #2
Senior Member
Registered: Aug 2003
Location: Houston, TX
Distribution: Arch
Posts: 1,380

Rep: Reputation: 47
aren't you missing a number here?
Old 01-06-2006, 02:17 PM   #3
LQ Veteran
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,803
Blog Entries: 1

Rep: Reputation: 417Reputation: 417Reputation: 417Reputation: 417Reputation: 417
Did you add your ISP DNS servers to your /etc/resolv.conf file? Or at very least, there should be an entry for your router there.
Old 01-06-2006, 02:28 PM   #4
Registered: Dec 2004
Distribution: Fedora Core 5
Posts: 64

Original Poster
Rep: Reputation: 15
no I didn't read anything about /etc/resolv.conf, the only thing that is in it right now is:

search localdomain

what do I have to put in it exactly?
Old 01-06-2006, 02:45 PM   #5
LQ Guru
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Wheezy (x86)
Posts: 6,094

Rep: Reputation: 272Reputation: 272Reputation: 272
I think you need to have something in resolv.conf like:


I've never tried putting my router ip there to see if that works. Otherwise, your ISP should be able to tell you what IP to put in there. You should list several.
Old 01-06-2006, 02:54 PM   #6
Registered: Dec 2004
Distribution: Fedora Core 5
Posts: 64

Original Poster
Rep: Reputation: 15
that worked putting my router IP in. Thanks!!


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
DHCP: Problem in assigning fixed address to clients libregeek Linux - Networking 6 11-17-2005 11:59 PM
Netgear wg311 v2 problem assigning IP maximyus Linux - Wireless Networking 3 01-20-2005 05:05 PM
FC2 Overriding static if in favor of dhcp system set for static pkraus109 Linux - Networking 8 09-21-2004 11:13 AM
Problem assigning class D IPADDR because of SIOCIFADDR: Invalid argument clu Slackware 3 02-01-2004 07:06 AM
assigning static ip vcheah Linux - Networking 5 12-25-2001 06:41 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:46 AM.

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