LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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 01-24-2007, 03:33 PM   #1
ShadowHywind
Member
 
Registered: Oct 2005
Distribution: Kubuntu
Posts: 38

Rep: Reputation: 15
Static IP is wrong on Boot


Hi all, i have a strange issue that i have no clue on how to fix. I have static ips set in my /etc/network/interfaces. But when i boot up. The ip of the interface is completely wrong. it comes up with a 169.254.. number. When i check the interface file the static ip is correct. Any ideas.

here is my /etc/network/interfaces
Code:
auto lo
iface lo inet loopback
address 127.0.0.1
netmask 255.0.0.0


iface eth0 inet static
address 192.168.2.18
netmask 255.255.255.0
gateway 192.168.2.1
#address 192.168.2.19
#netmask 255.255.255.0
#gateway 192.168.2.1

auto wlan0
iface wlan0 inet static
address 192.168.2.19
netmask 255.255.255.0
gateway 192.168.2.1
 
Old 01-24-2007, 03:43 PM   #2
pljvaldez
LQ Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Wheezy (x86)
Posts: 6,094

Rep: Reputation: 281Reputation: 281Reputation: 281
I think I read somewhere this is a bug in zeroconf. I have the same problem and haven't taken the time to fix it. I just sudo ifdown eth0 && sudo ifup eth0.
 
Old 01-24-2007, 03:51 PM   #3
ShadowHywind
Member
 
Registered: Oct 2005
Distribution: Kubuntu
Posts: 38

Original Poster
Rep: Reputation: 15
i will have to try that ifdown next time i restart. I have been manually changing it in networkmanager. But if the ifdown works i might as well just add it to my startup script. Thanks for the idea.
 
Old 01-24-2007, 03:54 PM   #4
pljvaldez
LQ Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Wheezy (x86)
Posts: 6,094

Rep: Reputation: 281Reputation: 281Reputation: 281
Well, I should backtrack a little. I'm not using static IP's in the traditional sense. I'm using "static" DHCP. I've set my router (DHCP server) to assign the same IP to my machines based on the MAC address of each card. So that trick works for me because it brings down the interface and then when I start it up again, it asks the router for the new IP and finds out it's wrong. So it gets reset.
 
Old 01-24-2007, 03:58 PM   #5
pljvaldez
LQ Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Wheezy (x86)
Posts: 6,094

Rep: Reputation: 281Reputation: 281Reputation: 281
By the way, here is the bug for Debian (which Ubuntu is based on). I haven't yet found a way to disable zeroconf, but it appears it's possible.
 
Old 01-24-2007, 04:07 PM   #6
pljvaldez
LQ Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Wheezy (x86)
Posts: 6,094

Rep: Reputation: 281Reputation: 281Reputation: 281
I found this workaround
Quote:
One last thing: IF you want to set up a static address for eth0, and you have zeroconf installed, make sure to add the following to /etc/default/zeroconf:

IFBLACKLIST="eth0"

Either that, or if you want to disable zeroconf completely (might not be a bad idea)

DISABLE=yes
I haven't tried it yet, but I will tonight!
 
Old 01-24-2007, 04:41 PM   #7
ShadowHywind
Member
 
Registered: Oct 2005
Distribution: Kubuntu
Posts: 38

Original Poster
Rep: Reputation: 15
what do you know, i just removed zeroconf, rebooted *just to check*. And Everything works the way that it should. Thanks
 
  


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
PXE/Boot Server with Static IP clients asmar Linux - Networking 0 08-17-2006 02:25 PM
slow boot with static ip bob66 Linux - Networking 7 01-05-2005 02:28 PM
Mic loud during boot, creates static bence8810 Linux - Laptop and Netbook 0 11-23-2004 05:30 PM
FC2 Overriding static if in favor of dhcp system set for static pkraus109 Linux - Networking 8 09-21-2004 11:13 AM
Constant audio static after boot Lostboy7500 Linux - Hardware 4 02-01-2003 05:12 PM

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

All times are GMT -5. The time now is 04:18 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