Page 1 of 1

How to reset network setting to default

Posted: 2018/05/17 08:57:48
by sampath
]Hi Team;

I'm new to Linux and I'm trying to understand how to create bridge network on Centos, Recently I had created OVS bridge and it did't get success, Now I am unable to bring network settings back to default. Still I can see on network interface view (ip a),first active interface as 'OVS Bridge' I suspect this is the current issue, Plz let me know how to reset all network configuration back to default. Screen shoot is attached here with current network interface view. Thanks in advanced.

Re: How to reset network setting to default

Posted: 2018/05/17 20:42:31
by hunter86_bg
Just delete all files for the network configuration (not counting routing here):

Code: Select all

find /etc/sysconfig/network-scripts/ -type f -iname "ifcfg-*" -print | grep -v "ifcfg-lo" | xargs -d '\n' rm 
Then you need to

Code: Select all

 systemctl restart NetworkManager.service 
If you have trouble configuring Network Manager - you can run "nmtui" from terminal.

Re: How to reset network setting to default

Posted: 2018/05/17 22:38:19
by TrevorH
Just delete all files for the network configuration (not counting routing here):
Back them up first. Don't make your backup files in the same directory and call them ifcfg-anything.