LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 05-26-2005, 01:15 AM   #1
EcceVery
Member
 
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
jw2328
Member
 
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

to

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
ruuster
Member
 
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.
 
  


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
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 10.0.0.4? 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

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

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

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