Updated on 2026-01-31 GMT+08:00

Configuring NetworkManager

  1. Edit the vi /etc/netplan/01-netcfg.yaml file to set NetworkManager as the network management tool.

    network:
         version: 2
         renderer: NetworkManager
         ethernets:
             eth0:
                 dhcp4: false
             eth1:
                 dhcp4: false

  2. Install the ifupdown and ifenslave software.

    apt-get install ifupdown
    apt-get install ifenslave

  3. Remove the network configuration file 50-cloud-init.yaml.

    rm  /etc/netplan/50-cloud-init.yaml

  4. Configure the timeout interval of dhclient.

    vi /etc/dhcp/dhclient.conf

    timeout 100;  # Change the timeout interval to 100 seconds.