Centos7中如何删除virbr0网卡信息-创新互联
小编给大家分享一下Centos7中如何删除virbr0网卡信息,相信大部分人都还不怎么了解,因此分享这篇文章给大家参考一下,希望大家阅读完这篇文章后大有收获,下面让我们一起去了解一下吧!
创新互联建站于2013年创立,先为宁晋等服务建站,宁晋等地企业,进行企业商务咨询服务。为宁晋企业网站制作PC+手机+微官网三网同步一站式服务解决您的所有建站问题。说明:之前在CentOS7下配置过bridge,现在讲bridge模式改为普通模式后,查看网卡的时候还是可以看到很多垃圾信息,想彻底删除自己不想要的网卡配置信息,操作如下:
[root@linux-node1 ~]# ip add list 1: lo:mtu 65536 qdisc noqueue state UNKNOWN qlen 1 link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 inet 127.0.0.1/8 scope host lo valid_lft forever preferred_lft forever inet6 ::1/128 scope host valid_lft forever preferred_lft forever 2: eth0: mtu 1500 qdisc pfifo_fast state UP qlen 1000 link/ether 00:0c:29:9b:7d:d6 brd ff:ff:ff:ff:ff:ff inet 10.10.10.11/24 brd 10.10.10.255 scope global eth0 valid_lft forever preferred_lft forever inet6 fe80::20c:29ff:fe9b:7dd6/64 scope link valid_lft forever preferred_lft forever 4: virbr0: mtu 1500 qdisc noqueue state DOWN qlen 1000 link/ether 52:54:00:f4:24:05 brd ff:ff:ff:ff:ff:ff inet 192.168.122.1/24 brd 192.168.122.255 scope global virbr0 valid_lft forever preferred_lft forever 5: virbr0-nic: mtu 1500 qdisc pfifo_fast master virbr0 state DOWN qlen 1000 link/ether 52:54:00:f4:24:05 brd ff:ff:ff:ff:ff:ff
查看网络列表:
[root@linux-node1 ~]# virsh net-list Name State Autostart Persistent ---------------------------------------------------------- default active yes yes
使用“virsh net-destroy default”删除
[root@linux-node1 ~]# virsh net-destroy default Network default destroyed
从配置文件中剔除
[root@linux-node1 ~]# virsh net-undefine default Network default has been undefined
重启libvirtd服务
[root@linux-node1 ~]# systemctl restart libvirtd.service [root@linux-node1 ~]# virsh net-list Name State Autostart Persistent ---------------------------------------------------------- [root@linux-node1 ~]# ip add list 1: lo:mtu 65536 qdisc noqueue state UNKNOWN qlen 1 link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 inet 127.0.0.1/8 scope host lo valid_lft forever preferred_lft forever inet6 ::1/128 scope host valid_lft forever preferred_lft forever 2: eth0: mtu 1500 qdisc pfifo_fast state UP qlen 1000 link/ether 00:0c:29:9b:7d:d6 brd ff:ff:ff:ff:ff:ff inet 10.10.10.11/24 brd 10.10.10.255 scope global eth0 valid_lft forever preferred_lft forever inet6 fe80::20c:29ff:fe9b:7dd6/64 scope link valid_lft forever preferred_lft forever
以上是“Centos7中如何删除virbr0网卡信息”这篇文章的所有内容,感谢各位的阅读!相信大家都有了一定的了解,希望分享的内容对大家有所帮助,如果还想学习更多知识,欢迎关注创新互联行业资讯频道!
本文题目:Centos7中如何删除virbr0网卡信息-创新互联
网页链接:http://lswzjz.com/article/hjese.html