我有一张双端口网卡,我想绑定两个端口并平衡端口之间的流量。我想要 1 个静态 IP 地址。我以前用过 ubuntu 16.04,效果很好。我现在想在 netplan 中设置同样的东西,但很费劲。我的配置如下...
network:
version: 2
renderer: networkd
ethernets:
enp1s0f0:
dhcp4: false
dhcp6: false
enp1s0f1:
dhcp4: false
dhcp6: false
bonds:
bond0:
dhcp4: false
dhcp6: false
interfaces:
- enp1s0f0
- enp1s0f1
addresses: [192.168.3.250/24]
gateway4: 192.168.3.1
parameters:
mode: 802.3ad
nameservers:
addresses: [8.8.8.8,8.8.4.4]
答案1
检查你的语法。
$ sudo netplan --debug apply
network:
version: 2
renderer: networkd
ethernets:
enp1s0f0:
dhcp4: false
dhcp6: false
enp1s0f1:
dhcp4: false
dhcp6: false
bonds:
bond0:
dhcp4: false
dhcp6: false
interfaces:
- enp1s0f0
- enp1s0f1
addresses: [192.168.3.250/24]
gateway4: 192.168.3.1
parameters:
mode: 802.3ad
nameservers:
addresses: [8.8.8.8,8.8.4.4]