How to configure a switch?