Below is my sample script that I use to manage my network connections. I wrote it because I have a need to change my network settings depending on my location or ‘particular needs’ and doing it by hand can be frustrating and simply takes too long. Script is fairly simple yet effective.What that script does is ask user to input a number corresponding to associated with it action. In my case I want to change IP and MAC address of my network adapters.
Save it to file and make executable (“chmod +x filename”). Sript prints available choices and, after user input, execute it.
( This Software is Available for Direct Download )