配置步骤:
配置/etc/NetworkManager/system-connections/ens11f0.nmconnection
代码语言:javascript复制[connection]
id=ens11f0
uuid=c2aafa0c-0fd6-4416-8a81-b8975e4807b4
type=ethernet
interface-name=ens11f0
master=bond0
slave=true
[ethernet]
[ipv4]
method=auto
[ipv6]
addr-gen-mode=eui64
method=auto
[proxy]
配置/etc/NetworkManager/system-connections/ens11f1.nmconnection
代码语言:javascript复制[connection]
id=ens11f1
uuid=56cc36d7-aeb8-4969-bd17-268248d3dea6
type=ethernet
interface-name=ens11f1
master=bond0
slave=true
[ethernet]
[ipv4]
method=auto
[ipv6]
addr-gen-mode=eui64
method=auto
[proxy]
配置/etc/NetworkManager/system-connections/bond0.nmconnection
代码语言:javascript复制[connection]
id=bond0
type=bond
interface-name=bond0
[ipv4]
method=manual
address1=10.252.30.10/24,10.252.30.254
[bond]
mode=4
miimon=100
[ipv6]
method=ignore
[ethernet]
mac-address-blacklist=9c:c2:c4:47:65:5a;9c:c2:c4:47:65:5b
重启服务生效
代码语言:javascript复制nmcli c reload
nmcli networking off
nmcli networking on