flush interfaces and restart networking