I have the following problem: I have a server with a rather dynamic network configuration and need to configure routes on it with the IF parameter:
route add ... mask ... ... if ?
Is there a reliable way, manual and or programmatical, to get that interface number if I know just about everything else about that adaptor?