先借鉴一下流行的public cloud provider 的配置:
vultr private network 配置:
Vultr 建议private network 的MTU 设置为1450
# Private network: net5d808a0cc22db DEVICE=eth1 ONBOOT=yes BOOTPROTO=static IPADDR=10.25.96.3 NETMASK=255.255.240.0 MTU=1450
下面我们来看看digitalocean:
# Created by cloud-init on instance boot automatically, do not edit. # BOOTPROTO=none DEVICE=eth1 HWADDR=ba:11:3e:a9:43:5b IPADDR=10.138.132.226 MTU=1500 NETMASK=255.255.0.0 ONBOOT=yes TYPE=Ethernet USERCTL=no