Well, yes, a switch can also operate in a different mode than the discribed one.
Please see the API doc of the Switch kernel. The Hax API docs are located here:
http://hax-simulator.github.io/framework/.
The doc for a Switch is here:
http://hax-simulator.github.io/framework/soft/network/sk/hax/software/network/Switch.htmlBasically, you either configure it as I wrote (this is also the preferred method).
The other method is that you don't configure it at all (so it does not even need a storage) and it "learns" the correct routing rules by itself.
This is good when you just need to test something on a local network or so, if you just need to interconnect a couple of workstations together.
It is not recommended if the switch is connected to other switches or even routers, since it stores all seen network addresses in memory.
If there is a whole subnet connected to one of the interfaces, the list of network addresses for that interface might get quite long.