LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
LinkBack Search this Thread
Old 10-01-2003, 10:16 AM   #1
t3kn0lu5t
LQ Newbie
 
Registered: Aug 2003
Location: Indiana
Distribution: Debian recently from FreeBSD
Posts: 28

Rep: Reputation: 15
How do I turn off DHCP in Debian?


I know this is a total noob question, but I can't seem to find anything documentation about it.

When I installed debian (woody), I had my network setup for dhcp at boot, now that I want to turn dhcp off and give a specific ip [for] boot time I can't figure out how to do it.

Any help is greatly appreciated.
 
Old 10-01-2003, 11:01 AM   #2
coldy
Member
 
Registered: Nov 2002
Distribution: Debian GNU/Linux, Gentoo
Posts: 75

Rep: Reputation: 15
I think you have to comment any one line in /etc/dhclient.conf, than use ifconfig to set up your NIC
Code:
ifconfig ethX your.static.IP.address netmask XXX.XXX.XXX.XXX
than do
Code:
route add -net YYY.YYY.YYY.YYY
and don't forget to add nameservers in /etc/resolv.conf

than look in /etc/network/interfaces is the new records are written, if they aren't write them in there, this is important for the next reboot

here is my /etc/network/interfaces

Code:
# /etc/network/interfaces -- configuration file for ifup(8), ifdown(8)

# The loopback interface
auto lo
iface lo inet loopback

# The first network card - this entry was created during the Debian installation
# (network, broadcast and gateway are optional)
auto eth0
iface eth0 inet static
        address 10.0.0.69
        netmask 255.255.255.0
        network 10.0.0.0
        broadcast 10.0.0.255
        gateway 10.0.0.1
ehtX is your eth number
XXX.XXX.XXX.XXX is the netmask
YYY.YYY.YYY.YYY is your gateway

Last edited by coldy; 10-01-2003 at 11:06 AM.
 
Old 10-01-2003, 11:04 AM   #3
KB1IKN
LQ Newbie
 
Registered: Oct 2003
Distribution: Debian \ Gentoo
Posts: 11

Rep: Reputation: 0
Or just type ifconfig eth0 to see the status , rather going into /etc....
 
Old 10-01-2003, 08:20 PM   #4
t3kn0lu5t
LQ Newbie
 
Registered: Aug 2003
Location: Indiana
Distribution: Debian recently from FreeBSD
Posts: 28

Original Poster
Rep: Reputation: 15
Thanks for the help.. I ended up installing the etherconf package to handle it for me.
 
Old 10-01-2003, 10:15 PM   #5
KB1IKN
LQ Newbie
 
Registered: Oct 2003
Distribution: Debian \ Gentoo
Posts: 11

Rep: Reputation: 0
oh cmon, where's the fun in that?
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How can I make my debian turn NumLock on automatically? LittlesnowLinux Debian 8 11-26-2004 06:40 AM
How to turn text anti-aliasing globally off in Debian? sylph Linux - Newbie 2 05-24-2004 05:58 AM
halt -p can't turn off power in debian lsj Linux - Newbie 2 04-05-2004 05:16 AM
Debian - upgrade to unstable - turn off GDM? seanb Linux - Newbie 1 02-20-2004 01:26 AM
how do I turn off dhcp and specify IP? t3kn0lu5t Debian 2 10-01-2003 11:22 AM


All times are GMT -5. The time now is 01:16 AM.

Main Menu
 
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
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration