Add random-id option to config file.
Fix merging of interfaces in add_ifconf.

This avoids multiple config file entries for the same interface
causing an assertion failure.  Reported by Baptiste Jonglez.