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

0

【以下的问题经过翻译处理】 我正在按照https://linuxhint.com/setup-network-bonding-ubuntu/的说明在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 帮助文档 https://help.ubuntu.com/community/UbuntuBonding

Mode 4

    802.3ad

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.

    Prerequisites:
        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
version: 
firmware-version: 
expansion-rom-version: 
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
专家
已提问 5 个月前35 查看次数
1 回答
0

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

profile picture
专家
已回答 5 个月前

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

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则