How to reset network setting to default

Issues related to configuring your network
Post Reply
sampath
Posts: 1
Joined: 2018/05/17 08:40:13

How to reset network setting to default

Post by sampath » 2018/05/17 08:57:48

]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.
Attachments
IMG_1470[770].jpg
IMG_1470[770].jpg (136.59 KiB) Viewed 441 times

hunter86_bg
Posts: 1224
Joined: 2015/02/17 15:14:33
Location: Bulgaria
Contact:

Re: How to reset network setting to default

Post by hunter86_bg » 2018/05/17 20:42:31

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.

User avatar
TrevorH
Forum Moderator
Posts: 23213
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: How to reset network setting to default

Post by TrevorH » 2018/05/17 22:38:19

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.
CentOS 5 died in March 2017 - migrate NOW!
Full time Geek, part time moderator. Use the FAQ Luke

Post Reply