Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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
    address 192.168.1.42
    netmask 255.255.255.0
    gateway 192.168.1.1
share|improve this question

migrated from serverfault.com Mar 4 '12 at 14:19

This question came from our site for professional 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
add comment

2 Answers

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
add comment

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
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.