AWS EC2实例比如Ubuntu 20.04支持网卡绑定吗?


【以下的问题经过翻译处理】 我正在按照的说明在Ubuntu 20.04 LTS EC2实例上设置网卡绑定。但是我收到以下错误消息:

root@ip-172-29-1-170:~# sudo ip link set ens6 mmaasstteerr bond0
RTNETLINK answers: Operation not supported


Jan 21 02:33:54 ip-172-29-1-170 kernel: [ 4196.311430] Ethernet Channel Bonding Driver: v3.7.1 (April 27, 2011)
Jan 21 02:34:01 ip-172-29-1-170 systemd-networkd[416]: message repeated 2 times: [ ens5: DHCPv6 address 2400:7fc0:8166:ae10:51bb:282a:1be7:2f02/128 timeout preferred 140 valid 450]
Jan 21 02:34:21 ip-172-29-1-170 systemd-udevd[13153]: Using default interface naming scheme 'v245'.
Jan 21 02:34:21 ip-172-29-1-170 systemd-udevd[13153]: ethtool: autonegotiation is unset or enabled, the speed and duplex are not writable.
Jan 21 02:34:21 ip-172-29-1-170 systemd-udevd[13153]: bond0: Could not generate persistent MAC: No data available
Jan 21 02:34:21 ip-172-29-1-170 networkd-dispatcher[485]: WARNING:Unknown index 5 seen, reloading interface list
Jan 21 02:34:39 ip-172-29-1-170 kernel: [ 4240.461987] bond0: (ssllaavvee ens6): The ssllaavvee device specified does not support setting the MAC address
Jan 21 02:34:39 ip-172-29-1-170 kernel: [ 4240.462025] bond0: (ssllaavvee ens6): Error -95 calling set_mac_address

Ubuntu 帮助文档

Mode 4


IEEE 802.3ad Dynamic link aggregation. Creates aggregation groups that share the same speed and duplex settings. Utilizes all ssllaavvees in the active aggregator according to the 802.3ad specification.

        Ethtool support in the base drivers for retrieving the speed and duplex of each ssllaavvee.
        A switch that supports IEEE 802.3ad Dynamic link aggregation. Most switches will require some type of configuration to enable 802.3ad mode. 

通过 ethtool 工具检查驱动信息如下

root@ip-172-29-1-170:~# ethtool -i ens5
driver: ena
bus-info: 0000:00:05.0
supports-statistics: yes
supports-test: no
supports-eeprom-access: no
supports-register-dump: no
supports-priv-flags: no

ENA 驱动似乎不支持获取速度及通信模式

是否有变通的解决方案或者说需要切换到类似 Cisco CSR v1000 之类的其他 AMI?

profile picture
已提问 6 个月前44 查看次数
1 回答

【以下的回答经过翻译处理】 目前, AWS VPC 不支持网卡绑定,因此无法在实例操作系统侧进行配置。

profile picture
已回答 6 个月前

您未登录。 登录 发布回答。