/etc/network/interfaces resets after booting debian

2,090 views
Skip to first unread message

Chris

unread,
Aug 21, 2013, 11:57:37 PM8/21/13
to al...@googlegroups.com
Not sure why this is happening but for some reason /etc/network/interfaces resets back to some kind of default after booting from ALT-F to Debian. If I make changes to interfaces file and save and reboot just debian from within the debian environment it seems to be fine and keeps the changes. if I make changes from and reboot the box which boots to alt-f (then I manually boot debian) the changes I made to interfaces file are lost. If I boot to alt-f and edit the interfaces file and save it then boot debian the changes are lost again. So Im not sure why or what is causing this but it kinda seems as though it has something to do with switching between alt-f and debain. the below code sample is what interfaces gets replaced with after a reboot.

auto lo
  iface lo inet loopback

auto eth0
iface eth0 inet static
  address 192.168.1.223
  netmask 255.255.255.0
  broadcast 192.168.1.255
  mtu 1500
  gateway 192.168.1.1


has anyone else seen this?

~Chris

Chris Goerss

unread,
Aug 22, 2013, 12:15:54 AM8/22/13
to al...@googlegroups.com

Sorry forgot to mention this is happening on my dns323 with alt-f rc3 flashed. ;)

--
You received this message because you are subscribed to the Google Groups "Alt-F" group.
To unsubscribe from this group and stop receiving emails from it, send an email to alt-f+un...@googlegroups.com.
To post to this group, send email to al...@googlegroups.com.
Visit this group at http://groups.google.com/group/alt-f.
To view this discussion on the web visit https://groups.google.com/d/msgid/alt-f/49c18339-cf43-4d7d-bc0a-61207e0b4dbc%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

João Cardoso

unread,
Aug 22, 2013, 5:11:48 PM8/22/13
to al...@googlegroups.com, chris...@gmail.com


On Thursday, August 22, 2013 5:15:54 AM UTC+1, Chris wrote:

Sorry forgot to mention this is happening on my dns323 with alt-f rc3 flashed. ;)


/etc/network/interfaces is created by the Debian script /usr/sbin/debian everytime it is invoked:

        if grep -q '^iface eth0 inet static' /etc/network/interfaces; then
                cp /etc/network/interfaces $debdir/etc/network/
        else
                cat<<-EOF > $debdir/etc/network/interfaces
                        auto lo
                        iface lo inet loopback

                        auto eth0
                        iface eth0 inet dhcp
                EOF
        fi

        cp /etc/hostname /etc/resolv.conf /etc/hosts $debdir/etc/

Chris

unread,
Aug 22, 2013, 5:45:06 PM8/22/13
to al...@googlegroups.com
Thanks. I think I know what to do with that info. :)

~Chris

Chris

unread,
Aug 24, 2013, 7:37:53 PM8/24/13
to al...@googlegroups.com, chris...@gmail.com

OK. So I was mistaken. I thought I knew what to do with that information but I guess I was wrong! :( Luck me I made a backup of that script before I went crazy on it. So what is the best way to not have it overwrite the interfaces file at excute debian?

Thanks,

Chris

Chris Goerss

unread,
Aug 25, 2013, 2:18:11 AM8/25/13
to al...@googlegroups.com

Come to find oit it just took a while the first boot. Thought I hosed my debain/alt-f firmware for a min there. What I did was simply remove the mentioned lines from the debain script and it working just fine. Thanks.

Chris

Reply all
Reply to author
Forward
0 new messages