When replugging, first ensure that a management and external port exist.