LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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, 02: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, 02:11 PM   #2
bosewicht
Senior Member
 
Registered: Aug 2003
Location: Houston, TX
Distribution: Arch
Posts: 1,381

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

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

Rep: Reputation: 281Reputation: 281Reputation: 281
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, 02: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



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:40 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
Open Source Consulting | Domain Registration