How to restart network interfaces in Raspberry Pi 'service networking restart'

How to restart network interfaces in Raspberry Pi

If you use command service networking restart there will be warn message and sometimes eth0 interface will not come.

To fix it please add auto eth0 into /etc/network/interfaces


root@pi:~# service networking restart
 [warn] Running /etc/init.d/networking restart is deprecated because it may not re-enable some interfaces ... (warning).
[ ok ] Reconfiguring network interfaces...done.


Comments

Post a Comment

Popular posts from this blog

How to clean DB from old logs in Magento 1.x

Securing the Pi-hole with fail2ban to prevent DNS Amplification attacks

How can I chroot sftp-only SSH users into their homes?