-   Slackware (
-   -   How to set a static IP address? (

dx0r515t 03-06-2005 10:31 PM

How to set a static IP address?
How do I set a static IP address in slackware 10.0?

cavalier 03-06-2005 10:36 PM

Edit your /etc/rc.d/rc.inet1.conf

# Config information for eth0:
# Default gateway IP address:

This snippet is from my file, where I've set the IP address, and the netmask, and any references to DHCP are left blank

dx0r515t 03-06-2005 10:41 PM

thanks for that, very helpful.:)

gbonvehi 03-06-2005 11:50 PM

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

shilo 03-07-2005 02:03 AM

I always just use "netconfig". Of course, all that does is make the changes that were already mentioned.

dx0r515t 03-07-2005 02:11 PM

thanks everyone, problem SOLVED.:D

angoraspruce 03-09-2005 10:12 PM

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

Damon Spector 04-15-2005 07:29 PM

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?


shilo 04-17-2005 03:00 AM


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

gbonvehi 04-17-2005 04:18 AM

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

capnpayne 04-17-2005 04:37 AM

(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...? :confused:

daemon: are you talking about kde?

shilo 04-17-2005 01:36 PM


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.


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.

capnpayne 04-17-2005 02:33 PM

This is a total thread derail :D
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.

All times are GMT -5. The time now is 09:00 PM.