How do I add a USB-C OTG network interface in 20.04 LTS?

by Aossey   Last Updated May 23, 2020 01:02 AM

I am trying to add a USB OTG networking interface to Ubuntu 20.04 LTS on a Raspberry PI 4. I know the hardware is capable of supporting this because this guide works with the debian-based Raspbian OS, which I have successfully tested. The definition of the usb networking interface seems to be the issue, as the rest of the steps in the guide align fairly well between Raspian and Ubuntu.

Specifically, since Ubuntu 20.04 is using cloud-init, I'm attempting to add the usb0 ethernet interface by changing /etc/netplan/50-cloud-init.yaml to the following:

network:
ethernets:
    eth0:
        dhcp4: true
        optional: true
    usb0:
        dhcp4: false
        addresses: [172.25.25.25/29]
version: 2

I never see the usb0 interface in ifconfig after generating and applying netplan or rebooting. Is there another way to properly add the interface other than adding to this yaml file since the /etc/network/interfaces.d/ is not used in 20.04?



Related Questions




How do I reload network configuration with cloud-init?

Updated December 24, 2018 17:02 PM

How is 50-cloud-init.cfg created?

Updated November 06, 2017 00:02 AM