Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Debian This forum is for the discussion of Debian Linux.


  Search this Thread
Old 05-26-2005, 01:15 AM   #1
Registered: Apr 2004
Location: Sweden
Distribution: Gentoo, Debian, CentOS
Posts: 61

Rep: Reputation: 15
How do I disable dhcp request at boot?

I have several computers using DHCP to get IP addresses. I want to change that and give them static IPs. How do I disable the dhcp request made at system startup?

I use Debian sarge, have no graphical interfaces installed.
Old 05-26-2005, 02:07 AM   #2
Registered: May 2005
Distribution: Debian
Posts: 51

Rep: Reputation: 15
You need to alter /etc/network/interfaces. The entry for the card needs to be changed from something like

iface eth0 auto dhcp


iface eth0 auto static

ie change dhcp to static

you also need to add lines for address, netmask etc. man interfaces should help you with the different options and syntax of the file

Good luck
Old 01-01-2006, 02:07 AM   #3
Registered: Dec 2005
Distribution: Slackware 10.2 - bare.i, Slackware 10.1 - scsi.s, Slackware 9.1 - bare.i
Posts: 47

Rep: Reputation: 15
On my system (Slackware), you would edit /etc/rc.d/inet1.conf. The line enabling dhcp on eth0 would read USE_DHCP[0]="YES". Just edit "YES" to "".

We all use Linux on Intel or Intel clone machines, and yet, we speak a different language. LOL.


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
why DHCP client not sending own host name in DHCP request packet? sonika_singhi Linux - Networking 7 05-28-2005 05:18 AM
Redhat DHCP client always request Chowroc Linux - Networking 12 12-30-2004 07:28 AM
DHCP Request Ynog Linux - Networking 2 06-24-2004 03:04 PM
HowTo disable LCP echo request fransemail Linux - Software 2 05-04-2004 03:08 PM
dhcp request ip abs Slackware 3 02-16-2004 04:39 AM > Forums > Linux Forums > Linux - Distributions > Debian

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

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