Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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
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.
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.
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.
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)
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.