Changing WiFi settings separately
You can create different environments for your network (System preferences --> Network) and apply different settings to these environments.



If you now switch your WiFi you can also easily change the environment (unfortunately it is not possible to do this automatically - at least not with standard tools), by clicking onto the Apple logo in the menu bar.



(Sorry my OS X installation is in german language)