LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
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 12-07-2003, 10:41 PM   #1
Quercus
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.

Thanks.
 
Old 12-07-2003, 10:46 PM   #2
Scruff
Member
 
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, 10:55 PM   #3
Demonbane
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, 10:59 PM   #4
Scruff
Member
 
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 !!!
 
  


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


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