LinuxQuestions.org
Register a domain and help support LQ
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-06-2006, 03:08 PM   #1
canuck_barlow
Member
 
Registered: Dec 2004
Distribution: Fedora Core 5
Posts: 64

Rep: Reputation: 15
Assigning Static IP Problem


Hey,

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:
IPADDR[0]="192.168.1.11"
NETMASK[0]="255.255.255.0"
USE_DHCP[0]=""
DHCP_HOSTNAME[0]=""

.........

# Default gateway IP address:
GATEWAY="192.168.1.1"
-----------------------------------------------------

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, 03:11 PM   #2
bosewicht
Senior Member
 
Registered: Aug 2003
Location: Honolulu, HI
Distribution: Arch
Posts: 1,380

Rep: Reputation: 47
aren't you missing a number here?
IPADDR[0]="192.168.1.11X"
 
Old 01-06-2006, 03:17 PM   #3
Hangdog42
LQ Veteran
 
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,803
Blog Entries: 1

Rep: Reputation: 416Reputation: 416Reputation: 416Reputation: 416Reputation: 416
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, 03:28 PM   #4
canuck_barlow
Member
 
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, 03:45 PM   #5
pljvaldez
LQ Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Wheezy (x86)
Posts: 6,094

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

nameserver xxx.xxx.xxx.xxx
nameserver xxx.xxx.xxx.xxx

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, 03:54 PM   #6
canuck_barlow
Member
 
Registered: Dec 2004
Distribution: Fedora Core 5
Posts: 64

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


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


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

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