我试着在我的debian 10电脑上建立连接。我有2张网卡,我试着使用enp1s0fX端口。我的interfaces
文件示例
auto bond0
iface bond0 inet static
address 192.168.211.124
gateway 192.168.211.1
netmask 255.255.255.0
network 192.168.211.0
bond-slaves enp1s0f0 enp1s0f1 enp1s0f2
bond-mode active-backup
bond-miimon 100
当我重新启动时,我在dmesg
中收到了以下消息:
bond0: option mode: unable to set because the bond device has slaves
我不明白为什么
发布于 2020-01-30 13:37:54
这个消息来自内核,而不是ifup:
bond0: option mode: unable to set because the bond device has slaves
在有与键关联的接口后,不能更改键合模式。
由于活动备份是默认模式(我假设这是您选择的模式),您可以简单地从接口配置中删除bond-mode
。
如果确实需要设置键连接模式,请使用类似的模式:
auto enp1s0f0
iface enp1s0f0 inet manual
bond-master bond0
bond-primary eth0
bond-mode active-backup
auto enp1s0f1
iface enp1s0f1 inet manual
bond-master bond0
bond-primary enp1s0f0
bond-mode active-backup
auto enp1s0f2
iface enp1s0f2 inet manual
bond-master bond0
bond-primary enp1s0f0
bond-mode active-backup
auto bond0
iface bond0 inet dhcp
bond-slaves none
bond-primary enp1s0f0
bond-mode active-backup
bond-miimon 100
https://serverfault.com/questions/1000762
复制相似问题