Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have an ethernet device P2P connected to the NIC in my system. When the remote device is rebooted or changes its IP address, the local network interface goes down and loses its IP address. How can I make the local interface automatically reconnect in such cases and remember its IP?

I know how to set an interface up programmatically and set an IP, but I don't want to check in a loop, there should be a better way.

share|improve this question
Why aren't you using Zeroconf for this? – Ignacio Vazquez-Abrams Jan 11 '13 at 16:09
What system is this on? At least on Linux, this doesn't occur. Surprising it would on any Unix-variant. Unless you've got NetworkManager doing it. – derobert Jan 11 '13 at 16:17
This is Ubuntu. Could you please point, what is "clean" behaviour, without NetworkManager: to keep connection and settings in such a case or to loose them like in my situation? – VladimirLenin Jan 12 '13 at 13:37

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.