How to restart network interface

  • Sometimes I need to restart the LAN network interface to refresh the DHCP/DNS assignment.

    I prefer using host names in my network to access the boxes instead of using IP addresses. This sometimes the name resolution breaks e.g. after upgrade of an LE box. In this case a network interface restart helps.

    AFAIK I used the following command to remotely restart the LAN interface

    Code
    ifdown eth0 &&  ifup eth0

    however it is not working in LE 8.2.2 on ARM boxes-

    Code
    wetek:~ # ifdown eth0 &&  ifup eth0
    ifdown: can't open '/etc/network/interfaces': No such file or directory

    I suspect this was working before and probably the current behavior is a fault.

  • There is static DHCP reservation in the router with host name assignment. Regardless, the name resolution does not always work on Windows 10 machine.

    The simple solution is the network interface restart. It worked before and does not work now. This is my problem.