This tutorial is written for a 2 port switch but is the same for all the others.
There are two situation where it is possible to specify the switch configuration.