LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Debian (https://www.linuxquestions.org/questions/debian-26/)
-   -   How do I disable dhcp request at boot? (https://www.linuxquestions.org/questions/debian-26/how-do-i-disable-dhcp-request-at-boot-327186/)

EcceVery 05-26-2005 01:15 AM

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.

jw2328 05-26-2005 02:07 AM

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

ruuster 01-01-2006 02:07 AM

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.


All times are GMT -5. The time now is 06:29 PM.