Proper way to initialize network on gadgeteer spider

I’m currently migrating my RFID project to and I’m not sure about the proper way of getting the network initialized the gadgeteer way on my spider(s). Can someone point me in the right direction, some sample code?

Thanks Andre, I’ll give it a try.

It seems still a bit buggy with dhcp enabled. Will do a better job?