Network settings are lost after server reboots

5,601

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:
5,601

Related videos on Youtube

slhck
Author by

slhck

Updated on September 18, 2022

Comments

  • slhck
    slhck over 1 year

    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
    
    • Guntis
      Guntis about 12 years
      paste your /etc/network/interfaces file content