LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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
  Search this Thread
Old 05-02-2013, 01:41 PM   #1
odin_ago
Member
 
Registered: Mar 2011
Posts: 61

Rep: Reputation: 1
Unwanted DHCP configuration in Debian squeeze


I am using debian squeeze, and I want to have a static ip configuration on the computer in question. Here is my /etc/network/interfaces :
Code:
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
auto eth0
iface eth0 inet static
address 192.168.2.10
netmask 255.255.255.0
network 192.168.2.0
broadcast 192.168.2.255
gateway 192.168.2.1
dns-nameservers 192.168.1.1
I have a DHCP server in this network, but I don't want to use it for this computer. However, sometimes I see that the ip address was altered to something offered by the DHCP server. How can I keep my ip address really static?
 
Old 05-02-2013, 05:45 PM   #2
Kustom42
Senior Member
 
Registered: Mar 2012
Distribution: Red Hat
Posts: 1,604

Rep: Reputation: 415Reputation: 415Reputation: 415Reputation: 415Reputation: 415
Add the following directive to your interfaces:

Set managed=false in /etc/NetworkManager/NetworkManager.conf.

Restart NetworkManager:

/etc/init.d/network-manager restart


More than likely network manager is trying to think for you.

That "auto eth0" tells NM to automatically configure the interface, even tho its the proper syntax for a static Ip to open wit the auto followed by the static iface line.
 
Old 05-02-2013, 07:26 PM   #3
odin_ago
Member
 
Registered: Mar 2011
Posts: 61

Original Poster
Rep: Reputation: 1
I have never installed NetworkManager on this computer (at least explicitly), and I don't have files /etc/NetworkManager/NetworkManager.conf and /etc/init.d/network-manager .
 
Old 05-02-2013, 07:43 PM   #4
Kustom42
Senior Member
 
Registered: Mar 2012
Distribution: Red Hat
Posts: 1,604

Rep: Reputation: 415Reputation: 415Reputation: 415Reputation: 415Reputation: 415
Well that would be too easy...

There would have to be some other piece of software interfering or some other system config that is playing a part here. From the info you given us your IP should only be assigned to that static IP.

Have you noticed if the tx/rx packets reset when the IP changes for the interface?
 
Old 05-02-2013, 07:51 PM   #5
odin_ago
Member
 
Registered: Mar 2011
Posts: 61

Original Poster
Rep: Reputation: 1
No, RX and TX are not dropped both when I figure out that my ip address was changed by dhcp and when I return it back using
Code:
/etc/init.d/networking stop
/etc/init.d/networking start
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Debian Squeeze Grub Configuration bruceam Debian 2 09-12-2011 03:04 PM
Various segmentation faults Debian Squeeze Virtualbox running on Debian Squeeze host fordwrench Debian 1 07-21-2011 03:55 AM
Windows XP network can't acquire DHCP address from debian squeeze? shams Linux - Networking 11 04-22-2011 04:38 AM
debian squeeze usb wlan configuration harald_sdt Debian 9 02-17-2011 09:29 AM
Debian/Squeeze fails to get DHCP address on startup garydale Linux - Networking 5 03-04-2010 12:10 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 12:03 AM.

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