Home > System Tutorial > LINUX > Steps to delete virbr0 network card on CentOS7

Steps to delete virbr0 network card on CentOS7

王林
Release: 2024-01-15 12:24:05
forward
1105 people have browsed it

Note: I have configured bridge under CentOS7 before. Now after changing the bridge mode to normal mode, you can still see a lot of junk information when checking the network card. If you want to completely delete the unwanted network card configuration information, do the following:

[root@linux-node1 ~]# ip add list
1: lo: <LOOPBACK,UP,LOWER_UP> 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: <BROADCAST,MULTICAST,UP,LOWER_UP> 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: <NO-CARRIER,BROADCAST,MULTICAST,UP> 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: <BROADCAST,MULTICAST> 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
Copy after login

View network list:

[root@linux-node1 ~]# virsh net-list
 Name StateAutostart Persistent
----------------------------------------------------------
 defaultactive yes yes
Copy after login

Use "virsh net-destroy default" to delete

[root@linux-node1 ~]# virsh net-destroy default
Network default destroyed
Copy after login

Remove from configuration file

[root@linux-node1 ~]# virsh net-undefine default
Network default has been undefined
Copy after login

Restart libvirtd service

[root@linux-node1 ~]# systemctl restart libvirtd.service
[root@linux-node1 ~]# virsh net-list
 Name StateAutostart Persistent
----------------------------------------------------------
[root@linux-node1 ~]# ip add list
1: lo: <LOOPBACK,UP,LOWER_UP> 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: <BROADCAST,MULTICAST,UP,LOWER_UP> 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
Copy after login

Check again and find that unnecessary information has been cleared, which makes it much cleaner

The above is the detailed content of Steps to delete virbr0 network card on CentOS7. For more information, please follow other related articles on the PHP Chinese website!

source:jb51.net
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template