Latest LQ Deal: Linux Power User Bundle
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 12-07-2003, 09:41 PM   #1
LQ Newbie
Registered: Dec 2003
Distribution: Slackware 9.1
Posts: 6

Rep: Reputation: 0
DHCPto Static IP

When I installed Slackware, the setup program asked me about my network and I set it up for DHCP. Everything has been working just fine.

However, I want to change from DHCP to static leases because I want to know exactly what IP address are associated with which computers, and I don't want them changing from time to time. I know how to do this on my DHCP server, but how do I change my linux box to a static IP?

How do I do this? Do I use ifconfig? I've seen some references to a ifcfg-eth0 configuration file, but I can't find one on my machine. Can someone please point me in the right direction.

Old 12-07-2003, 09:46 PM   #2
Registered: Oct 2002
Location: Stoughton, MA
Distribution: Gentoo x86_64 & PPC
Posts: 949

Rep: Reputation: 30
You can't just change it to static, much as we'd all prob like to
All of that is up to your ISP, and since a static IP enables us all to easily run server applications from home, DHCP is usually the norm. I called my ISP, and they want an extra $50 a month for 'professional' service with a static IP address. First of all, you would need to obtain that permanent IP address from your ISP. Otherwise you wouldn't be able to set it up in the first place.
Old 12-07-2003, 09:55 PM   #3
LQ Guru
Registered: Aug 2003
Location: Sydney, Australia
Distribution: Gentoo
Posts: 1,796

Rep: Reputation: 47
Well if you've already configured your dhcpd to issue fixed addresses to clients, that should be it. Clients are still configured to use dhcp, but the difference is that they will only get the addresses you specify.
Otherwise take a look at /etc/rc.d/rc.inet1 for Slackware boxes.
Old 12-07-2003, 09:59 PM   #4
Registered: Oct 2002
Location: Stoughton, MA
Distribution: Gentoo x86_64 & PPC
Posts: 949

Rep: Reputation: 30
Shit! Had a bit too much to drink tonight I guess I didn't even notice you were talking about a local network. Demonbane is correct then. Sorry !!!


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
Howto Assign Multiple Static Public IP Addresses under SBC's PPPoE Static Ip system o trekgraham Linux - Networking 8 04-17-2007 10:51 AM
Use static IP aeruzcar Linux - Networking 3 08-04-2005 08:51 PM
Is there any static ARP for static IP network? linux_lover2005 Linux - Networking 2 05-18-2005 12:01 PM
Can't use static IP linuxistan Linux - Networking 5 10-17-2004 09:26 PM
FC2 Overriding static if in favor of dhcp system set for static pkraus109 Linux - Networking 8 09-21-2004 11:13 AM > Forums > Linux Forums > Linux - Newbie

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