Fixed checks for ID of virtual interface.

- ID can only be given, if redundancy protocol is given.
- Compare IDs only for identical redundancy protocol.
- Check for identical IDs didn't work reliably,
  if the same ID occured in some other network.