What is the command line equivalent of unchecking "Enable Networking" (disabling networking) and then re-enabling?
In my environment, there are multiple networks which require me to physically move my network cable. Sometimes my connection does not refresh properly, so I disable/re-enable networking to refresh my connection. Being able to do this from the command line would be much more efficient for me.
I'm using 12.04 LTS.
Best Answer
I'd use the
nmcli
commands for that purpose:man page: