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

Is there a way to monitor interface up/downs, especially to check if a route is setup or removed, with udev?

share|improve this question
up vote 2 down vote accepted

I am really not sure (and highly doubt it) if udev provides an interface for it but you can easily monitor it without udev. You just have to use a netlink socket with NETLINK_ROUTE to get notifications about changed addresses, changed routing tables etc.

share|improve this answer

Your Answer


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

Not the answer you're looking for? Browse other questions tagged or ask your own question.