首页 » ORACLE 9i-23ai, 系统相关 » CRS-42216: No interfaces are configured on the local node for interface definition virbr0(:.*)处理方法

CRS-42216: No interfaces are configured on the local node for interface definition virbr0(:.*)处理方法

现象oracle 19c RACon linux 7.6, GI alert log一直在输出“2024-04-28 01:07:20.305 [GIPCD(53662)]CRS-42216: No interfaces are configured on the local node for interface definition virbr0(:.*)”,但不影响RAC的稳定和使用,在安装clufy时有时也提示PRVF-7617,在oracle 11g还有bug 记录可能影响私网通信 简单记录处理方法。

错误日志:

2024-04-28 01:07:20.305 [GIPCD(53662)]CRS-42216: No interfaces are configured on the local node for interface definition virbr0(:.*)?:192.168.122.0: available interface definitions are [
bond0(:.*)?:10.1.##.64][bond0:1(:.*)?:10.1.##.64][bond1:1(:.*)?:169.254.0.0][bond1(:.*)?:[fe80:0:0:0:0:0:0:0]][bond0(:.*)?:[fe80:0:0:0:0:0:0:0]][bond1(:.*)?:192.168.1.64].

注意提示是 virbr0 虚拟网卡。

什么是 virbr0?
virbr0 桥接接口是由 libvirtd 的默认网络配置创建的。 libvirtd 是为主机充当虚拟机管理程序提供基础的服务。它将充当来宾虚拟机 (VM) 路由流量的网关。 libvirtd 还将在 iptable 配置中插入 iptables 规则,以便正确路由/NAT 来宾 VM 网络数据包。如果不需要 libvirtd 服务,停止该服务将从系统中删除 virbr0 网络接口配置。

# check RAC network config
$GRID_HOME/bin/oifcfg getif

# ifconfig virbr0
virbr0 Link encap:Ethernet HWaddr 00:00:00:00:00:00
inet addr:192.168.122.1 Bcast:192.168.122.255 Mask:255.255.255.0
...

# brctl show
bridge name bridge id STP enabled interfaces
virbr0 8000.000000000000 yes

Verify if there is any host running
# virsh list

this is the default network set-up for the virtual machines
# virsh net-list
Name State Autostart
—————————————–
default active yes

如何禁用 virbr0?

您可以阻止 libvirtd 的默认网络在启动时激活,或者您可以阻止 libvirtd 本身在启动时激活。 前者将阻止连接到 libvirtd 默认网络的任何虚拟机来宾具有网络连接,而后者将阻止虚拟机运行。

1.Not using libvirtd service
To permanently disable the libvirtd service from starting at boot on RHEL5 and RHEL6:

    anbob@/home/oracle#  chkconfig libvirtd off

To permanently disable the libvirtd service from starting at boot on RHEL7 and RHEL8/9:

    anbob@/home/oracle#  systemctl disable libvirtd.service

2.Using libvirtd and don’t want “virbr0”.
List the default network set-up for the virtual machines

# virsh net-list
Name State Autostart Persistent
----------------------------------------------------------
default active yes yes

To immediately stop libvirtd’s default network (this will not persist across reboots):

    virsh net-destroy default

To permanently disable the libvirtd default network from being created at boot:

    virsh net-autostart default --disable

To permanently remove the libvirtd default network:

# virsh net-undefine default
Network default has been undefined

The interface virbr0 is now not available

# ifconfig virbr0
virbr0: error fetching interface information: Device not found

Reference
What is the interface virbr0 for and how do I disable it?

打赏

对不起,这篇文章暂时关闭评论。