无法理解要分配给 bond0 的 IP?

无法理解要分配给 bond0 的 IP?

我在执行 NIC 绑定时无法理解将哪个 IP 分配给 bond0。

答案1

您将一个IP@设置为bound0,但不在其网卡上

对于分配给bound0的网卡,你只需说master是bound0

例如

ifcfg-bond0 :

DEVICE=bond0
ONBOOT=yes
BOOTPROTO=none
IPADDR=172.76.1.3
NETMASK=255.0.0.0
BROADCAST=172.76.0.255
GATEWAY=172.76.1.100
USERCTL=no

ifcfg-eth0 :

DEVICE=eth0
USERCTL=no
ONBOOT=yes
MASTER=bond0
SLAVE=yes

ifcfg-eth1 :

DEVICE=eth1
USERCTL=no
ONBOOT=yes
MASTER=bond0
SLAVE=yes

IP@取决于您自己的网络,因此没有人会说使用哪个。

相关内容