Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have installed debian on my old computer and assigned a static IP address to it through /etc/network/interfaces.

However when I boot my server the settings in the interfaces file are lost.

Only when I restart networking interfaces using /etc/init.d/networking restart, the settings are loaded. They don't load automatically on server boot up. What's the problem?

My interfaces file is like this

auto lo
iface lo inet loopback

auto eth0
iface eth0 inet static
share|improve this question

migrated from Mar 4 '12 at 14:19

This question came from our site for system and network administrators.

paste your /etc/network/interfaces file content – Guntis Mar 4 '12 at 14:24
sanksr, you need to register on the site to be able to regain control of your question. Also, we don't use BB Code here for formatting. – slhck Mar 4 '12 at 15:03

You are probably using something other than networking to manage your networking, such as NetworkManager, which uses different configuration files. You have two good choices. You can fully switch over to NetworkManager and configure things there. Or you can switch over to networking by disabling the NetworkManager service and making sure networking is set to run on startup.

share|improve this answer

the interfaces file seems correct, if networking restart solves the problem it might not autostart on the appropriate runlevels check if links ./rc6.d/S35networking and ./rc0.d/S35networking do exist. Also check in /var/log/messages and dmesg for clues what can prevent to bring the interface up.

share|improve this answer

You must log in to answer this question.