Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

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
1  
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
add comment

Your Answer

 
discard

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

Browse other questions tagged or ask your own question.