0

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?

| improve this question | | | | |
New contributor
Aossey is a new contributor to this site. Take care in asking for clarification, commenting, and answering. Check out our Code of Conduct.

Your Answer

Aossey is a new contributor. Be nice, and check out our Code of Conduct.

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.