2024年4月18日发(作者:)

Ubunut 18.04 server 配置bond0子接口

1. vi /etc/netplan/ //注意编辑格式。

#vi /etc/netplan/

2.编辑对应的信息(格式有严格的要求)

截图如下:

具体的配置如下:

# This file is generated from information provided by

# the datasource. Changes to it will not persist across an instance.

# To disable cloud-init's network configuration capabilities, write a file

# /etc/cloud/.d/ with the following:

# network: {config: disabled}

network:

ethernets: {}

version: 2

renderer: networkd

ethernets:

eno1np0:

#addresses: []

dhcp4: no

dhcp6: no