https://www.jb51.net/os/RedHat/543581.html
bridge模式改为普通模式后,查看网卡的时候还是可以看到很多垃圾信息,想彻底删除自己不想要的网卡配置信息,操作如下:
查看网络列表:
1
2
3
4
| [root@linux-node1 ~]# virsh net-list
Name State Autostart Persistent
----------------------------------------------------------
default active yes yes
|
使用 virsh net-destroy default 删除
1
2
| [root@linux-node1 ~]# virsh net-destroy default
Network default destroyed
|
从配置文件中剔除
1
2
| [root@linux-node1 ~]# virsh net-undefine default
Network default has been undefined
|
重启libvirtd服务
1
2
3
4
| [root@linux-node1 ~]# systemctl restart libvirtd.service
[root@linux-node1 ~]# virsh net-list
Name State Autostart Persistent
----------------------------------------------------------
|
再次查看,发现不必要的信息已经清除,清爽多了
dnsmasq不会自动停
1
2
3
4
| service libvirtd stop
systemctl stop libvirtd.service
service libvirtd status
|
还是有dnsmasq进程,手动kill