Web lists-archives.com

Re: Still unable to restart networking on Debian 9 text mode only




Hi there


On 24/11/2018 18:25, Gary Dale wrote:

Reco has already explained why this approach is incorrect.

My own two cents on the problem is that Interfaces is meant to define how the network is brought up, not to change a running network. If you want to change a running network, use ifconfig or ip to change the address. e.g. ifconfig enp-s3 10.5.0.3 should work since all you are changing is the ip address.

I found this out the 'hard' way;
Edit '/etc/network/interfaces', '( ifdown eth0 ; sleep 1 ; ifup eth0 ) &' used to work, even over SSH. But with Stretch this no longer works. With Stretch, I even had to write a script to bring up the WAN (VLAN + PPPoE);
http://www.sput.nl/internet/xs4all/config.html

This doesn't bother me, but it does show that high level out of the box doesn't necessarily behave the way you might expect. In which case low level plus scripts works just fine.


Regards,
Rob