CentOS主机关掉虚拟网卡
$ ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
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: ens32: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
link/ether 00:0c:29:c1:33:fa brd ff:ff:ff:ff:ff:ff
inet 192.168.3.101/24 brd 192.168.3.255 scope global noprefixroute ens32
valid_lft forever preferred_lft forever
inet6 fe80::ffde:8d10:fc3:aad5/64 scope link tentative noprefixroute dadfailed
valid_lft forever preferred_lft forever
inet6 fe80::9229:47b0:6a99:90e3/64 scope link noprefixroute
valid_lft forever preferred_lft forever
3: virbr0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state DOWN group default qlen 1000
link/ether 52:54:00:60:0b:ab 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
4: virbr0-nic: <BROADCAST,MULTICAST> mtu 1500 qdisc pfifo_fast master virbr0 state DOWN group default qlen 1000
link/ether 52:54:00:60:0b:ab brd ff:ff:ff:ff:ff:ff
查询
$ yum info libvirt-daemon
已加载插件:fastestmirror, langpacks
Repodata is over 2 weeks old. Install yum-cron? Or run: yum makecache fast
Determining fastest mirrors
已安装的软件包
名称 :libvirt-daemon
架构 :x86_64
版本 :4.5.0
发布 :23.el7
大小 :2.5 M
源 :installed
来自源 :anaconda
简介 : Server side daemon and supporting files for libvirt library
网址 :https://libvirt.org/
协议 : LGPLv2+
描述 : Server side daemon required to manage the virtualization capabilities
: of recent versions of Linux. Requires a hypervisor specific sub-RPM
: for specific drivers.
卸载libvirt-daemon服务
yum remove libvirt-daemon -y
重启
reboot
再次查询,已经没有虚拟网卡了
本文来自博客园,作者:厚礼蝎,转载请注明原文链接:https://www.cnblogs.com/guangdelw/p/17138869.html