If sudo dhclient is not executed, there will be no IP,The server should not require a display by default, so I hope it can be configured to automatically obtain the IP address by default
This file is generated from information provided by the datasource. Changes
to it will not persist across an instance reboot. To disable cloud-init's
network configuration capabilities, write a file
/etc/cloud/cloud.cfg.d/99-disable-network-config.cfg with the following:
If sudo dhclient is not executed, there will be no IP,The server should not require a display by default, so I hope it can be configured to automatically obtain the IP address by default
This file is generated from information provided by the datasource. Changes
to it will not persist across an instance reboot. To disable cloud-init's
network configuration capabilities, write a file
/etc/cloud/cloud.cfg.d/99-disable-network-config.cfg with the following:
network: {config: disabled}
network: ethernets: enP3p49s0: dhcp4: true optional: true enP4p65s0: dhcp4: true optional: true eth0: dhcp4: true dhcp6: true version: 2 ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ "/etc/netplan/50-cloud-init.yaml" 17L, 553B 16,12 All