Network Configuration with Netplan

Configure modern Ubuntu networking using Netplan.

Network Configuration with Netplan

Modern Ubuntu (22.04+) uses Netplan for network configuration.

A sample DHCP configuration in /etc/netplan/01-netcfg.yaml:

network:
  version: 2
  renderer: networkd
  ethernets:
    enp3s0:
      dhcp4: true

Apply changes with sudo netplan apply.