knowledge_base:linux:ipconfig:netplan
IP Configuration: Netplan
Netplan is the default to configure on Ubuntu.
- /etc/netplan/50-cloud-init.yaml
# 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/cloud.cfg.d/99-disable-network-config.cfg with the following: # network: {config: disabled} network: ethernets: eth0: dhcp4: no addresses: - 192.168.25.40/24 - 2001:6b0:1234:1470::40/64 gateway4: 192.168.25.1 gateway6: 2001:6b0:1234:1470::1 version: 2
sudo netplan apply
dhcp identifier
- /etc/netplan/50-cloud-init.yaml
network: ethernets: ens33: dhcp4: true dhcp-identifier: mac
/storage/data/pages/knowledge_base/linux/ipconfig/netplan.txt · Zuletzt geändert: von julian.lemmerich
