Results 1 to 6 of 6

Thread: Ubuntu 20.04 on Raspberry Pi - Network Configuration using Netplan

  1. #1
    Join Date
    Feb 2014
    Beans
    140

    Ubuntu 20.04 on Raspberry Pi - Network Configuration using Netplan

    I've got my Pi up and running headless, using the default settings. It has inherited the settings from network-config file (in the system-boot partition) in a file called /etc/netplan/50-cloud-init.yaml. I would like to use netplan directly using /etc/netplan/01-netcfg.yaml.

    Is it simply a case of creating a correctly formed 01-netcfg.yaml, or do I also have to create the file /etc/cloud/cloud.cfg.d/99-disable-network-config.cfg to disable the default configuration?

  2. #2
    Join Date
    Feb 2014
    Beans
    140

    Re: Ubuntu 20.04 on Raspberry Pi - Network Configuration using Netplan

    In the interests of science, I will try it and report back.

  3. #3
    Join Date
    Sep 2011
    Location
    Behind you!
    Beans
    1,358
    Distro
    Ubuntu 18.04 Bionic Beaver

    Re: Ubuntu 20.04 on Raspberry Pi - Network Configuration using Netplan

    The cloud-init is installed by default when using the live installer. I am small-time and have no use for it so I either use the legacy installer (which is the Debian-based installer and apparently won't exist after 20.04) or simply remove cloud-init if you do not intend on using it.

    LHammonds

  4. #4
    Join Date
    Feb 2014
    Beans
    140

    Re: Ubuntu 20.04 on Raspberry Pi - Network Configuration using Netplan

    In this case it was very useful (I don't have a mini-HDMI cable) so I was grateful for its presence in the Pi image. It got me up-and-running so I could SSH into the address assigned by DHCP.


    And the answer is: "Yes, all it needs is a correctly formed 01-netcfg.yaml"

    Code:
      System information as of Fri Jul 10 17:38:32 BST 2020
    
      System load:  0.0                Processes:                126
      Usage of /:   19.4% of 14.29GB   Users logged in:          0
      Memory usage: 14%                IPv4 address for vlan100: 192.168.254.4
      Swap usage:   0%                 IPv4 address for vlan200: 192.168.0.4
      Temperature:  68.2 C

  5. #5
    Join Date
    Jul 2020
    Beans
    8

    Re: Ubuntu 20.04 on Raspberry Pi - Network Configuration using Netplan

    i think when you created another network configuration inside the netplan directory, it will automatically be used when you do "sudo netplan apply" command and the default configuration will be left as it is.

  6. #6
    Join Date
    Feb 2014
    Beans
    140

    Re: Ubuntu 20.04 on Raspberry Pi - Network Configuration using Netplan

    I think you are partially correct. cloud-init is ignored completely, and the network configuration it created was deleted when I ran "sudo netplan apply". Cloud-init is not invoked on reboot.

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •