Networking Forums

Networking Forums > Computer Networking > Linux Networking > Disabling DHCP

Reply
Thread Tools Display Modes

Disabling DHCP

 
 
tns1
Guest
Posts: n/a

 
      10-11-2003, 04:24 AM
I have a debian based distro that is setup to use DHCP. I am having
trouble assigning a static IP and shutting DHCP off. I can use ifconfig
to assign an IP once I log in, but I need to have permanent fix. So far,
I have tried editing /etc/network/interfaces with the following
uncommented lines:

iface lo inet loopback
auto lo

iface eth0 inet static
address 192.168.1.120

The static assignment has no effect. It seem that DHCP takes precedence
over this file configuration. I can't find where DHCP is enabled in the
first place to turn it off. whats up?
thanks

 
Reply With Quote
 
 
 
 
tns1
Guest
Posts: n/a

 
      10-11-2003, 07:44 AM


tns1 wrote:
> I have a debian based distro that is setup to use DHCP. I am having
> trouble assigning a static IP and shutting DHCP off. I can use ifconfig
> to assign an IP once I log in, but I need to have permanent fix. So far,
> I have tried editing /etc/network/interfaces with the following
> uncommented lines:
>
> iface lo inet loopback
> auto lo
>
> iface eth0 inet static
> address 192.168.1.120
>
> The static assignment has no effect. It seem that DHCP takes precedence
> over this file configuration. I can't find where DHCP is enabled in the
> first place to turn it off. whats up?
> thanks
>

Make some small progress, I got it to ignore dhcp by adding a kernel
parameter in grub.conf:
ip=192.168.1.120:::255.255.255.0
Not exactly the way I want to do it, but does anyone know if the gateway
and network address fit in there somewhere too? I got my info from a
short tech note. It is not fully documented in the grub manual or in the
boot prompt HOW-TO, so where IS it documented?
thanks

 
Reply With Quote
 
Bill Marcum
Guest
Posts: n/a

 
      10-11-2003, 09:58 PM
On Fri, 10 Oct 2003 21:24:42 -0700, tns1
<(E-Mail Removed)> wrote:
> I have a debian based distro that is setup to use DHCP. I am having
> trouble assigning a static IP and shutting DHCP off. I can use ifconfig
> to assign an IP once I log in, but I need to have permanent fix. So far,


Use dselect or aptitude to find which dhcp packages are installed, and
remove them.


--
Cheops' Law:
Nothing ever gets built on schedule or within budget.
 
Reply With Quote
 
Bill Marcum
Guest
Posts: n/a

 
      10-11-2003, 10:03 PM
On Sat, 11 Oct 2003 00:44:24 -0700, tns1
<(E-Mail Removed)> wrote:
>
>
> tns1 wrote:
>> I have a debian based distro that is setup to use DHCP. I am having
>> trouble assigning a static IP and shutting DHCP off. I can use ifconfig
>> to assign an IP once I log in, but I need to have permanent fix. So far,
>> I have tried editing /etc/network/interfaces with the following
>> uncommented lines:
>>
>> iface lo inet loopback
>> auto lo
>>
>> iface eth0 inet static
>> address 192.168.1.120
>>
>> The static assignment has no effect. It seem that DHCP takes precedence
>> over this file configuration. I can't find where DHCP is enabled in the
>> first place to turn it off. whats up?
>> thanks
>>

> Make some small progress, I got it to ignore dhcp by adding a kernel
> parameter in grub.conf:
> ip=192.168.1.120:::255.255.255.0
> Not exactly the way I want to do it, but does anyone know if the gateway
> and network address fit in there somewhere too? I got my info from a
> short tech note. It is not fully documented in the grub manual or in the
> boot prompt HOW-TO, so where IS it documented?
> thanks
>

Who owns the DHCP server? Why aren't you happy with the address it
gives you?

--
Cheops' Law:
Nothing ever gets built on schedule or within budget.
 
Reply With Quote
 
tns1
Guest
Posts: n/a

 
      10-13-2003, 05:06 AM
The issue was I needed to connect my linux widget to an unknown network
that was said to have 'problems with DHCP'. I was left with some static
assignments by an absentee admin. Since I did not know what 'problems'
meant, the only sure method seemed to be shutting off DHCP and enabling
the static assignments.

I found that providing network parms in grub.conf was one way to disable
dhcp. What I ended up doing was editing /etc/network/interfaces

Bill Marcum wrote:
> On Fri, 10 Oct 2003 21:24:42 -0700, tns1
> <(E-Mail Removed)> wrote:
>
>>I have a debian based distro that is setup to use DHCP. I am having
>>trouble assigning a static IP and shutting DHCP off. I can use ifconfig
>>to assign an IP once I log in, but I need to have permanent fix. So far,

>
>
> Use dselect or aptitude to find which dhcp packages are installed, and
> remove them.
>
>


 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
disabling wi-fi Linea Recta Wireless Networks 11 04-16-2008 02:33 PM
Disabling old scope.. creating new one (2003 DHCP).. clients affected? markm75 Windows Networking 1 07-12-2007 10:44 AM
Disabling DHCP on catalyst 2960 Tom Network Routers 1 08-21-2006 11:53 AM
Setting up RAS and disabling ICS Simon Lampen Windows Networking 2 02-04-2006 05:51 PM
Disabling XP firewall Geoff Wireless Networks 3 04-05-2005 02:16 PM



1 2 3 4 5 6 7 8 9 10 11