Results 1 to 5 of 5

Thread: /etc/network/interfaces keeps resetting on reboot

  1. #1

    Question /etc/network/interfaces keeps resetting on reboot

    I'm trying to make some permanent changes to /etc/network/interfaces but it resets on reboot. A general search brought me to

    http://webcache.googleusercontent.co...trip=1&vwsrc=0

    which suggests that a startup script is rewriting the file each time on booting. The solution on the page is for Debian and the startup script named there is /usr/sbin/debian which doesn't exist on my Kali install version 2016.1 32bit.

    Does anyone know where the equilvalent script for Kali should be? Or know of another way to solve the problem? Thanks!

  2. #2
    Join Date
    2016-Feb
    Location
    Bangalore
    Posts
    114
    what are you trying to change exactly ?
    ################################################

    |
    /vvvvvvvvvvvv \-------------------------------------------------------------------------,,
    |^^^^^^^^ /===================================--""

    ################################################
    ----------The quieter you become,The more you will able to hear-----------
    ################################################
    Venkatesh L Sharma https://twitter.com/1337in

  3. #3
    I'm trying to make permanent changes to /etc/network/interfaces

    but it seems to keep getting overwritten by some startup script. I'd like to find and edit that startup script and stop this. I'm trying to find the startup script on my own but as I'm using a live USB of Kali, it's taking forever.

  4. #4
    Join Date
    2014-Sep
    Posts
    1
    It's specific to Kali live USB even with persistence that system configurations are reset on reboot
    You might consider full install on USB or some workarounds like adding startup script which would modify /etc/network/interfaces file before networking.service starts

    Also see https://forums.kali.org/showthread.p...setting+reboot

  5. #5
    Join Date
    2017-Nov
    Posts
    1
    Having the same problem. Am using a specific gateway for Kali to connect to the network. At first start up I modify the 'interfaces' file and /etc/resolv.config file, run ifup eth0 to reload the network, and ifconfig shows the IP data as I changed it. Then I do the apt-get update/upgrade/dist-upgrade and reboot. That reset interfaces and resolv.config to previous states. More of a pain in the **** is that it wipes out all the updates. Tried exiting with 'save state' then started Kali and everything was good. Thought that would hold and exited with 'restart' and again got the files reset. Thought 'save state' would have created a permanent copy. I followed the link but it doesn't match up with my configuration. I load from hard drive not a USB.

    Appreciate any suggestions.

Similar Threads

  1. Network Manager Disabled - Cannot connect to Interfaces.
    By jefx3 in forum TroubleShooting Archive
    Replies: 10
    Last Post: 2017-09-10, 19:40
  2. apt-get autoremove removed network interfaces and gnome
    By Jerome in forum TroubleShooting Archive
    Replies: 1
    Last Post: 2014-05-19, 19:49
  3. Configuring Network Interfaces Hang at boot
    By duke18 in forum TroubleShooting Archive
    Replies: 0
    Last Post: 2013-12-08, 07:12
  4. Setting a static IP in /etc/network/interfaces
    By gCoreByte in forum General Archive
    Replies: 1
    Last Post: 2013-12-04, 14:08
  5. Bridging network interfaces
    By acib708 in forum General Archive
    Replies: 0
    Last Post: 2013-08-23, 03:11

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •