Ask Your Question
1

Remove all network configuration and replace with original install

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

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

Comments

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 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted
0

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

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

3 followers

Stats

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

Seen: 1,068 times

Last updated: Apr 10 '15