LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 03-06-2005, 09:31 PM   #1
dx0r515t
Member
 
Registered: Jan 2005
Location: USA
Distribution: Slackware 10.2 & 11.0
Posts: 155

Rep: Reputation: 30
How to set a static IP address?


How do I set a static IP address in slackware 10.0?
 
Old 03-06-2005, 09:36 PM   #2
cavalier
Member
 
Registered: Feb 2005
Location: Denver, CO
Distribution: Slack 12, tweaked just so (though I'm also a fan of Ubuntu)
Posts: 198
Blog Entries: 1

Rep: Reputation: 30
Edit your /etc/rc.d/rc.inet1.conf
Code:
# Config information for eth0:
IPADDR[0]="192.168.0.206"
NETMASK[0]="255.255.255.0"
USE_DHCP[0]=""
DHCP_HOSTNAME[0]=""
# Default gateway IP address:
GATEWAY="192.168.0.1"
This snippet is from my file, where I've set the IP address, and the netmask, and any references to DHCP are left blank
 
Old 03-06-2005, 09:41 PM   #3
dx0r515t
Member
 
Registered: Jan 2005
Location: USA
Distribution: Slackware 10.2 & 11.0
Posts: 155

Original Poster
Rep: Reputation: 30
thanks for that, very helpful.
 
Old 03-06-2005, 10:50 PM   #4
gbonvehi
Senior Member
 
Registered: Jun 2004
Location: Argentina (SR, LP)
Distribution: Slackware
Posts: 3,145

Rep: Reputation: 53
And if you need to set it using a command you can use ifconfig (man ifconfig for further help). But the way cavalier said is the "correct" one in Slackware

Last edited by gbonvehi; 03-06-2005 at 10:51 PM.
 
Old 03-07-2005, 01:03 AM   #5
shilo
Senior Member
 
Registered: Nov 2002
Location: Stockton, CA
Distribution: Slackware 11 - kernel 2.6.19.1 - Dropline Gnome 2.16.2
Posts: 1,132

Rep: Reputation: 50
I always just use "netconfig". Of course, all that does is make the changes that were already mentioned.
 
Old 03-07-2005, 01:11 PM   #6
dx0r515t
Member
 
Registered: Jan 2005
Location: USA
Distribution: Slackware 10.2 & 11.0
Posts: 155

Original Poster
Rep: Reputation: 30
thanks everyone, problem SOLVED.
 
Old 03-09-2005, 09:12 PM   #7
angoraspruce
LQ Newbie
 
Registered: Mar 2003
Posts: 1

Rep: Reputation: 0
It might be a good idea to enter your changes into '/etc/hosts', and if you played around with the name of your machine, '/etc/HOSTNAME'. However, to do everything that should be done, use '/sbin/netconfig'.
 
Old 04-15-2005, 06:29 PM   #8
Damon Spector
Member
 
Registered: Nov 2004
Distribution: Fedora Core 4
Posts: 61

Rep: Reputation: 15
Is there any way to do this in the GUI like can be done in Fedora Core? If so where can I find it in the GUI?

Thanks
 
Old 04-17-2005, 02:00 AM   #9
shilo
Senior Member
 
Registered: Nov 2002
Location: Stockton, CA
Distribution: Slackware 11 - kernel 2.6.19.1 - Dropline Gnome 2.16.2
Posts: 1,132

Rep: Reputation: 50
Code:
Is there any way to do this in the GUI
What GUI? Slackware provides a bunch of GUIs. Note that netconfig is an ncurses tool which I believe also falls in the category of GUI. If there are other GUI tools, I would still use netconfig. It's the right tool for the job, though editing the files with vi is nice, too (but not a GUI).
 
Old 04-17-2005, 03:18 AM   #10
gbonvehi
Senior Member
 
Registered: Jun 2004
Location: Argentina (SR, LP)
Distribution: Slackware
Posts: 3,145

Rep: Reputation: 53
Yes Damon Spector there's a GUI, I worked long time ago with a Fedora server and I remember there was one, I think it was called just Network Settings or Ethernet Settings (I could add/remove/configure the network cards I had in that little app too).
Just on topic, this is a Slackware forum, and often in Slackware things are done by editting text files and that's why you're going to see these suggestions about editing files that I think you won't have in Fedora (ifconfig applies to all distributions, same for /etc/resolv.conf and route).

Last edited by gbonvehi; 04-17-2005 at 03:22 AM.
 
Old 04-17-2005, 03:37 AM   #11
capnpayne
Member
 
Registered: Nov 2004
Location: Florida
Distribution: Slack 10.1
Posts: 56

Rep: Reputation: 15
(never mind)

shilo: ncurses is more graphical than vi? i think that, by definition, neither are at all graphical. i fail completely to see how you're drawing that distinction. perhaps you mean that editing a file in vi lacks a scripted user interface...?

daemon: are you talking about kde?

Last edited by capnpayne; 04-17-2005 at 03:47 AM.
 
Old 04-17-2005, 12:36 PM   #12
shilo
Senior Member
 
Registered: Nov 2002
Location: Stockton, CA
Distribution: Slackware 11 - kernel 2.6.19.1 - Dropline Gnome 2.16.2
Posts: 1,132

Rep: Reputation: 50
Quote:
shilo: ncurses is more graphical than vi?
Sure, fire up netconfig in a terminal from an X session. The first thing you see is a screen to enter your hostname. At the bottom, there are two "buttons", OK and Cancel.

Now for the gui trick, click Cancel with your mouse. Seems like a GUI to me. vi is not a GUI because you need to know commands to control vi itself. With ncurses, you do not need to know how to control the script. It functions identically to a GUI. You've got text input boxes, selection buttons, etc. You are able to click buttons with your mouse, use the arrow keys to move around, etc.

Looks like a GUI, acts like a GUI, I say it is a GUI.

What do you think? I'm really intersested in knowing, because I just started wondering, when is something a GUI? define:graphical over at google is interesting.

***EDIT***

Almost forgot, there is an easy to use GUI tool in Dropline Gnome. Don't know if that helps you at all.

If you happen to be using Dropline Gnome, it's "Gnome Menu Button -> System Tools -> Network Tools". It's really handy. You can configure your network interfaces (set static or dhcp, set ip address, gateway, subnet), view packet transfer statistics, ping addresses, , port scan servers, run finger, do whois lookups, view routing table info, view active network services, etc. It's really handy. It's laid out really nicely, too.

Last edited by shilo; 04-17-2005 at 12:47 PM.
 
Old 04-17-2005, 01:33 PM   #13
capnpayne
Member
 
Registered: Nov 2004
Location: Florida
Distribution: Slack 10.1
Posts: 56

Rep: Reputation: 15
This is a total thread derail
As I understand it, a graphical user interface is something that actually has graphics. There were applications such as 'edit' in DOS, which had GUI-esque features, but nobody said that they had GUIs. The mouse-clickery in netconfig is an adaptation to use in a window manager -- a GUI.
The term GUI has nothing to do with the use of a mouse or the requirement of command knowledge; it has to do with graphics, hence the acronym.

Last edited by capnpayne; 04-17-2005 at 02:28 PM.
 
  


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
Static IP address mikz Slackware 4 11-28-2005 04:30 PM
how to set a static ip address or do port forwarding? cd1680 Linux - Networking 13 03-27-2005 06:58 PM
Eth0 set up for Static, obtaining DHCP address?! IndustrialGeek Linux - Networking 2 01-03-2005 12:39 AM
FC2 Overriding static if in favor of dhcp system set for static pkraus109 Linux - Networking 8 09-21-2004 11:13 AM
Static IP Address bytebrowser Linux - Networking 14 06-16-2003 06:36 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

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