selfDHCP is a utility to automatically detect a correct network configuration, by listening to network traffic with appropriate heuristics.