Glomation
 
Advanced Search
Welcome, Guest. Please login or register.

Login with username, password and session length
May 22, 2012, 03:42:55 AM
News: Welcome to GLomation peer support forum
Pages: [1]
Topic Tools  
Read August 31, 2010, 02:53:03 AM #0
mmenti

interface eth0 already configured after unclean shutdown

Hi

After a power loss, the network if doesn't seem to come up again:

"Setting up networking....
Configuring network interfaces...ifup: interface lo already configured
ifup: interface eth0 already configured"

After that, eth0 won't be available. After a second reboot, eth0 comes up again.

I was guessing that removing the file /etc/network/run/iftstate at bootup will fix that - but no luck. Any ideas?

Best regards,

Marco
 
Read August 31, 2010, 08:40:30 AM #1
admin

Re: interface eth0 already configured after unclean shutdown

ifdown eth0 and then ifup eth0 should always get network restarted.
 
Read September 01, 2010, 04:34:29 AM #2
mmenti

Re: interface eth0 already configured after unclean shutdown

ifdown eth0 and then ifup eth0 should always get network restarted.

This guess this works (calling udhcpc helps also) - but we're planning to have at least hundreds of boards running in unattended devices - so I need an "automatism" which cleans up at startup...

Best regards

Marco
 
Read September 01, 2010, 07:07:05 AM #3
admin

Re: interface eth0 already configured after unclean shutdown

The factory installed file system is Emdebian which uses a lot Debian start up scripts.  For embedded use some of the scripts may have to be changed.  The network can be startup by calling DHCP client directly without the ifup or ifdown and avoid any state variable that is used by the network script.

 
Read September 02, 2010, 10:24:56 AM #4
mmenti

Re: interface eth0 already configured after unclean shutdown

I did it the simple (and maybe a bit dirty) way: I changed /etc/init.d/networking and added "ifdown -a || true". Now, the interfaces come even up after an unclean shutdown.
 
Pages: [1]
Jump to:  

Theme Update by Runic Warrior Originally created by m3talc0re