I use my computer to communicate with a piece of hardware via ethernet. To communicate with this device I set my ip to 192 168 0 11, subnet mask to 255 255 255 0, and default gateway to 192 168 0 1 for IPv4. To use the internet, I choose "Obtain an IP address automatically" via control panel.
I'd like to have a script that allows my to quickly choose one or the other ethernet setting - hardware or internet.
I program mostly in python but maybe there is a batch file solution.
Thanks,
Barry.