I work in linux environment, Python 2.7, and am needing a Python module / library that allows me to change the network settings (IP, Subnet, Gateway and, if possible, primary and secondary DNS).
I checked some libraries ( netaddr
, ipaddress
, netifaces
, IPy
), but they only allowed me to read and do checks with the data of the network card (I was able to extract this information and show it on the screen) , but none allow me to make changes to this information.
My software should allow the user to leave the static IP on the machine, and to run os.system("")
to change via terminal, I would need to be logged in as root.
If anyone knows of any way to make this kind of change, I will be eternally grateful.