I have my raspberry hooked up via ethernet to a printer.
So what happens is the raspberry takes about 4 mins to get itself ready as a sort of server, and by that time the printer gives up trying to connect. I've set the PI to be a DHCP server so the printer gets that early (within 30 seconds of getting power).
So after 4 mins is there a way I can disconnect the ethernet port and have it reconnect, so to the printer attempts to connect itself once it notices the ethernet cable was plugged in.
At the moment after 4 minutes, I manually remove the ethernet cable and plug it back in and alls ok. Is there a way I can do this via commands, to temporarily switch off the ethernet and reconnect it?
ifconfig eth0 downand then upifconfig eth0 up? But that is really bad! What if somebody is copying files- then they get booted off. There must be another, more elegant solution to your problem. – ppumkin Jan 24 at 11:14no route to host. I settled on using 2 min DHCP leases but thats not a very good solution – Akshat Jan 24 at 12:19