Ask Your Question

Remove all network configuration and replace with original install

asked 2015-04-09 15:28:54 -0500

langdon gravatar image

I assume this sounds like a weird question but, I have been mucking about with a lot of things that mess with the network stack on my machine (examples: docker, libvirt, bridging, openstack, ovirt, etc.). However, some large percentage of the time, I break my network stack in somewhat unrecoverable ways. I often resort to reinstalling.

So, the question is simply, this: Is there any way to remove all the network configuration and let the system re-detect it like it did when I installed? Obviously, this needs to be executable without network access but could have some steps to do in preparation when network access is still available.

edit retag flag offensive close merge delete


The closest thing I can think of would be to remove all the NetworkManager profiles (nmcli con delete ..., or whatever tool you prefer) - but as you'd probably have to add profiles back, it isn't exactly a reset button...

randomuser gravatar imagerandomuser ( 2015-04-10 13:55:01 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted

answered 2015-04-10 04:59:06 -0500

snowolfe gravatar image

Almost all network settings are stored under /etc/sysconfig/network-scripts/. You could back this up from a fresh install and then reinstate it.

edit flag offensive delete link more

Question Tools



Asked: 2015-04-09 15:28:54 -0500

Seen: 1,071 times

Last updated: Apr 10 '15