If both switches are in layer 2 mode, you can add it to the stack and the configs will be kept. From memory, if one of the switches in operating in layer 3 mode the stack will ask you which config you want to keep, and the other switch will loose its layer 3 config. The layer 2 config is retained.
... View more