rhel7 以图形界面安装就会给你装个xbox,然后就会搞出来个虚拟网桥virbr0
本来就是装在VMware里的,不可能在里面又搞一个虚拟环境。
virbr0的存在还拖慢了系统,搞复杂了网络,还不如鸡肋呢。
如下:
[root@o11gserver ~]# ip a
1: lo: mtu 65536 qdisc noqueue state UNKNOWN
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: ens33: mtu 1500 qdisc pfifo_fast state UP qlen 1000
link/ether 00:0c:29:4d:37:a3 brd ff:ff:ff:ff:ff:ff
inet 192.168.0.115/24 brd 192.168.0.255 scope global dynamic ens33
valid_lft 7196sec preferred_lft 7196sec
inet6 fe80::2d5a:531f:8664:f55c/64 scope link
valid_lft forever preferred_lft forever
3: virbr0: mtu 1500 qdisc noqueue state DOWN
link/ether 52:54:00:6d:89:31 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: mtu 1500 qdisc pfifo_fast master virbr0 state DOWN qlen 500
link/ether 52:54:00:6d:89:31 brd ff:ff:ff:ff:ff:ff
[root@o11gserver ~]# brctl show
bridge name bridge id STP enabled interfaces
virbr0 8000.5254006d8931 yes virbr0-nic
试了网上的一些方法,结果都不靠普,最后,发现,只有卸载这个网桥,具体方法为:
yum remove libvirt-libs.x86_64 ,
并重启服务器,之后,就再也不见烦人的virbr0了.
[root@dbserver ~]# ip a
1: lo: mtu 65536 qdisc noqueue state UNKNOWN
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: ens33: mtu 1500 qdisc pfifo_fast state UP qlen 1000
link/ether 00:0c:29:29:02:46 brd ff:ff:ff:ff:ff:ff
inet 192.168.0.152/24 brd 192.168.0.255 scope global dynamic ens33
valid_lft 6088sec preferred_lft 6088sec
inet6 fe80::12fe:801b:35a2:bd5/64 scope link
valid_lft forever preferred_lft forever
inet6 fe80::2d5a:531f:8664:f55c/64 scope link tentative dadfailed
valid_lft forever preferred_lft forever
以上在rhel 7.4上测试通过.